@lucid-evolution/provider 0.1.83 → 0.1.84
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/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -38,7 +38,7 @@ __export(src_exports, {
|
|
|
38
38
|
KupmiosError: () => KupmiosError,
|
|
39
39
|
Maestro: () => Maestro,
|
|
40
40
|
generateEmulatorAccount: () => generateEmulatorAccount,
|
|
41
|
-
|
|
41
|
+
generateEmulatorAccountFromPrivateKey: () => generateEmulatorAccountFromPrivateKey
|
|
42
42
|
});
|
|
43
43
|
module.exports = __toCommonJS(src_exports);
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ var import_utils2 = require("@lucid-evolution/utils");
|
|
|
52
52
|
// package.json
|
|
53
53
|
var package_default = {
|
|
54
54
|
name: "@lucid-evolution/provider",
|
|
55
|
-
version: "0.1.
|
|
55
|
+
version: "0.1.84",
|
|
56
56
|
description: "",
|
|
57
57
|
main: "./dist/index.js",
|
|
58
58
|
types: "./dist/index.d.ts",
|
|
@@ -1110,7 +1110,7 @@ var import_utils5 = require("@lucid-evolution/utils");
|
|
|
1110
1110
|
var import_utils6 = require("@lucid-evolution/utils");
|
|
1111
1111
|
var import_core_utils2 = require("@lucid-evolution/core-utils");
|
|
1112
1112
|
var import_wallet = require("@lucid-evolution/wallet");
|
|
1113
|
-
async function
|
|
1113
|
+
async function generateEmulatorAccountFromPrivateKey(assets) {
|
|
1114
1114
|
const privateKey = CML.PrivateKey.generate_ed25519().to_bech32();
|
|
1115
1115
|
const priv = CML.PrivateKey.from_bech32(privateKey);
|
|
1116
1116
|
const pubKeyHash = priv.to_public().hash();
|
|
@@ -2770,5 +2770,5 @@ var Koios = class {
|
|
|
2770
2770
|
KupmiosError,
|
|
2771
2771
|
Maestro,
|
|
2772
2772
|
generateEmulatorAccount,
|
|
2773
|
-
|
|
2773
|
+
generateEmulatorAccountFromPrivateKey
|
|
2774
2774
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -86,7 +86,7 @@ type EmulatorAccount = {
|
|
|
86
86
|
outputData?: OutputData;
|
|
87
87
|
privateKey: string;
|
|
88
88
|
};
|
|
89
|
-
declare function
|
|
89
|
+
declare function generateEmulatorAccountFromPrivateKey(assets: Assets): Promise<EmulatorAccount>;
|
|
90
90
|
declare function generateEmulatorAccount(assets: Assets): EmulatorAccount;
|
|
91
91
|
declare class Emulator implements Provider {
|
|
92
92
|
ledger: Record<FlatOutRef, {
|
|
@@ -212,4 +212,4 @@ declare class Koios implements Provider {
|
|
|
212
212
|
evaluateTx(tx: Transaction, additionalUTxOs?: UTxO[]): Promise<EvalRedeemer[]>;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
export { Blockfrost, Emulator, type EmulatorAccount, Koios, KoiosError, Kupmios, KupmiosError, Maestro, type MaestroConfig, type MaestroSupportedNetworks, generateEmulatorAccount,
|
|
215
|
+
export { Blockfrost, Emulator, type EmulatorAccount, Koios, KoiosError, Kupmios, KupmiosError, Maestro, type MaestroConfig, type MaestroSupportedNetworks, generateEmulatorAccount, generateEmulatorAccountFromPrivateKey };
|
package/dist/index.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ type EmulatorAccount = {
|
|
|
86
86
|
outputData?: OutputData;
|
|
87
87
|
privateKey: string;
|
|
88
88
|
};
|
|
89
|
-
declare function
|
|
89
|
+
declare function generateEmulatorAccountFromPrivateKey(assets: Assets): Promise<EmulatorAccount>;
|
|
90
90
|
declare function generateEmulatorAccount(assets: Assets): EmulatorAccount;
|
|
91
91
|
declare class Emulator implements Provider {
|
|
92
92
|
ledger: Record<FlatOutRef, {
|
|
@@ -212,4 +212,4 @@ declare class Koios implements Provider {
|
|
|
212
212
|
evaluateTx(tx: Transaction, additionalUTxOs?: UTxO[]): Promise<EvalRedeemer[]>;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
export { Blockfrost, Emulator, type EmulatorAccount, Koios, KoiosError, Kupmios, KupmiosError, Maestro, type MaestroConfig, type MaestroSupportedNetworks, generateEmulatorAccount,
|
|
215
|
+
export { Blockfrost, Emulator, type EmulatorAccount, Koios, KoiosError, Kupmios, KupmiosError, Maestro, type MaestroConfig, type MaestroSupportedNetworks, generateEmulatorAccount, generateEmulatorAccountFromPrivateKey };
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@lucid-evolution/provider",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.84",
|
|
15
15
|
description: "",
|
|
16
16
|
main: "./dist/index.js",
|
|
17
17
|
types: "./dist/index.d.ts",
|
|
@@ -1078,7 +1078,7 @@ import {
|
|
|
1078
1078
|
import { coreToUtxo, getAddressDetails } from "@lucid-evolution/utils";
|
|
1079
1079
|
import { fromHex as fromHex2 } from "@lucid-evolution/core-utils";
|
|
1080
1080
|
import { walletFromSeed } from "@lucid-evolution/wallet";
|
|
1081
|
-
async function
|
|
1081
|
+
async function generateEmulatorAccountFromPrivateKey(assets) {
|
|
1082
1082
|
const privateKey = CML.PrivateKey.generate_ed25519().to_bech32();
|
|
1083
1083
|
const priv = CML.PrivateKey.from_bech32(privateKey);
|
|
1084
1084
|
const pubKeyHash = priv.to_public().hash();
|
|
@@ -2741,5 +2741,5 @@ export {
|
|
|
2741
2741
|
KupmiosError,
|
|
2742
2742
|
Maestro,
|
|
2743
2743
|
generateEmulatorAccount,
|
|
2744
|
-
|
|
2744
|
+
generateEmulatorAccountFromPrivateKey
|
|
2745
2745
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.84",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"effect": "^3.11.7",
|
|
33
33
|
"@lucid-evolution/core-types": "0.1.21",
|
|
34
34
|
"@lucid-evolution/core-utils": "0.1.16",
|
|
35
|
-
"@lucid-evolution/utils": "0.1.
|
|
36
|
-
"@lucid-evolution/wallet": "0.1.
|
|
35
|
+
"@lucid-evolution/utils": "0.1.62",
|
|
36
|
+
"@lucid-evolution/wallet": "0.1.68"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^20.12.8",
|