@helios-lang/effect 0.4.45 → 0.5.1
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/Contract.js +21 -20
- package/dist/Cardano/Contract.js.map +1 -1
- package/dist/Cardano/Ledger/AssetClass.js +5 -1
- package/dist/Cardano/Ledger/AssetClass.js.map +1 -1
- package/dist/Cardano/Ledger/Assets.js.map +1 -1
- package/dist/Cardano/Ledger/MintingPolicy.js +1 -1
- package/dist/Cardano/Ledger/MintingPolicy.js.map +1 -1
- package/dist/Cardano/Ledger/RewardAddress.js +2 -8
- package/dist/Cardano/Ledger/RewardAddress.js.map +1 -1
- package/dist/Cardano/TxBuilder.js.map +1 -1
- package/dist/Cardano/Uplc/Data.js +2 -2
- package/dist/Cardano/Uplc/Data.js.map +1 -1
- package/package.json +2 -2
- package/types/Cardano/CoinSelection.d.ts +1 -1
- package/types/Cardano/Contract.d.ts +61 -20
- package/types/Cardano/Contract.d.ts.map +1 -1
- package/types/Cardano/Cose/Sign1.d.ts +3 -3
- package/types/Cardano/Ledger/AssetClass.d.ts +1 -1
- package/types/Cardano/Ledger/AssetClass.d.ts.map +1 -1
- package/types/Cardano/Ledger/Assets.d.ts +2 -2
- package/types/Cardano/Ledger/MintingPolicy.d.ts +4 -4
- package/types/Cardano/Ledger/MintingPolicy.d.ts.map +1 -1
- package/types/Cardano/Ledger/RewardAddress.d.ts.map +1 -1
- package/types/Cardano/Ledger/Tx.d.ts +1 -1
- package/types/Cardano/Ledger/TxOutput.d.ts +1 -1
- package/types/Cardano/Ledger/UTxO.d.ts +14 -14
- package/types/Cardano/Network/errors.d.ts +6 -6
- package/types/Cardano/ScriptContext.d.ts +29 -29
- package/types/Cardano/TxBuilder.d.ts +13 -13
- package/types/Cardano/Uplc/Builtins.d.ts +4 -4
- package/types/Cardano/Uplc/Data.d.ts.map +1 -1
- package/types/Cardano/Uplc/Script.d.ts +1 -1
- package/types/Cardano/Wallet.d.ts +1 -1
- package/types/Codecs/Bytes.d.ts +1 -1
- package/types/Codecs/Cbor.d.ts +1 -1
- package/types/Crypto/Bip39.d.ts +4 -4
- package/types/Crypto/EdDSA.d.ts +3 -3
- package/types/Crypto/errors.d.ts +1 -1
|
@@ -18,7 +18,7 @@ export declare const makeArgs: (version: 1 | 2 | 3, tx: Tx, redeemerIndex: numbe
|
|
|
18
18
|
readonly fields: readonly Data.Data[];
|
|
19
19
|
readonly constructor: number;
|
|
20
20
|
};
|
|
21
|
-
}[], ParseResult.ParseError, import("./Network/IsMainnet.js").IsMainnet
|
|
21
|
+
}[], ParseResult.ParseError, Params.params | import("./Network/IsMainnet.js").IsMainnet>;
|
|
22
22
|
/**
|
|
23
23
|
* Only use for testing!
|
|
24
24
|
*/
|
|
@@ -80,7 +80,6 @@ export declare const TxInfoV3: Schema.transformOrFail<Schema.SchemaClass<{
|
|
|
80
80
|
readonly fields: readonly Data.Data[];
|
|
81
81
|
readonly constructor: number;
|
|
82
82
|
}, never>, Schema.Array$<Schema.Schema<{
|
|
83
|
-
readonly ref: string & import("effect/Brand").Brand<"UTxORef">;
|
|
84
83
|
readonly output: {
|
|
85
84
|
readonly address: string & import("effect/Brand").Brand<"Cardano.Ledger.Address">;
|
|
86
85
|
readonly assets: {
|
|
@@ -118,6 +117,7 @@ export declare const TxInfoV3: Schema.transformOrFail<Schema.SchemaClass<{
|
|
|
118
117
|
readonly strictBabbage?: boolean | undefined;
|
|
119
118
|
} | undefined;
|
|
120
119
|
};
|
|
120
|
+
readonly ref: string & import("effect/Brand").Brand<"UTxORef">;
|
|
121
121
|
}, {
|
|
122
122
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
123
123
|
} | {
|
|
@@ -162,7 +162,6 @@ export declare const TxInfoV3: Schema.transformOrFail<Schema.SchemaClass<{
|
|
|
162
162
|
readonly fields: readonly Data.Data[];
|
|
163
163
|
readonly constructor: number;
|
|
164
164
|
}, never>, Schema.Array$<Schema.Schema<{
|
|
165
|
-
readonly ref: string & import("effect/Brand").Brand<"UTxORef">;
|
|
166
165
|
readonly output: {
|
|
167
166
|
readonly address: string & import("effect/Brand").Brand<"Cardano.Ledger.Address">;
|
|
168
167
|
readonly assets: {
|
|
@@ -200,6 +199,7 @@ export declare const TxInfoV3: Schema.transformOrFail<Schema.SchemaClass<{
|
|
|
200
199
|
readonly strictBabbage?: boolean | undefined;
|
|
201
200
|
} | undefined;
|
|
202
201
|
};
|
|
202
|
+
readonly ref: string & import("effect/Brand").Brand<"UTxORef">;
|
|
203
203
|
}, {
|
|
204
204
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
205
205
|
} | {
|
|
@@ -322,7 +322,7 @@ export declare const TxInfoV3: Schema.transformOrFail<Schema.SchemaClass<{
|
|
|
322
322
|
} | {
|
|
323
323
|
readonly fields: readonly Data.Data[];
|
|
324
324
|
readonly constructor: number;
|
|
325
|
-
}, never>, Schema.Array$<Schema.Tuple2<Schema.Schema<
|
|
325
|
+
}, never>, Schema.Array$<Schema.Tuple2<Schema.Schema<import("./Ledger/MintingPolicy.js").MintingPolicy, {
|
|
326
326
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
327
327
|
} | {
|
|
328
328
|
readonly int: bigint;
|
|
@@ -379,7 +379,7 @@ export declare const TxInfoV3: Schema.transformOrFail<Schema.SchemaClass<{
|
|
|
379
379
|
} | {
|
|
380
380
|
readonly fields: readonly Data.Data[];
|
|
381
381
|
readonly constructor: number;
|
|
382
|
-
}, never>, Schema.Array$<Schema.Tuple2<Schema.Schema<
|
|
382
|
+
}, never>, Schema.Array$<Schema.Tuple2<Schema.Schema<import("./Ledger/MintingPolicy.js").MintingPolicy, {
|
|
383
383
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
384
384
|
} | {
|
|
385
385
|
readonly int: bigint;
|
|
@@ -1131,7 +1131,7 @@ export declare class CurrentTx extends CurrentTx_base {
|
|
|
1131
1131
|
export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
1132
1132
|
_tag: "Minting";
|
|
1133
1133
|
} & {
|
|
1134
|
-
policy:
|
|
1134
|
+
policy: import("./Ledger/MintingPolicy.js").MintingPolicy;
|
|
1135
1135
|
}) | ({
|
|
1136
1136
|
_tag: "Spending";
|
|
1137
1137
|
} & {
|
|
@@ -1161,6 +1161,10 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1161
1161
|
dcert: import("./Ledger/DCert.js").DCert;
|
|
1162
1162
|
}), Data.Data, never>, Schema.SchemaClass<{
|
|
1163
1163
|
readonly _tag: "Minting";
|
|
1164
|
+
readonly cost: {
|
|
1165
|
+
readonly cpu: bigint;
|
|
1166
|
+
readonly mem: bigint;
|
|
1167
|
+
};
|
|
1164
1168
|
readonly data: {
|
|
1165
1169
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1166
1170
|
} | {
|
|
@@ -1177,12 +1181,12 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1177
1181
|
readonly constructor: number;
|
|
1178
1182
|
};
|
|
1179
1183
|
readonly policyIndex: number;
|
|
1184
|
+
} | {
|
|
1185
|
+
readonly _tag: "Spending";
|
|
1180
1186
|
readonly cost: {
|
|
1181
1187
|
readonly cpu: bigint;
|
|
1182
1188
|
readonly mem: bigint;
|
|
1183
1189
|
};
|
|
1184
|
-
} | {
|
|
1185
|
-
readonly _tag: "Spending";
|
|
1186
1190
|
readonly data: {
|
|
1187
1191
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1188
1192
|
} | {
|
|
@@ -1198,13 +1202,13 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1198
1202
|
readonly fields: readonly Data.Data[];
|
|
1199
1203
|
readonly constructor: number;
|
|
1200
1204
|
};
|
|
1205
|
+
readonly inputIndex: number;
|
|
1206
|
+
} | {
|
|
1207
|
+
readonly _tag: "Rewarding";
|
|
1201
1208
|
readonly cost: {
|
|
1202
1209
|
readonly cpu: bigint;
|
|
1203
1210
|
readonly mem: bigint;
|
|
1204
1211
|
};
|
|
1205
|
-
readonly inputIndex: number;
|
|
1206
|
-
} | {
|
|
1207
|
-
readonly _tag: "Rewarding";
|
|
1208
1212
|
readonly data: {
|
|
1209
1213
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1210
1214
|
} | {
|
|
@@ -1220,13 +1224,13 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1220
1224
|
readonly fields: readonly Data.Data[];
|
|
1221
1225
|
readonly constructor: number;
|
|
1222
1226
|
};
|
|
1227
|
+
readonly withdrawalIndex: number;
|
|
1228
|
+
} | {
|
|
1229
|
+
readonly _tag: "Certifying";
|
|
1223
1230
|
readonly cost: {
|
|
1224
1231
|
readonly cpu: bigint;
|
|
1225
1232
|
readonly mem: bigint;
|
|
1226
1233
|
};
|
|
1227
|
-
readonly withdrawalIndex: number;
|
|
1228
|
-
} | {
|
|
1229
|
-
readonly _tag: "Certifying";
|
|
1230
1234
|
readonly data: {
|
|
1231
1235
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1232
1236
|
} | {
|
|
@@ -1242,13 +1246,13 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1242
1246
|
readonly fields: readonly Data.Data[];
|
|
1243
1247
|
readonly constructor: number;
|
|
1244
1248
|
};
|
|
1249
|
+
readonly dcertIndex: number;
|
|
1250
|
+
}, {
|
|
1251
|
+
readonly _tag: "Minting";
|
|
1245
1252
|
readonly cost: {
|
|
1246
1253
|
readonly cpu: bigint;
|
|
1247
1254
|
readonly mem: bigint;
|
|
1248
1255
|
};
|
|
1249
|
-
readonly dcertIndex: number;
|
|
1250
|
-
}, {
|
|
1251
|
-
readonly _tag: "Minting";
|
|
1252
1256
|
readonly data: {
|
|
1253
1257
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1254
1258
|
} | {
|
|
@@ -1265,12 +1269,12 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1265
1269
|
readonly constructor: number;
|
|
1266
1270
|
};
|
|
1267
1271
|
readonly policyIndex: number;
|
|
1272
|
+
} | {
|
|
1273
|
+
readonly _tag: "Spending";
|
|
1268
1274
|
readonly cost: {
|
|
1269
1275
|
readonly cpu: bigint;
|
|
1270
1276
|
readonly mem: bigint;
|
|
1271
1277
|
};
|
|
1272
|
-
} | {
|
|
1273
|
-
readonly _tag: "Spending";
|
|
1274
1278
|
readonly data: {
|
|
1275
1279
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1276
1280
|
} | {
|
|
@@ -1286,13 +1290,13 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1286
1290
|
readonly fields: readonly Data.Data[];
|
|
1287
1291
|
readonly constructor: number;
|
|
1288
1292
|
};
|
|
1293
|
+
readonly inputIndex: number;
|
|
1294
|
+
} | {
|
|
1295
|
+
readonly _tag: "Rewarding";
|
|
1289
1296
|
readonly cost: {
|
|
1290
1297
|
readonly cpu: bigint;
|
|
1291
1298
|
readonly mem: bigint;
|
|
1292
1299
|
};
|
|
1293
|
-
readonly inputIndex: number;
|
|
1294
|
-
} | {
|
|
1295
|
-
readonly _tag: "Rewarding";
|
|
1296
1300
|
readonly data: {
|
|
1297
1301
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1298
1302
|
} | {
|
|
@@ -1308,13 +1312,13 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1308
1312
|
readonly fields: readonly Data.Data[];
|
|
1309
1313
|
readonly constructor: number;
|
|
1310
1314
|
};
|
|
1315
|
+
readonly withdrawalIndex: number;
|
|
1316
|
+
} | {
|
|
1317
|
+
readonly _tag: "Certifying";
|
|
1311
1318
|
readonly cost: {
|
|
1312
1319
|
readonly cpu: bigint;
|
|
1313
1320
|
readonly mem: bigint;
|
|
1314
1321
|
};
|
|
1315
|
-
readonly withdrawalIndex: number;
|
|
1316
|
-
} | {
|
|
1317
|
-
readonly _tag: "Certifying";
|
|
1318
1322
|
readonly data: {
|
|
1319
1323
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1320
1324
|
} | {
|
|
@@ -1330,10 +1334,6 @@ export declare const PurposeV3: Schema.transformOrFail<Schema.Schema<({
|
|
|
1330
1334
|
readonly fields: readonly Data.Data[];
|
|
1331
1335
|
readonly constructor: number;
|
|
1332
1336
|
};
|
|
1333
|
-
readonly cost: {
|
|
1334
|
-
readonly cpu: bigint;
|
|
1335
|
-
readonly mem: bigint;
|
|
1336
|
-
};
|
|
1337
1337
|
readonly dcertIndex: number;
|
|
1338
1338
|
}, never>, CurrentTx>;
|
|
1339
1339
|
export {};
|
|
@@ -7,7 +7,7 @@ import { Balancing as BalancingWallet } from "./Wallet.js";
|
|
|
7
7
|
* It is difficult to give RedeemerBuilder access to the whole Tx including to Tx.Witnesses, because this leads to circular dependencies
|
|
8
8
|
*/
|
|
9
9
|
export type RedeemerBuilder = (tx: Tx.Tx) => Uplc.Data.Data;
|
|
10
|
-
declare const UTxOAlreadyAdded_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
10
|
+
declare const UTxOAlreadyAdded_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
11
11
|
readonly _tag: "Cardano.TxBuilder.UTxOAlreadyAdded";
|
|
12
12
|
} & Readonly<A>;
|
|
13
13
|
export declare class UTxOAlreadyAdded extends UTxOAlreadyAdded_base<{
|
|
@@ -16,7 +16,7 @@ export declare class UTxOAlreadyAdded extends UTxOAlreadyAdded_base<{
|
|
|
16
16
|
}> {
|
|
17
17
|
constructor(ref: UTxORef.UTxORef);
|
|
18
18
|
}
|
|
19
|
-
declare const MissingDatum_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
19
|
+
declare const MissingDatum_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
20
20
|
readonly _tag: "Cardano.TxBuilder.MissingDatum";
|
|
21
21
|
} & Readonly<A>;
|
|
22
22
|
export declare class MissingDatum extends MissingDatum_base<{
|
|
@@ -24,7 +24,7 @@ export declare class MissingDatum extends MissingDatum_base<{
|
|
|
24
24
|
}> {
|
|
25
25
|
constructor();
|
|
26
26
|
}
|
|
27
|
-
declare const MissingRedeemer_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
27
|
+
declare const MissingRedeemer_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
28
28
|
readonly _tag: "Cardano.TxBuilder.MissingRedeemer";
|
|
29
29
|
} & Readonly<A>;
|
|
30
30
|
export declare class MissingRedeemer extends MissingRedeemer_base<{
|
|
@@ -32,7 +32,7 @@ export declare class MissingRedeemer extends MissingRedeemer_base<{
|
|
|
32
32
|
}> {
|
|
33
33
|
constructor();
|
|
34
34
|
}
|
|
35
|
-
declare const RedundantRedeemer_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
35
|
+
declare const RedundantRedeemer_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
36
36
|
readonly _tag: "Cardano.TxBuilder.RedundantRedeemer";
|
|
37
37
|
} & Readonly<A>;
|
|
38
38
|
export declare class RedundantRedeemer extends RedundantRedeemer_base<{
|
|
@@ -40,7 +40,7 @@ export declare class RedundantRedeemer extends RedundantRedeemer_base<{
|
|
|
40
40
|
}> {
|
|
41
41
|
constructor();
|
|
42
42
|
}
|
|
43
|
-
declare const RedeemerAlreadyAdded_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
43
|
+
declare const RedeemerAlreadyAdded_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
44
44
|
readonly _tag: "Cardano.TxBuilder.RedeemerAlreadyAdded";
|
|
45
45
|
} & Readonly<A>;
|
|
46
46
|
export declare class RedeemerAlreadyAdded extends RedeemerAlreadyAdded_base<{
|
|
@@ -48,7 +48,7 @@ export declare class RedeemerAlreadyAdded extends RedeemerAlreadyAdded_base<{
|
|
|
48
48
|
}> {
|
|
49
49
|
constructor();
|
|
50
50
|
}
|
|
51
|
-
declare const MissingScript_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
51
|
+
declare const MissingScript_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
52
52
|
readonly _tag: "Cardano.TxBuilder.MissingScript";
|
|
53
53
|
} & Readonly<A>;
|
|
54
54
|
export declare class MissingScript extends MissingScript_base<{
|
|
@@ -56,7 +56,7 @@ export declare class MissingScript extends MissingScript_base<{
|
|
|
56
56
|
}> {
|
|
57
57
|
constructor(hash: ValidatorHash.ValidatorHash);
|
|
58
58
|
}
|
|
59
|
-
declare const DatumNotFound_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
59
|
+
declare const DatumNotFound_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
60
60
|
readonly _tag: "Cardano.TxBuilder.DatumNotFound";
|
|
61
61
|
} & Readonly<A>;
|
|
62
62
|
export declare class DatumNotFound extends DatumNotFound_base<{
|
|
@@ -64,7 +64,7 @@ export declare class DatumNotFound extends DatumNotFound_base<{
|
|
|
64
64
|
}> {
|
|
65
65
|
constructor(hash: DatumHash.DatumHash, cause?: string);
|
|
66
66
|
}
|
|
67
|
-
declare const ColleteralNotAvailable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
67
|
+
declare const ColleteralNotAvailable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
68
68
|
readonly _tag: "Cardano.TxBuilder.CollateralNotAvailable";
|
|
69
69
|
} & Readonly<A>;
|
|
70
70
|
export declare class ColleteralNotAvailable extends ColleteralNotAvailable_base<{
|
|
@@ -163,14 +163,14 @@ export declare const mint: (assets: Assets.Assets, redeemer?: Uplc.Data.Data | R
|
|
|
163
163
|
export declare const mintEffect: (assets: Assets.Assets, redeemer?: Uplc.Data.Data | RedeemerBuilder | undefined) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<TxBuilder, MissingRedeemer | RedundantRedeemer | RedeemerAlreadyAdded | MissingScript | E, R>;
|
|
164
164
|
export declare const pay: (...outputs: TxOutput.TxOutput[]) => (b: TxBuilder) => Effect.Effect<TxBuilder, Assets.SomeNonPositive, never>;
|
|
165
165
|
export declare const payEffect: (...outputs: TxOutput.TxOutput[]) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<TxBuilder, Assets.SomeNonPositive | E, R>;
|
|
166
|
-
export declare const refer: (...utxos: UTxO.UTxO[]) => (b: TxBuilder) => Effect.Effect<TxBuilder,
|
|
167
|
-
export declare const referEffect: (...utxos: UTxO.UTxO[]) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<TxBuilder,
|
|
166
|
+
export declare const refer: (...utxos: UTxO.UTxO[]) => (b: TxBuilder) => Effect.Effect<TxBuilder, Assets.SomeNonPositive | UTxOAlreadyAdded, never>;
|
|
167
|
+
export declare const referEffect: (...utxos: UTxO.UTxO[]) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<TxBuilder, Assets.SomeNonPositive | UTxOAlreadyAdded | E, R>;
|
|
168
168
|
export declare const register: (credential: Credential.Credential) => (b: TxBuilder) => TxBuilder;
|
|
169
169
|
export declare const registerEffect: (credential: Credential.Credential) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<TxBuilder, E, R>;
|
|
170
170
|
export declare const sign: (...signers: PubKeyHash.PubKeyHash[]) => (b: TxBuilder) => TxBuilder;
|
|
171
171
|
export declare const signEffect: (...signers: PubKeyHash.PubKeyHash[]) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<TxBuilder, E, R>;
|
|
172
|
-
export declare const spend: (utxos: UTxO.UTxO | UTxO.UTxO[], redeemer?: Uplc.Data.Data | RedeemerBuilder | undefined) => (b: TxBuilder) => Effect.Effect<TxBuilder, UTxOAlreadyAdded | MissingDatum | MissingRedeemer | RedundantRedeemer | RedeemerAlreadyAdded | MissingScript | DatumNotFound
|
|
173
|
-
export declare const spendEffect: (utxos: UTxO.UTxO | UTxO.UTxO[], redeemer?: Uplc.Data.Data | RedeemerBuilder | undefined) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<TxBuilder, UTxOAlreadyAdded | MissingDatum | MissingRedeemer | RedundantRedeemer | RedeemerAlreadyAdded | MissingScript | DatumNotFound |
|
|
172
|
+
export declare const spend: (utxos: UTxO.UTxO | UTxO.UTxO[], redeemer?: Uplc.Data.Data | RedeemerBuilder | undefined) => (b: TxBuilder) => Effect.Effect<TxBuilder, Assets.SomeNonPositive | UTxOAlreadyAdded | MissingDatum | MissingRedeemer | RedundantRedeemer | RedeemerAlreadyAdded | MissingScript | DatumNotFound, GetDatum>;
|
|
173
|
+
export declare const spendEffect: (utxos: UTxO.UTxO | UTxO.UTxO[], redeemer?: Uplc.Data.Data | RedeemerBuilder | undefined) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<TxBuilder, Assets.SomeNonPositive | UTxOAlreadyAdded | MissingDatum | MissingRedeemer | RedundantRedeemer | RedeemerAlreadyAdded | MissingScript | DatumNotFound | E, GetDatum | R>;
|
|
174
174
|
export declare const validFromSlot: (slot: number) => (b: TxBuilder) => TxBuilder;
|
|
175
175
|
export declare const validFromSlotEffect: (slot: number) => <E, R>(self: Effect.Effect<TxBuilder, E, R>) => Effect.Effect<TxBuilder, E, R>;
|
|
176
176
|
/**
|
|
@@ -229,6 +229,6 @@ export interface BabelFeeOptions {
|
|
|
229
229
|
*/
|
|
230
230
|
readonly assetClass: AssetClass.AssetClass;
|
|
231
231
|
}
|
|
232
|
-
export declare const build: (options?: BuildOptions) => (b: TxBuilder) => Effect.Effect<Tx.Tx, import("effect/ParseResult").ParseError
|
|
232
|
+
export declare const build: (options?: BuildOptions) => (b: TxBuilder) => Effect.Effect<Tx.Tx, Error | import("effect/ParseResult").ParseError, Network.Params.params | Network.IsMainnet | Network.UTxO | BalancingWallet>;
|
|
233
233
|
export {};
|
|
234
234
|
//# sourceMappingURL=TxBuilder.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Either, Encoding } from "effect";
|
|
2
2
|
import type { MachineContext, Value as CekValue } from "./Cek.js";
|
|
3
3
|
import * as Cost from "./Cost.js";
|
|
4
|
-
declare const WrongArgType_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
4
|
+
declare const WrongArgType_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
5
5
|
readonly _tag: "Uplc.Builtins.WrongArgType";
|
|
6
6
|
} & Readonly<A>;
|
|
7
7
|
export declare class WrongArgType extends WrongArgType_base<{
|
|
@@ -9,7 +9,7 @@ export declare class WrongArgType extends WrongArgType_base<{
|
|
|
9
9
|
}> {
|
|
10
10
|
constructor(argIndex: number, expected: string, actual: string);
|
|
11
11
|
}
|
|
12
|
-
declare const DivisionByZero_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
12
|
+
declare const DivisionByZero_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
13
13
|
readonly _tag: "Uplc.Builtins.DivisionByZero";
|
|
14
14
|
} & Readonly<A>;
|
|
15
15
|
export declare class DivisionByZero extends DivisionByZero_base<{
|
|
@@ -17,7 +17,7 @@ export declare class DivisionByZero extends DivisionByZero_base<{
|
|
|
17
17
|
}> {
|
|
18
18
|
constructor(fnName: string);
|
|
19
19
|
}
|
|
20
|
-
declare const OutOfRange_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
20
|
+
declare const OutOfRange_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
21
21
|
readonly _tag: "Uplc.Builtins.OutOfRange";
|
|
22
22
|
} & Readonly<A>;
|
|
23
23
|
export declare class OutOfRange extends OutOfRange_base<{
|
|
@@ -25,7 +25,7 @@ export declare class OutOfRange extends OutOfRange_base<{
|
|
|
25
25
|
}> {
|
|
26
26
|
constructor(containerSize: number, index: number);
|
|
27
27
|
}
|
|
28
|
-
declare const InvalidLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
28
|
+
declare const InvalidLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
29
29
|
readonly _tag: "Uplc.Builtin.InvalidLength";
|
|
30
30
|
} & Readonly<A>;
|
|
31
31
|
export declare class InvalidLength extends InvalidLength_base<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Data.d.ts","sourceRoot":"","sources":["../../../src/Cardano/Uplc/Data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,MAAM,E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;IACnB,CAAC,WAAW,EAAE,MAAM,GAAG;QACrB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAAA;KACnD,CAAA;CACF,EAED,UAAU,YAAY,KACrB,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE,IAAI,CAgF/C,CAAA;AAEH,eAAO,MAAM,IAAI;;;;6CAWhB,CAAA;AAkCD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCrB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAA;AAE5D;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,UAmB/B"}
|
|
@@ -82,7 +82,7 @@ declare const eval$: (script: Script, args: readonly Value.Value[] | undefined,
|
|
|
82
82
|
}[];
|
|
83
83
|
breakdown: Cost.Breakdown;
|
|
84
84
|
}, Error, never>;
|
|
85
|
-
export declare const apply: (script: Script, args: readonly Value.Value[]) => Effect.Effect<Script<
|
|
85
|
+
export declare const apply: (script: Script, args: readonly Value.Value[]) => Effect.Effect<Script<1 | 2 | 3>, Error, never>;
|
|
86
86
|
export declare const extractParams: (script: Script) => Effect.Effect<Value.Value[], Error, never>;
|
|
87
87
|
export { eval$ as eval };
|
|
88
88
|
export declare function hash(script: Script): ValidatorHash;
|
|
@@ -23,7 +23,6 @@ export declare const Phrase: (phrase: string | string[], account?: number, subAc
|
|
|
23
23
|
addressSync: string & import("effect/Brand").Brand<"Cardano.Ledger.Address">;
|
|
24
24
|
changeAddress: Effect.Effect<string & import("effect/Brand").Brand<"Cardano.Ledger.Address">, never, never>;
|
|
25
25
|
utxos: Effect.Effect<{
|
|
26
|
-
readonly ref: string & import("effect/Brand").Brand<"UTxORef">;
|
|
27
26
|
readonly output: {
|
|
28
27
|
readonly address: string & import("effect/Brand").Brand<"Cardano.Ledger.Address">;
|
|
29
28
|
readonly assets: {
|
|
@@ -61,6 +60,7 @@ export declare const Phrase: (phrase: string | string[], account?: number, subAc
|
|
|
61
60
|
readonly strictBabbage?: boolean | undefined;
|
|
62
61
|
} | undefined;
|
|
63
62
|
};
|
|
63
|
+
readonly ref: string & import("effect/Brand").Brand<"UTxORef">;
|
|
64
64
|
}[], Error, never>;
|
|
65
65
|
signData: (candidateAddress: Address.Address, data: Uint8Array | number[] | string) => Effect.Effect<{
|
|
66
66
|
signature: import("effect/Either").Either<Cose.Sign1.Sign1, Cose.Sign1.InvalidAddress>;
|
package/types/Codecs/Bytes.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Either, Encoding } from "effect";
|
|
2
2
|
export type BytesLike = string | number[] | Uint8Array | Stream;
|
|
3
|
-
declare const EndOfStreamError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
3
|
+
declare const EndOfStreamError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
4
4
|
readonly _tag: "EndOfStreamError";
|
|
5
5
|
} & Readonly<A>;
|
|
6
6
|
export declare class EndOfStreamError extends EndOfStreamError_base<{
|
package/types/Codecs/Cbor.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type Decoder<T> = (stream: Bytes.Stream) => Either.Either<T, Bytes.EndOfS
|
|
|
8
8
|
export type IndexedDecoder<T> = (stream: Bytes.Stream, index: number) => Either.Either<T, Bytes.EndOfStreamError | DecodeError>;
|
|
9
9
|
export type DecodeResult<T> = Either.Either<T, Bytes.EndOfStreamError | DecodeError>;
|
|
10
10
|
export type PeekResult<T> = Either.Either<T, Bytes.EndOfStreamError>;
|
|
11
|
-
declare const DecodeError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
11
|
+
declare const DecodeError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
12
12
|
readonly _tag: "Cbor.DecodeError";
|
|
13
13
|
} & Readonly<A>;
|
|
14
14
|
export declare class DecodeError extends DecodeError_base<{
|
package/types/Crypto/Bip39.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Either } from "effect";
|
|
2
|
-
declare const InvalidPhraseLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
2
|
+
declare const InvalidPhraseLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
3
3
|
readonly _tag: "Crypto.Bip39.InvalidPhraseLength";
|
|
4
4
|
} & Readonly<A>;
|
|
5
5
|
export declare class InvalidPhraseLength extends InvalidPhraseLength_base<{
|
|
@@ -7,7 +7,7 @@ export declare class InvalidPhraseLength extends InvalidPhraseLength_base<{
|
|
|
7
7
|
}> {
|
|
8
8
|
constructor(n: number);
|
|
9
9
|
}
|
|
10
|
-
declare const InvalidWord_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
10
|
+
declare const InvalidWord_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
11
11
|
readonly _tag: "Crypto.Bip39.InvalidWord";
|
|
12
12
|
} & Readonly<A>;
|
|
13
13
|
export declare class InvalidWord extends InvalidWord_base<{
|
|
@@ -15,7 +15,7 @@ export declare class InvalidWord extends InvalidWord_base<{
|
|
|
15
15
|
}> {
|
|
16
16
|
constructor(w: string);
|
|
17
17
|
}
|
|
18
|
-
declare const InvalidChecksum_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
18
|
+
declare const InvalidChecksum_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
19
19
|
readonly _tag: "Crypto.Bip39.InvalidChecksum";
|
|
20
20
|
} & Readonly<A>;
|
|
21
21
|
export declare class InvalidChecksum extends InvalidChecksum_base<{
|
|
@@ -23,7 +23,7 @@ export declare class InvalidChecksum extends InvalidChecksum_base<{
|
|
|
23
23
|
}> {
|
|
24
24
|
constructor(message?: string);
|
|
25
25
|
}
|
|
26
|
-
declare const InvalidEntropyLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
26
|
+
declare const InvalidEntropyLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
27
27
|
readonly _tag: "Crypto.Bip39.InvalidEntropyLength";
|
|
28
28
|
} & Readonly<A>;
|
|
29
29
|
export declare class InvalidEntropyLength extends InvalidEntropyLength_base<{
|
package/types/Crypto/EdDSA.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Either, Encoding } from "effect";
|
|
2
2
|
import { type Curve, type Point2I } from "./Curve.js";
|
|
3
3
|
import { type Field } from "./Field.js";
|
|
4
|
-
declare const BadPrivateKeyLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
4
|
+
declare const BadPrivateKeyLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
5
5
|
readonly _tag: "Crypto.EdDSA.BadPrivateKeyLength";
|
|
6
6
|
} & Readonly<A>;
|
|
7
7
|
export declare class BadPrivateKeyLength extends BadPrivateKeyLength_base<{
|
|
@@ -9,7 +9,7 @@ export declare class BadPrivateKeyLength extends BadPrivateKeyLength_base<{
|
|
|
9
9
|
}> {
|
|
10
10
|
constructor(privateKey: Uint8Array);
|
|
11
11
|
}
|
|
12
|
-
declare const BadSignatureLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
12
|
+
declare const BadSignatureLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
13
13
|
readonly _tag: "Crypto.EdDSA.BadSignatureLength";
|
|
14
14
|
} & Readonly<A>;
|
|
15
15
|
export declare class BadSignatureLength extends BadSignatureLength_base<{
|
|
@@ -17,7 +17,7 @@ export declare class BadSignatureLength extends BadSignatureLength_base<{
|
|
|
17
17
|
}> {
|
|
18
18
|
constructor(signature: Uint8Array);
|
|
19
19
|
}
|
|
20
|
-
declare const BadPublicKeyLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
20
|
+
declare const BadPublicKeyLength_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
21
21
|
readonly _tag: "Crypto.EdDSA.BadPublicKeyLength";
|
|
22
22
|
} & Readonly<A>;
|
|
23
23
|
export declare class BadPublicKeyLength extends BadPublicKeyLength_base<{
|
package/types/Crypto/errors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const NativeUnavailable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").
|
|
1
|
+
declare const NativeUnavailable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
2
2
|
readonly _tag: "NativeUnavailable";
|
|
3
3
|
} & Readonly<A>;
|
|
4
4
|
export declare class NativeUnavailable extends NativeUnavailable_base<{
|