@helios-lang/effect 0.6.10 → 0.6.11
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/dist/Cardano/Network/Txs.js +0 -1
- package/dist/Cardano/Network/Txs.js.map +1 -1
- package/package.json +1 -1
- package/types/Cardano/Contract.d.ts +19 -19
- package/types/Cardano/Ledger/Tx.d.ts +1 -1
- package/types/Cardano/Ledger/UTxO.d.ts +4 -4
- package/types/Cardano/Network/Txs.d.ts +10 -4
- package/types/Cardano/Network/Txs.d.ts.map +1 -1
- package/types/Cardano/ScriptContext.d.ts +10 -10
- package/types/Cardano/TxBuilder.d.ts +2 -2
- package/types/Cardano/Wallet.d.ts +1 -1
|
@@ -2,7 +2,6 @@ import { Context, Effect } from "effect";
|
|
|
2
2
|
/**
|
|
3
3
|
* A service that returns all transactions that spend from the given address, or pay to the given address
|
|
4
4
|
*
|
|
5
|
-
* TODO: add config for filtering, pagination etc. (these can potentially be a lot of transactions!)
|
|
6
5
|
* TODO: add filtering by AssetClass
|
|
7
6
|
*/
|
|
8
7
|
export class Txs extends Context.Tag("Cardano.Network.Txs")() {
|
|
@@ -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;
|
|
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;AAgBxC;;;;GAIG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAWxD;CAAG"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { Assets, PubKeyHash, ValidatorHash, UTxO, UTxORef } from "./Ledger/index
|
|
|
3
3
|
import { Data, Script } from "./Uplc/index.js";
|
|
4
4
|
import * as Network from "./Network/index.js";
|
|
5
5
|
import * as TxBuilder from "./TxBuilder.js";
|
|
6
|
-
export declare function make(seed: UTxORef.UTxORef): Effect.Effect<Script.Script<
|
|
6
|
+
export declare function make(seed: UTxORef.UTxORef): Effect.Effect<Script.Script<2 | 1 | 3>, Error, never>;
|
|
7
7
|
declare const Contract_base: Context.TagClass<Contract, "Cardano.Contract", Script.Script<3>>;
|
|
8
8
|
export declare class Contract extends Contract_base {
|
|
9
9
|
}
|
|
@@ -63,23 +63,23 @@ declare const $utxos: () => Effect.Effect<{
|
|
|
63
63
|
readonly strictBabbage?: boolean | undefined;
|
|
64
64
|
} | undefined;
|
|
65
65
|
};
|
|
66
|
-
}[], Network.ConnectionError | Network.UnexpectedFormat, Network.
|
|
66
|
+
}[], Network.ConnectionError | Network.UnexpectedFormat, Network.UTxOsAt | Network.IsMainnet | Contract>;
|
|
67
67
|
export { $utxos as utxos };
|
|
68
|
-
export declare const initialize: (witnesses: Witness[]) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError, Network.
|
|
69
|
-
export declare const addValidator: (vh: ValidatorHash.ValidatorHash) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.
|
|
70
|
-
export declare const addValidatorEffect: (vh: ValidatorHash.ValidatorHash) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.
|
|
71
|
-
export declare const addAdmin: (pkh: PubKeyHash.PubKeyHash) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.
|
|
72
|
-
export declare const addAdminEffect: (pkh: PubKeyHash.PubKeyHash) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.
|
|
73
|
-
export declare const addWitness: (witness: Witness) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.
|
|
74
|
-
export declare const addWitnessEffect: (witness: Witness) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.
|
|
75
|
-
export declare const removeValidator: (vh: ValidatorHash.ValidatorHash) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.
|
|
76
|
-
export declare const removeValidatorEffect: (vh: ValidatorHash.ValidatorHash) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.
|
|
77
|
-
export declare const removeAdmin: (pkh: PubKeyHash.PubKeyHash) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.
|
|
78
|
-
export declare const removeAdminEffect: (pkh: PubKeyHash.PubKeyHash) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.
|
|
79
|
-
export declare const removeWitness: (witness: Witness) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.
|
|
80
|
-
export declare const removeWitnessEffect: (witness: Witness) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.
|
|
81
|
-
export declare const mint: (assets: Assets.Assets) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError, Network.
|
|
82
|
-
export declare const mintEffect: (assets: Assets.Assets) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError | E, Network.
|
|
83
|
-
export declare const spend: (inputs: UTxO.UTxO | UTxO.UTxO[]) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError, Network.
|
|
84
|
-
export declare const spendEffect: (utxos: UTxO.UTxO | UTxO.UTxO[]) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError | E, Network.
|
|
68
|
+
export declare const initialize: (witnesses: Witness[]) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError, Network.UTxO | Network.IsMainnet | TxBuilder.GetDatum | Contract>;
|
|
69
|
+
export declare const addValidator: (vh: ValidatorHash.ValidatorHash) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract>;
|
|
70
|
+
export declare const addValidatorEffect: (vh: ValidatorHash.ValidatorHash) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract | R>;
|
|
71
|
+
export declare const addAdmin: (pkh: PubKeyHash.PubKeyHash) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract>;
|
|
72
|
+
export declare const addAdminEffect: (pkh: PubKeyHash.PubKeyHash) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract | R>;
|
|
73
|
+
export declare const addWitness: (witness: Witness) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract>;
|
|
74
|
+
export declare const addWitnessEffect: (witness: Witness) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract | R>;
|
|
75
|
+
export declare const removeValidator: (vh: ValidatorHash.ValidatorHash) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract>;
|
|
76
|
+
export declare const removeValidatorEffect: (vh: ValidatorHash.ValidatorHash) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract | R>;
|
|
77
|
+
export declare const removeAdmin: (pkh: PubKeyHash.PubKeyHash) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract>;
|
|
78
|
+
export declare const removeAdminEffect: (pkh: PubKeyHash.PubKeyHash) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract | R>;
|
|
79
|
+
export declare const removeWitness: (witness: Witness) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract>;
|
|
80
|
+
export declare const removeWitnessEffect: (witness: Witness) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, string | Error | import("effect/ParseResult").ParseError | E, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract | R>;
|
|
81
|
+
export declare const mint: (assets: Assets.Assets) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError, Network.UTxOsAt | Network.IsMainnet | Contract>;
|
|
82
|
+
export declare const mintEffect: (assets: Assets.Assets) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError | E, Network.UTxOsAt | Network.IsMainnet | Contract | R>;
|
|
83
|
+
export declare const spend: (inputs: UTxO.UTxO | UTxO.UTxO[]) => (b: TxBuilder.TxBuilder) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract>;
|
|
84
|
+
export declare const spendEffect: (utxos: UTxO.UTxO | UTxO.UTxO[]) => <E, R>(self: Effect.Effect<TxBuilder.TxBuilder, E, R>) => Effect.Effect<TxBuilder.TxBuilder, Error | import("effect/ParseResult").ParseError | E, Network.UTxOsAt | Network.IsMainnet | TxBuilder.GetDatum | Contract | R>;
|
|
85
85
|
//# sourceMappingURL=Contract.d.ts.map
|
|
@@ -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,
|
|
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/UTxO.js").UTxO>;
|
|
117
117
|
export declare const encode: (options?: {
|
|
118
118
|
forFeeCalculation?: boolean;
|
|
119
119
|
full?: boolean;
|
|
@@ -306,11 +306,11 @@ export declare const FromUplcData: Schema.transform<Schema.transformOrFail<Schem
|
|
|
306
306
|
readonly fields: readonly Data.Data[];
|
|
307
307
|
readonly constructor: number;
|
|
308
308
|
}, never>, Schema.Option<Schema.Schema<{
|
|
309
|
-
readonly _tag: "PubKey";
|
|
310
309
|
readonly hash: string & import("effect/Brand").Brand<"PubKeyHash">;
|
|
310
|
+
readonly _tag: "PubKey";
|
|
311
311
|
} | {
|
|
312
|
-
readonly _tag: "Validator";
|
|
313
312
|
readonly hash: string & import("effect/Brand").Brand<"ValidatorHash">;
|
|
313
|
+
readonly _tag: "Validator";
|
|
314
314
|
}, {
|
|
315
315
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
316
316
|
} | {
|
|
@@ -853,11 +853,11 @@ export declare const FromUplcDataV3: Schema.transform<Schema.transformOrFail<Sch
|
|
|
853
853
|
readonly fields: readonly Data.Data[];
|
|
854
854
|
readonly constructor: number;
|
|
855
855
|
}, never>, Schema.Option<Schema.Schema<{
|
|
856
|
-
readonly _tag: "PubKey";
|
|
857
856
|
readonly hash: string & import("effect/Brand").Brand<"PubKeyHash">;
|
|
857
|
+
readonly _tag: "PubKey";
|
|
858
858
|
} | {
|
|
859
|
-
readonly _tag: "Validator";
|
|
860
859
|
readonly hash: string & import("effect/Brand").Brand<"ValidatorHash">;
|
|
860
|
+
readonly _tag: "Validator";
|
|
861
861
|
}, {
|
|
862
862
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
863
863
|
} | {
|
|
@@ -2,9 +2,16 @@ import { Context, Effect } from "effect";
|
|
|
2
2
|
import type { Address } from "../Ledger/Address.js";
|
|
3
3
|
import type { TxHash } from "../Ledger/TxHash.js";
|
|
4
4
|
import type { ConnectionError, UnexpectedFormat } from "./errors.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export type TxsOrder = "asc" | "desc";
|
|
6
|
+
export interface TxsArgs {
|
|
7
|
+
readonly address: Address;
|
|
8
|
+
readonly count?: number;
|
|
9
|
+
readonly fromBlock?: number;
|
|
10
|
+
readonly order?: TxsOrder;
|
|
11
|
+
readonly page?: number;
|
|
12
|
+
readonly toBlock?: number;
|
|
13
|
+
}
|
|
14
|
+
declare const Txs_base: Context.TagClass<Txs, "Cardano.Network.Txs", (args: TxsArgs) => Effect.Effect<{
|
|
8
15
|
hash: TxHash;
|
|
9
16
|
indexInBlock?: number;
|
|
10
17
|
blockHeight?: number;
|
|
@@ -13,7 +20,6 @@ declare const Txs_base: Context.TagClass<Txs, "Cardano.Network.Txs", (args: {
|
|
|
13
20
|
/**
|
|
14
21
|
* A service that returns all transactions that spend from the given address, or pay to the given address
|
|
15
22
|
*
|
|
16
|
-
* TODO: add config for filtering, pagination etc. (these can potentially be a lot of transactions!)
|
|
17
23
|
* TODO: add filtering by AssetClass
|
|
18
24
|
*/
|
|
19
25
|
export declare class Txs extends Txs_base {
|
|
@@ -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,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;
|
|
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;AAEpE,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAA;AAErC,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B;4EASQ,OAAO,KAAK,MAAM,CAAC,MAAM,CAC9B;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;AAfH;;;;GAIG;AACH,qBAAa,GAAI,SAAQ,QAWtB;CAAG"}
|
|
@@ -1160,7 +1160,7 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1160
1160
|
} & {
|
|
1161
1161
|
dcert: import("./Ledger/DCert.js").DCert;
|
|
1162
1162
|
}), Data.Data, never>, Schema.SchemaClass<{
|
|
1163
|
-
readonly
|
|
1163
|
+
readonly policyIndex: number;
|
|
1164
1164
|
readonly data: {
|
|
1165
1165
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1166
1166
|
} | {
|
|
@@ -1176,13 +1176,12 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1176
1176
|
readonly fields: readonly Data.Data[];
|
|
1177
1177
|
readonly constructor: number;
|
|
1178
1178
|
};
|
|
1179
|
-
readonly policyIndex: number;
|
|
1180
1179
|
readonly cost: {
|
|
1181
1180
|
readonly cpu: bigint;
|
|
1182
1181
|
readonly mem: bigint;
|
|
1183
1182
|
};
|
|
1183
|
+
readonly _tag: "Minting";
|
|
1184
1184
|
} | {
|
|
1185
|
-
readonly _tag: "Spending";
|
|
1186
1185
|
readonly data: {
|
|
1187
1186
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1188
1187
|
} | {
|
|
@@ -1202,9 +1201,9 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1202
1201
|
readonly cpu: bigint;
|
|
1203
1202
|
readonly mem: bigint;
|
|
1204
1203
|
};
|
|
1204
|
+
readonly _tag: "Spending";
|
|
1205
1205
|
readonly inputIndex: number;
|
|
1206
1206
|
} | {
|
|
1207
|
-
readonly _tag: "Rewarding";
|
|
1208
1207
|
readonly data: {
|
|
1209
1208
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1210
1209
|
} | {
|
|
@@ -1224,9 +1223,9 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1224
1223
|
readonly cpu: bigint;
|
|
1225
1224
|
readonly mem: bigint;
|
|
1226
1225
|
};
|
|
1226
|
+
readonly _tag: "Rewarding";
|
|
1227
1227
|
readonly withdrawalIndex: number;
|
|
1228
1228
|
} | {
|
|
1229
|
-
readonly _tag: "Certifying";
|
|
1230
1229
|
readonly data: {
|
|
1231
1230
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1232
1231
|
} | {
|
|
@@ -1246,9 +1245,10 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1246
1245
|
readonly cpu: bigint;
|
|
1247
1246
|
readonly mem: bigint;
|
|
1248
1247
|
};
|
|
1248
|
+
readonly _tag: "Certifying";
|
|
1249
1249
|
readonly dcertIndex: number;
|
|
1250
1250
|
}, {
|
|
1251
|
-
readonly
|
|
1251
|
+
readonly policyIndex: number;
|
|
1252
1252
|
readonly data: {
|
|
1253
1253
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1254
1254
|
} | {
|
|
@@ -1264,13 +1264,12 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1264
1264
|
readonly fields: readonly Data.Data[];
|
|
1265
1265
|
readonly constructor: number;
|
|
1266
1266
|
};
|
|
1267
|
-
readonly policyIndex: number;
|
|
1268
1267
|
readonly cost: {
|
|
1269
1268
|
readonly cpu: bigint;
|
|
1270
1269
|
readonly mem: bigint;
|
|
1271
1270
|
};
|
|
1271
|
+
readonly _tag: "Minting";
|
|
1272
1272
|
} | {
|
|
1273
|
-
readonly _tag: "Spending";
|
|
1274
1273
|
readonly data: {
|
|
1275
1274
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1276
1275
|
} | {
|
|
@@ -1290,9 +1289,9 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1290
1289
|
readonly cpu: bigint;
|
|
1291
1290
|
readonly mem: bigint;
|
|
1292
1291
|
};
|
|
1292
|
+
readonly _tag: "Spending";
|
|
1293
1293
|
readonly inputIndex: number;
|
|
1294
1294
|
} | {
|
|
1295
|
-
readonly _tag: "Rewarding";
|
|
1296
1295
|
readonly data: {
|
|
1297
1296
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1298
1297
|
} | {
|
|
@@ -1312,9 +1311,9 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1312
1311
|
readonly cpu: bigint;
|
|
1313
1312
|
readonly mem: bigint;
|
|
1314
1313
|
};
|
|
1314
|
+
readonly _tag: "Rewarding";
|
|
1315
1315
|
readonly withdrawalIndex: number;
|
|
1316
1316
|
} | {
|
|
1317
|
-
readonly _tag: "Certifying";
|
|
1318
1317
|
readonly data: {
|
|
1319
1318
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1320
1319
|
} | {
|
|
@@ -1334,6 +1333,7 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1334
1333
|
readonly cpu: bigint;
|
|
1335
1334
|
readonly mem: bigint;
|
|
1336
1335
|
};
|
|
1336
|
+
readonly _tag: "Certifying";
|
|
1337
1337
|
readonly dcertIndex: number;
|
|
1338
1338
|
}, never>, CurrentTx>;
|
|
1339
1339
|
export {};
|
|
@@ -264,7 +264,7 @@ export interface BabelFeeOptions {
|
|
|
264
264
|
*/
|
|
265
265
|
readonly assetClass: AssetClass.AssetClass;
|
|
266
266
|
}
|
|
267
|
-
export declare const build: (options?: BuildOptions) => (b: TxBuilder) => Effect.Effect<Tx.Tx, Error | import("effect/ParseResult").ParseError, Network.Params.params | Network.
|
|
268
|
-
export declare const buildEffect: (options?: BuildOptions) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<Tx.Tx, Error | import("effect/ParseResult").ParseError | E, Network.Params.params | Network.
|
|
267
|
+
export declare const build: (options?: BuildOptions) => (b: TxBuilder) => Effect.Effect<Tx.Tx, Error | import("effect/ParseResult").ParseError, Network.Params.params | Network.UTxO | Network.IsMainnet | BalancingWallet>;
|
|
268
|
+
export declare const buildEffect: (options?: BuildOptions) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<Tx.Tx, Error | import("effect/ParseResult").ParseError | E, Network.Params.params | Network.UTxO | Network.IsMainnet | BalancingWallet | R>;
|
|
269
269
|
export {};
|
|
270
270
|
//# sourceMappingURL=TxBuilder.d.ts.map
|
|
@@ -67,7 +67,7 @@ export declare const Phrase: (phrase: string | string[], account?: number, subAc
|
|
|
67
67
|
key: string & import("effect/Brand").Brand<"Crypto.Bip32.VerificationKey">;
|
|
68
68
|
}, Error, never>;
|
|
69
69
|
signTx: (tx: Tx.Tx) => Effect.Effect<Bip32.Signature[], never, never>;
|
|
70
|
-
}, Bip39.InvalidPhraseLength | Bip39.InvalidWord | Bip39.InvalidChecksum, Network.
|
|
70
|
+
}, Bip39.InvalidPhraseLength | Bip39.InvalidWord | Bip39.InvalidChecksum, Network.UTxOsAt | Network.IsMainnet>;
|
|
71
71
|
export declare const Browser: (_handle: unknown) => never;
|
|
72
72
|
export {};
|
|
73
73
|
//# sourceMappingURL=Wallet.d.ts.map
|