@lucid-evolution/provider 0.1.87 → 0.1.89
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/LICENSE +21 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Anastasia Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
CHANGED
|
@@ -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.89",
|
|
56
56
|
description: "",
|
|
57
57
|
main: "./dist/index.js",
|
|
58
58
|
types: "./dist/index.d.ts",
|
|
@@ -313,7 +313,7 @@ var Blockfrost = class {
|
|
|
313
313
|
awaitTx(txHash, checkInterval = 3e3) {
|
|
314
314
|
return new Promise((res) => {
|
|
315
315
|
const confirmation = setInterval(async () => {
|
|
316
|
-
const isConfirmed = await fetch(`${this.url}/txs/${txHash}`, {
|
|
316
|
+
const isConfirmed = await fetch(`${this.url}/txs/${txHash}/cbor`, {
|
|
317
317
|
headers: { project_id: this.projectId, lucid }
|
|
318
318
|
}).then((res2) => res2.json());
|
|
319
319
|
if (isConfirmed && !isConfirmed.error) {
|
|
@@ -894,7 +894,7 @@ var Kupmios = class {
|
|
|
894
894
|
return result.datum;
|
|
895
895
|
}
|
|
896
896
|
async awaitTx(txHash, checkInterval = 2e4) {
|
|
897
|
-
const pattern = `${this.kupoUrl}/matches/*@${txHash}`;
|
|
897
|
+
const pattern = `${this.kupoUrl}/matches/*@${txHash}?unspent`;
|
|
898
898
|
const schema = import_effect5.Schema.Array(UTxOSchema).annotations({
|
|
899
899
|
identifier: "Array<KupmiosSchema.KupoUTxO>"
|
|
900
900
|
});
|
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.89",
|
|
15
15
|
description: "",
|
|
16
16
|
main: "./dist/index.js",
|
|
17
17
|
types: "./dist/index.d.ts",
|
|
@@ -272,7 +272,7 @@ var Blockfrost = class {
|
|
|
272
272
|
awaitTx(txHash, checkInterval = 3e3) {
|
|
273
273
|
return new Promise((res) => {
|
|
274
274
|
const confirmation = setInterval(async () => {
|
|
275
|
-
const isConfirmed = await fetch(`${this.url}/txs/${txHash}`, {
|
|
275
|
+
const isConfirmed = await fetch(`${this.url}/txs/${txHash}/cbor`, {
|
|
276
276
|
headers: { project_id: this.projectId, lucid }
|
|
277
277
|
}).then((res2) => res2.json());
|
|
278
278
|
if (isConfirmed && !isConfirmed.error) {
|
|
@@ -858,7 +858,7 @@ var Kupmios = class {
|
|
|
858
858
|
return result.datum;
|
|
859
859
|
}
|
|
860
860
|
async awaitTx(txHash, checkInterval = 2e4) {
|
|
861
|
-
const pattern = `${this.kupoUrl}/matches/*@${txHash}`;
|
|
861
|
+
const pattern = `${this.kupoUrl}/matches/*@${txHash}?unspent`;
|
|
862
862
|
const schema = S3.Array(UTxOSchema).annotations({
|
|
863
863
|
identifier: "Array<KupmiosSchema.KupoUTxO>"
|
|
864
864
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.89",
|
|
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.22",
|
|
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.65",
|
|
36
|
+
"@lucid-evolution/wallet": "0.1.71"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^20.12.8",
|