@shelby-protocol/sdk 0.2.1 → 0.2.2
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/browser/index.mjs +33 -33
- package/dist/{chunk-W37FZSMA.mjs → chunk-57RQAVKL.mjs} +1 -1
- package/dist/{chunk-4ZOFT75Q.mjs → chunk-7OV5ZYW6.mjs} +2 -2
- package/dist/{chunk-EFR6H3RT.mjs → chunk-E5PP7BZJ.mjs} +3 -3
- package/dist/{chunk-CGYJLKBU.mjs → chunk-EZPZAUIV.mjs} +1 -1
- package/dist/{chunk-33BZ7KYA.mjs → chunk-FMPOGFDW.mjs} +1 -1
- package/dist/{chunk-7O77OM4T.mjs → chunk-H53O23I7.mjs} +1 -1
- package/dist/{chunk-OQNP5QXH.mjs → chunk-H5YZHUSJ.mjs} +3 -3
- package/dist/{chunk-5CES6RPZ.mjs → chunk-ONOOCOQ5.mjs} +10 -10
- package/dist/{chunk-IBAUPQOF.mjs → chunk-PESSW3FK.mjs} +41 -5
- package/dist/{chunk-KTVNKLBT.mjs → chunk-TVLV7C74.mjs} +1 -1
- package/dist/core/clients/ShelbyBlobClient.d.ts +16 -0
- package/dist/core/clients/ShelbyBlobClient.mjs +6 -6
- package/dist/core/clients/ShelbyClient.d.ts +1 -1
- package/dist/core/clients/ShelbyClient.mjs +10 -10
- package/dist/core/clients/ShelbyMetadataClient.mjs +2 -2
- package/dist/core/clients/ShelbyMicropaymentChannelClient.mjs +5 -5
- package/dist/core/clients/ShelbyPlacementGroupClient.mjs +3 -3
- package/dist/core/clients/ShelbyRPCClient.mjs +4 -4
- package/dist/core/clients/index.mjs +18 -18
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/constants.mjs +1 -1
- package/dist/core/erasure/index.mjs +3 -3
- package/dist/core/index.mjs +33 -33
- package/dist/core/operations/generated/types.d.ts +908 -0
- package/dist/core/operations/generated/types.mjs +63 -0
- package/dist/core/operations/index.mjs +2 -2
- package/dist/core/types/index.mjs +3 -3
- package/dist/core/types/payments.mjs +2 -2
- package/dist/node/clients/ShelbyNodeClient.mjs +11 -11
- package/dist/node/clients/index.mjs +12 -12
- package/dist/node/index.mjs +37 -37
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import "../../../chunk-7P6ASYW6.mjs";
|
|
2
|
+
|
|
3
|
+
// src/core/operations/generated/types.ts
|
|
4
|
+
var Blob_Activities_Select_Column = /* @__PURE__ */ ((Blob_Activities_Select_Column2) => {
|
|
5
|
+
Blob_Activities_Select_Column2["BlobName"] = "blob_name";
|
|
6
|
+
Blob_Activities_Select_Column2["EventIndex"] = "event_index";
|
|
7
|
+
Blob_Activities_Select_Column2["EventType"] = "event_type";
|
|
8
|
+
Blob_Activities_Select_Column2["Timestamp"] = "timestamp";
|
|
9
|
+
Blob_Activities_Select_Column2["TransactionHash"] = "transaction_hash";
|
|
10
|
+
Blob_Activities_Select_Column2["TransactionVersion"] = "transaction_version";
|
|
11
|
+
return Blob_Activities_Select_Column2;
|
|
12
|
+
})(Blob_Activities_Select_Column || {});
|
|
13
|
+
var Blobs_Select_Column = /* @__PURE__ */ ((Blobs_Select_Column2) => {
|
|
14
|
+
Blobs_Select_Column2["BlobCommitment"] = "blob_commitment";
|
|
15
|
+
Blobs_Select_Column2["BlobName"] = "blob_name";
|
|
16
|
+
Blobs_Select_Column2["CreatedAt"] = "created_at";
|
|
17
|
+
Blobs_Select_Column2["ExpiresAt"] = "expires_at";
|
|
18
|
+
Blobs_Select_Column2["IsDeleted"] = "is_deleted";
|
|
19
|
+
Blobs_Select_Column2["IsWritten"] = "is_written";
|
|
20
|
+
Blobs_Select_Column2["NumChunksets"] = "num_chunksets";
|
|
21
|
+
Blobs_Select_Column2["Owner"] = "owner";
|
|
22
|
+
Blobs_Select_Column2["PlacementGroup"] = "placement_group";
|
|
23
|
+
Blobs_Select_Column2["Size"] = "size";
|
|
24
|
+
Blobs_Select_Column2["SliceAddress"] = "slice_address";
|
|
25
|
+
Blobs_Select_Column2["UpdatedAt"] = "updated_at";
|
|
26
|
+
return Blobs_Select_Column2;
|
|
27
|
+
})(Blobs_Select_Column || {});
|
|
28
|
+
var Cursor_Ordering = /* @__PURE__ */ ((Cursor_Ordering2) => {
|
|
29
|
+
Cursor_Ordering2["Asc"] = "ASC";
|
|
30
|
+
Cursor_Ordering2["Desc"] = "DESC";
|
|
31
|
+
return Cursor_Ordering2;
|
|
32
|
+
})(Cursor_Ordering || {});
|
|
33
|
+
var Order_By = /* @__PURE__ */ ((Order_By2) => {
|
|
34
|
+
Order_By2["Asc"] = "asc";
|
|
35
|
+
Order_By2["AscNullsFirst"] = "asc_nulls_first";
|
|
36
|
+
Order_By2["AscNullsLast"] = "asc_nulls_last";
|
|
37
|
+
Order_By2["Desc"] = "desc";
|
|
38
|
+
Order_By2["DescNullsFirst"] = "desc_nulls_first";
|
|
39
|
+
Order_By2["DescNullsLast"] = "desc_nulls_last";
|
|
40
|
+
return Order_By2;
|
|
41
|
+
})(Order_By || {});
|
|
42
|
+
var Placement_Group_Slots_Select_Column = /* @__PURE__ */ ((Placement_Group_Slots_Select_Column2) => {
|
|
43
|
+
Placement_Group_Slots_Select_Column2["PlacementGroup"] = "placement_group";
|
|
44
|
+
Placement_Group_Slots_Select_Column2["SlotIndex"] = "slot_index";
|
|
45
|
+
Placement_Group_Slots_Select_Column2["Status"] = "status";
|
|
46
|
+
Placement_Group_Slots_Select_Column2["StorageProvider"] = "storage_provider";
|
|
47
|
+
Placement_Group_Slots_Select_Column2["UpdatedAt"] = "updated_at";
|
|
48
|
+
return Placement_Group_Slots_Select_Column2;
|
|
49
|
+
})(Placement_Group_Slots_Select_Column || {});
|
|
50
|
+
var Processor_Status_Select_Column = /* @__PURE__ */ ((Processor_Status_Select_Column2) => {
|
|
51
|
+
Processor_Status_Select_Column2["LastSuccessVersion"] = "last_success_version";
|
|
52
|
+
Processor_Status_Select_Column2["LastTransactionTimestamp"] = "last_transaction_timestamp";
|
|
53
|
+
Processor_Status_Select_Column2["LastUpdated"] = "last_updated";
|
|
54
|
+
return Processor_Status_Select_Column2;
|
|
55
|
+
})(Processor_Status_Select_Column || {});
|
|
56
|
+
export {
|
|
57
|
+
Blob_Activities_Select_Column,
|
|
58
|
+
Blobs_Select_Column,
|
|
59
|
+
Cursor_Ordering,
|
|
60
|
+
Order_By,
|
|
61
|
+
Placement_Group_Slots_Select_Column,
|
|
62
|
+
Processor_Status_Select_Column
|
|
63
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createShelbyIndexerClient,
|
|
3
3
|
getShelbyIndexerClient
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-EZPZAUIV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Blob_Activities_Select_Column,
|
|
7
7
|
Blobs_Select_Column,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getSdk
|
|
20
20
|
} from "../../chunk-KJ24NKPH.mjs";
|
|
21
21
|
import "../../chunk-AABBONAF.mjs";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
23
23
|
import "../../chunk-7P6ASYW6.mjs";
|
|
24
24
|
export {
|
|
25
25
|
Blob_Activities_Select_Column,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../chunk-QQ57OGQ2.mjs";
|
|
2
|
-
import "../../chunk-MQUVYMNQ.mjs";
|
|
3
2
|
import "../../chunk-ZHXCVRZX.mjs";
|
|
4
3
|
import "../../chunk-AD2G3QYD.mjs";
|
|
4
|
+
import "../../chunk-MQUVYMNQ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SenderBuiltMicropayment,
|
|
7
7
|
StaleChannelStateError
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-TVLV7C74.mjs";
|
|
9
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
10
10
|
import "../../chunk-7P6ASYW6.mjs";
|
|
11
11
|
export {
|
|
12
12
|
SenderBuiltMicropayment,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SenderBuiltMicropayment,
|
|
3
3
|
StaleChannelStateError
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-TVLV7C74.mjs";
|
|
5
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
6
6
|
import "../../chunk-7P6ASYW6.mjs";
|
|
7
7
|
export {
|
|
8
8
|
SenderBuiltMicropayment,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyNodeClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-FMPOGFDW.mjs";
|
|
4
|
+
import "../../chunk-ONOOCOQ5.mjs";
|
|
5
|
+
import "../../chunk-PESSW3FK.mjs";
|
|
6
|
+
import "../../chunk-H53O23I7.mjs";
|
|
7
|
+
import "../../chunk-E5PP7BZJ.mjs";
|
|
8
|
+
import "../../chunk-TVLV7C74.mjs";
|
|
9
|
+
import "../../chunk-EZPZAUIV.mjs";
|
|
10
|
+
import "../../chunk-KJ24NKPH.mjs";
|
|
11
|
+
import "../../chunk-AABBONAF.mjs";
|
|
7
12
|
import "../../chunk-XNEIWM4O.mjs";
|
|
8
|
-
import "../../chunk-NHWWORCH.mjs";
|
|
9
13
|
import "../../chunk-HPPMI7DC.mjs";
|
|
10
14
|
import "../../chunk-OGKZ575S.mjs";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-KTVNKLBT.mjs";
|
|
13
|
-
import "../../chunk-CGYJLKBU.mjs";
|
|
14
|
-
import "../../chunk-KJ24NKPH.mjs";
|
|
15
|
-
import "../../chunk-AABBONAF.mjs";
|
|
15
|
+
import "../../chunk-NHWWORCH.mjs";
|
|
16
16
|
import "../../chunk-Z4FZ7W6L.mjs";
|
|
17
17
|
import "../../chunk-I6NG5GNL.mjs";
|
|
18
18
|
import "../../chunk-IE6LYVIA.mjs";
|
|
@@ -21,7 +21,7 @@ import "../../chunk-BXEVML7N.mjs";
|
|
|
21
21
|
import "../../chunk-UEZNZBJO.mjs";
|
|
22
22
|
import "../../chunk-JTXYKO3U.mjs";
|
|
23
23
|
import "../../chunk-AUQDI5BS.mjs";
|
|
24
|
-
import "../../chunk-
|
|
24
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
25
25
|
import "../../chunk-7P6ASYW6.mjs";
|
|
26
26
|
export {
|
|
27
27
|
ShelbyNodeClient
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import "../../chunk-MB7C7VQF.mjs";
|
|
2
2
|
import {
|
|
3
3
|
ShelbyNodeClient
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-IBAUPQOF.mjs";
|
|
8
|
-
import "../../chunk-XNEIWM4O.mjs";
|
|
9
|
-
import "../../chunk-NHWWORCH.mjs";
|
|
10
|
-
import "../../chunk-HPPMI7DC.mjs";
|
|
11
|
-
import "../../chunk-OGKZ575S.mjs";
|
|
4
|
+
} from "../../chunk-FMPOGFDW.mjs";
|
|
5
|
+
import "../../chunk-ONOOCOQ5.mjs";
|
|
6
|
+
import "../../chunk-PESSW3FK.mjs";
|
|
12
7
|
import {
|
|
13
8
|
ShelbyMetadataClient
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-H53O23I7.mjs";
|
|
10
|
+
import "../../chunk-E5PP7BZJ.mjs";
|
|
11
|
+
import "../../chunk-TVLV7C74.mjs";
|
|
12
|
+
import "../../chunk-EZPZAUIV.mjs";
|
|
17
13
|
import "../../chunk-KJ24NKPH.mjs";
|
|
18
14
|
import "../../chunk-AABBONAF.mjs";
|
|
15
|
+
import "../../chunk-XNEIWM4O.mjs";
|
|
16
|
+
import "../../chunk-HPPMI7DC.mjs";
|
|
17
|
+
import "../../chunk-OGKZ575S.mjs";
|
|
18
|
+
import "../../chunk-NHWWORCH.mjs";
|
|
19
19
|
import "../../chunk-Z4FZ7W6L.mjs";
|
|
20
20
|
import "../../chunk-I6NG5GNL.mjs";
|
|
21
21
|
import "../../chunk-IE6LYVIA.mjs";
|
|
@@ -24,7 +24,7 @@ import "../../chunk-BXEVML7N.mjs";
|
|
|
24
24
|
import "../../chunk-UEZNZBJO.mjs";
|
|
25
25
|
import "../../chunk-JTXYKO3U.mjs";
|
|
26
26
|
import "../../chunk-AUQDI5BS.mjs";
|
|
27
|
-
import "../../chunk-
|
|
27
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
28
28
|
import "../../chunk-7P6ASYW6.mjs";
|
|
29
29
|
export {
|
|
30
30
|
ShelbyMetadataClient,
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,54 +1,44 @@
|
|
|
1
1
|
import "../chunk-MB7C7VQF.mjs";
|
|
2
2
|
import {
|
|
3
3
|
ShelbyNodeClient
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-FMPOGFDW.mjs";
|
|
5
|
+
import {
|
|
6
|
+
testUtil_exports
|
|
7
|
+
} from "../chunk-A4IG6GSE.mjs";
|
|
5
8
|
import "../chunk-EM67QTMR.mjs";
|
|
6
9
|
import "../chunk-WTICJPDB.mjs";
|
|
7
|
-
import {
|
|
8
|
-
ShelbyPlacementGroupClient
|
|
9
|
-
} from "../chunk-W37FZSMA.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ShelbyClient
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import {
|
|
14
|
-
ShelbyRPCClient
|
|
15
|
-
} from "../chunk-EFR6H3RT.mjs";
|
|
12
|
+
} from "../chunk-ONOOCOQ5.mjs";
|
|
16
13
|
import {
|
|
17
14
|
MissingTransactionSubmitterError,
|
|
18
15
|
ShelbyBlobClient
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-XNEIWM4O.mjs";
|
|
21
|
-
import {
|
|
22
|
-
ReedSolomonErasureCodingProvider
|
|
23
|
-
} from "../chunk-NHWWORCH.mjs";
|
|
24
|
-
import {
|
|
25
|
-
createDefaultErasureCodingProvider,
|
|
26
|
-
defaultErasureCodingConfig,
|
|
27
|
-
erasureCodingConfig16Total10Data13Helper,
|
|
28
|
-
erasureCodingConfig4Total2Data3Helper
|
|
29
|
-
} from "../chunk-HPPMI7DC.mjs";
|
|
30
|
-
import {
|
|
31
|
-
ClayErasureCodingProvider
|
|
32
|
-
} from "../chunk-OGKZ575S.mjs";
|
|
16
|
+
} from "../chunk-PESSW3FK.mjs";
|
|
33
17
|
import "../chunk-Z7RFCADT.mjs";
|
|
34
18
|
import {
|
|
35
19
|
ShelbyMetadataClient
|
|
36
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-H53O23I7.mjs";
|
|
37
21
|
import {
|
|
38
22
|
ShelbyMicropaymentChannelClient
|
|
39
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-H5YZHUSJ.mjs";
|
|
40
24
|
import "../chunk-QQ57OGQ2.mjs";
|
|
41
|
-
import "../chunk-MQUVYMNQ.mjs";
|
|
42
25
|
import "../chunk-ZHXCVRZX.mjs";
|
|
43
26
|
import "../chunk-AD2G3QYD.mjs";
|
|
27
|
+
import "../chunk-MQUVYMNQ.mjs";
|
|
28
|
+
import {
|
|
29
|
+
ShelbyPlacementGroupClient
|
|
30
|
+
} from "../chunk-57RQAVKL.mjs";
|
|
31
|
+
import {
|
|
32
|
+
ShelbyRPCClient
|
|
33
|
+
} from "../chunk-E5PP7BZJ.mjs";
|
|
44
34
|
import {
|
|
45
35
|
SenderBuiltMicropayment,
|
|
46
36
|
StaleChannelStateError
|
|
47
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-TVLV7C74.mjs";
|
|
48
38
|
import {
|
|
49
39
|
createShelbyIndexerClient,
|
|
50
40
|
getShelbyIndexerClient
|
|
51
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-EZPZAUIV.mjs";
|
|
52
42
|
import {
|
|
53
43
|
Blob_Activities_Select_Column,
|
|
54
44
|
Blobs_Select_Column,
|
|
@@ -66,13 +56,19 @@ import {
|
|
|
66
56
|
getSdk
|
|
67
57
|
} from "../chunk-KJ24NKPH.mjs";
|
|
68
58
|
import "../chunk-AABBONAF.mjs";
|
|
59
|
+
import "../chunk-XNEIWM4O.mjs";
|
|
69
60
|
import {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
61
|
+
createDefaultErasureCodingProvider,
|
|
62
|
+
defaultErasureCodingConfig,
|
|
63
|
+
erasureCodingConfig16Total10Data13Helper,
|
|
64
|
+
erasureCodingConfig4Total2Data3Helper
|
|
65
|
+
} from "../chunk-HPPMI7DC.mjs";
|
|
66
|
+
import {
|
|
67
|
+
ClayErasureCodingProvider
|
|
68
|
+
} from "../chunk-OGKZ575S.mjs";
|
|
69
|
+
import {
|
|
70
|
+
ReedSolomonErasureCodingProvider
|
|
71
|
+
} from "../chunk-NHWWORCH.mjs";
|
|
76
72
|
import {
|
|
77
73
|
BlobNameSchema,
|
|
78
74
|
ChunkKey
|
|
@@ -94,9 +90,6 @@ import {
|
|
|
94
90
|
getShelbyAccountExplorerUrl,
|
|
95
91
|
getShelbyBlobExplorerUrl
|
|
96
92
|
} from "../chunk-BDSW5PHM.mjs";
|
|
97
|
-
import {
|
|
98
|
-
testUtil_exports
|
|
99
|
-
} from "../chunk-A4IG6GSE.mjs";
|
|
100
93
|
import {
|
|
101
94
|
getAptosAccountExplorerUrl,
|
|
102
95
|
getAptosTransactionExplorerUrl
|
|
@@ -150,7 +143,14 @@ import {
|
|
|
150
143
|
SHELBY_DEPLOYER,
|
|
151
144
|
TOKEN_DEPLOYER,
|
|
152
145
|
TOKEN_OBJECT_ADDRESS
|
|
153
|
-
} from "../chunk-
|
|
146
|
+
} from "../chunk-7OV5ZYW6.mjs";
|
|
147
|
+
import {
|
|
148
|
+
ShelbyErrorCodes,
|
|
149
|
+
isAccessDeniedError,
|
|
150
|
+
isBlobAlreadyExistsError,
|
|
151
|
+
isBlobExpiredError,
|
|
152
|
+
isBlobNotFoundError
|
|
153
|
+
} from "../chunk-CQ6QPIZK.mjs";
|
|
154
154
|
import "../chunk-7P6ASYW6.mjs";
|
|
155
155
|
export {
|
|
156
156
|
BlobCommitmentsSchema,
|