@shelby-protocol/sdk 0.2.0 → 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.d.ts +1 -1
- package/dist/browser/index.mjs +31 -29
- package/dist/chunk-3NRBHSMQ.mjs +12 -0
- package/dist/{chunk-W37FZSMA.mjs → chunk-57RQAVKL.mjs} +1 -1
- package/dist/{chunk-4ZOFT75Q.mjs → chunk-7OV5ZYW6.mjs} +2 -2
- package/dist/{chunk-2WEX3K7C.mjs → chunk-BXEVML7N.mjs} +1 -1
- package/dist/{chunk-PJVWGMVI.mjs → chunk-E5PP7BZJ.mjs} +9 -9
- package/dist/{chunk-CGYJLKBU.mjs → chunk-EZPZAUIV.mjs} +1 -1
- package/dist/{chunk-ZEDD2MPU.mjs → chunk-FMPOGFDW.mjs} +1 -1
- package/dist/{chunk-MV6FNYAU.mjs → chunk-H53O23I7.mjs} +99 -20
- package/dist/{chunk-E5QCRTBU.mjs → chunk-H5YZHUSJ.mjs} +87 -75
- package/dist/{chunk-7PN65RDX.mjs → chunk-ONOOCOQ5.mjs} +16 -14
- package/dist/{chunk-SRV4YWFH.mjs → chunk-PESSW3FK.mjs} +52 -17
- package/dist/chunk-TVLV7C74.mjs +207 -0
- package/dist/{chunk-4JZO2D7T.mjs → chunk-UEZNZBJO.mjs} +9 -2
- package/dist/core/blobs.mjs +2 -1
- package/dist/core/clients/ShelbyBlobClient.d.ts +16 -0
- package/dist/core/clients/ShelbyBlobClient.mjs +8 -8
- package/dist/core/clients/ShelbyClient.mjs +13 -13
- package/dist/core/clients/ShelbyMetadataClient.d.ts +56 -5
- package/dist/core/clients/ShelbyMetadataClient.mjs +3 -2
- package/dist/core/clients/ShelbyMicropaymentChannelClient.d.ts +39 -34
- package/dist/core/clients/ShelbyMicropaymentChannelClient.mjs +5 -4
- package/dist/core/clients/ShelbyPlacementGroupClient.mjs +3 -3
- package/dist/core/clients/ShelbyRPCClient.mjs +6 -6
- package/dist/core/clients/index.mjs +17 -17
- package/dist/core/commitments.mjs +2 -2
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/constants.mjs +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +31 -29
- 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 +2 -1
- package/dist/core/types/payments.d.ts +82 -9
- package/dist/core/types/payments.mjs +2 -1
- package/dist/core/types/placement_groups.d.ts +2 -2
- package/dist/core/types/storage_providers.d.ts +2 -2
- package/dist/core/utils.d.ts +3 -2
- package/dist/core/utils.mjs +3 -1
- package/dist/node/clients/ShelbyNodeClient.mjs +14 -14
- package/dist/node/clients/index.mjs +16 -16
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +32 -30
- package/package.json +1 -1
- package/dist/chunk-4MG4XGY4.mjs +0 -91
- package/dist/chunk-OTBLZL2S.mjs +0 -9
package/dist/core/index.mjs
CHANGED
|
@@ -2,49 +2,36 @@ import "../chunk-EM67QTMR.mjs";
|
|
|
2
2
|
import "../chunk-WTICJPDB.mjs";
|
|
3
3
|
import {
|
|
4
4
|
ShelbyClient
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ONOOCOQ5.mjs";
|
|
6
6
|
import {
|
|
7
7
|
MissingTransactionSubmitterError,
|
|
8
8
|
ShelbyBlobClient
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-XNEIWM4O.mjs";
|
|
11
|
-
import {
|
|
12
|
-
createDefaultErasureCodingProvider,
|
|
13
|
-
defaultErasureCodingConfig,
|
|
14
|
-
erasureCodingConfig16Total10Data13Helper,
|
|
15
|
-
erasureCodingConfig4Total2Data3Helper
|
|
16
|
-
} from "../chunk-HPPMI7DC.mjs";
|
|
17
|
-
import {
|
|
18
|
-
ClayErasureCodingProvider
|
|
19
|
-
} from "../chunk-OGKZ575S.mjs";
|
|
20
|
-
import {
|
|
21
|
-
ReedSolomonErasureCodingProvider
|
|
22
|
-
} from "../chunk-NHWWORCH.mjs";
|
|
9
|
+
} from "../chunk-PESSW3FK.mjs";
|
|
23
10
|
import "../chunk-Z7RFCADT.mjs";
|
|
24
11
|
import {
|
|
25
12
|
ShelbyMetadataClient
|
|
26
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-H53O23I7.mjs";
|
|
27
14
|
import {
|
|
28
15
|
ShelbyMicropaymentChannelClient
|
|
29
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-H5YZHUSJ.mjs";
|
|
30
17
|
import "../chunk-QQ57OGQ2.mjs";
|
|
31
18
|
import "../chunk-ZHXCVRZX.mjs";
|
|
32
19
|
import "../chunk-AD2G3QYD.mjs";
|
|
33
20
|
import "../chunk-MQUVYMNQ.mjs";
|
|
34
21
|
import {
|
|
35
22
|
ShelbyPlacementGroupClient
|
|
36
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-57RQAVKL.mjs";
|
|
37
24
|
import {
|
|
38
25
|
ShelbyRPCClient
|
|
39
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-E5PP7BZJ.mjs";
|
|
40
27
|
import {
|
|
41
28
|
SenderBuiltMicropayment,
|
|
42
29
|
StaleChannelStateError
|
|
43
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-TVLV7C74.mjs";
|
|
44
31
|
import {
|
|
45
32
|
createShelbyIndexerClient,
|
|
46
33
|
getShelbyIndexerClient
|
|
47
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-EZPZAUIV.mjs";
|
|
48
35
|
import {
|
|
49
36
|
Blob_Activities_Select_Column,
|
|
50
37
|
Blobs_Select_Column,
|
|
@@ -62,6 +49,23 @@ import {
|
|
|
62
49
|
getSdk
|
|
63
50
|
} from "../chunk-KJ24NKPH.mjs";
|
|
64
51
|
import "../chunk-AABBONAF.mjs";
|
|
52
|
+
import "../chunk-XNEIWM4O.mjs";
|
|
53
|
+
import {
|
|
54
|
+
createDefaultErasureCodingProvider,
|
|
55
|
+
defaultErasureCodingConfig,
|
|
56
|
+
erasureCodingConfig16Total10Data13Helper,
|
|
57
|
+
erasureCodingConfig4Total2Data3Helper
|
|
58
|
+
} from "../chunk-HPPMI7DC.mjs";
|
|
59
|
+
import {
|
|
60
|
+
ClayErasureCodingProvider
|
|
61
|
+
} from "../chunk-OGKZ575S.mjs";
|
|
62
|
+
import {
|
|
63
|
+
ReedSolomonErasureCodingProvider
|
|
64
|
+
} from "../chunk-NHWWORCH.mjs";
|
|
65
|
+
import {
|
|
66
|
+
BlobNameSchema,
|
|
67
|
+
ChunkKey
|
|
68
|
+
} from "../chunk-Z4FZ7W6L.mjs";
|
|
65
69
|
import {
|
|
66
70
|
isShelbyNetwork,
|
|
67
71
|
shelbyNetworks
|
|
@@ -85,7 +89,7 @@ import {
|
|
|
85
89
|
} from "../chunk-C6RQ3AEU.mjs";
|
|
86
90
|
import {
|
|
87
91
|
createBlobKey
|
|
88
|
-
} from "../chunk-
|
|
92
|
+
} from "../chunk-3NRBHSMQ.mjs";
|
|
89
93
|
import {
|
|
90
94
|
BlobCommitmentsSchema,
|
|
91
95
|
COMMITMENT_SCHEMA_VERSION,
|
|
@@ -93,14 +97,15 @@ import {
|
|
|
93
97
|
expectedTotalChunksets,
|
|
94
98
|
generateCommitments,
|
|
95
99
|
generateMerkleRoot
|
|
96
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-BXEVML7N.mjs";
|
|
97
101
|
import {
|
|
98
102
|
buildRequestUrl,
|
|
99
103
|
concatHashes,
|
|
100
104
|
getBlobNameSuffix,
|
|
105
|
+
normalizeAddress,
|
|
101
106
|
readInChunks,
|
|
102
107
|
zeroPadBytes
|
|
103
|
-
} from "../chunk-
|
|
108
|
+
} from "../chunk-UEZNZBJO.mjs";
|
|
104
109
|
import {
|
|
105
110
|
CHUNK_SIZE_PARAMS,
|
|
106
111
|
ChunkSizeScheme,
|
|
@@ -131,7 +136,7 @@ import {
|
|
|
131
136
|
SHELBY_DEPLOYER,
|
|
132
137
|
TOKEN_DEPLOYER,
|
|
133
138
|
TOKEN_OBJECT_ADDRESS
|
|
134
|
-
} from "../chunk-
|
|
139
|
+
} from "../chunk-7OV5ZYW6.mjs";
|
|
135
140
|
import {
|
|
136
141
|
ShelbyErrorCodes,
|
|
137
142
|
isAccessDeniedError,
|
|
@@ -139,10 +144,6 @@ import {
|
|
|
139
144
|
isBlobExpiredError,
|
|
140
145
|
isBlobNotFoundError
|
|
141
146
|
} from "../chunk-CQ6QPIZK.mjs";
|
|
142
|
-
import {
|
|
143
|
-
BlobNameSchema,
|
|
144
|
-
ChunkKey
|
|
145
|
-
} from "../chunk-Z4FZ7W6L.mjs";
|
|
146
147
|
import "../chunk-7P6ASYW6.mjs";
|
|
147
148
|
export {
|
|
148
149
|
BlobCommitmentsSchema,
|
|
@@ -229,6 +230,7 @@ export {
|
|
|
229
230
|
isBlobExpiredError,
|
|
230
231
|
isBlobNotFoundError,
|
|
231
232
|
isShelbyNetwork,
|
|
233
|
+
normalizeAddress,
|
|
232
234
|
readInChunks,
|
|
233
235
|
shelbyNetworks,
|
|
234
236
|
zeroPadBytes
|