@shelby-protocol/sdk 0.0.5 → 0.0.7
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 +26 -6
- package/dist/{chunk-L7H6EKII.mjs → chunk-7P3P3D3X.mjs} +1 -1
- package/dist/{chunk-TPGMXZRD.mjs → chunk-AUGZMI6U.mjs} +124 -2
- package/dist/{chunk-2DD6Q5CK.mjs → chunk-GZJ5IOCG.mjs} +1 -1
- package/dist/{chunk-Y7KTNPPR.mjs → chunk-HDYY6NS4.mjs} +66 -9
- package/dist/core/clients/ShelbyBlobClient.d.ts +45 -0
- package/dist/core/clients/ShelbyBlobClient.mjs +2 -2
- package/dist/core/clients/ShelbyClient.d.ts +57 -1
- package/dist/core/clients/ShelbyClient.mjs +4 -4
- package/dist/core/clients/ShelbyClientConfig.d.ts +2 -0
- package/dist/core/clients/ShelbyRPCClient.d.ts +1 -1
- package/dist/core/clients/ShelbyRPCClient.mjs +2 -2
- package/dist/core/clients/index.d.ts +1 -1
- package/dist/core/clients/index.mjs +4 -4
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +26 -6
- package/dist/core/operations/index.d.ts +4 -4
- package/dist/core/operations/index.mjs +22 -2
- package/dist/node/clients/ShelbyNodeClient.d.ts +2 -2
- package/dist/node/clients/ShelbyNodeClient.mjs +5 -5
- package/dist/node/clients/index.d.ts +1 -1
- package/dist/node/clients/index.mjs +5 -5
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +27 -7
- package/package.json +4 -3
- /package/dist/{chunk-T6TVHFJO.mjs → chunk-HFGEQP5N.mjs} +0 -0
package/dist/browser/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { getShelbyAccountBlobsExplorerUrl, getShelbyAccountExplorerUrl, getShelb
|
|
|
17
17
|
export { BlobActivity, BlobActivityType, BlobEncoding, BlobMetadata, ClayEncoding } from '../core/types/blobs.js';
|
|
18
18
|
export { StorageProviderInfo } from '../core/types/storage_providers.js';
|
|
19
19
|
export { buildRequestUrl, concatHashes, getBlobNameSuffix, readInChunks, zeroPadBytes } from '../core/utils.js';
|
|
20
|
-
export { Order_By } from '../core/operations/generated/sdk.js';
|
|
20
|
+
export { Bigint_Comparison_Exp, Blob_Activities, Blob_Activities_Aggregate, Blob_Activities_Aggregate_Fields, Blob_Activities_Aggregate_FieldsCountArgs, Blob_Activities_Avg_Fields, Blob_Activities_Bool_Exp, Blob_Activities_Max_Fields, Blob_Activities_Min_Fields, Blob_Activities_Order_By, Blob_Activities_Select_Column, Blob_Activities_Stddev_Fields, Blob_Activities_Stddev_Pop_Fields, Blob_Activities_Stddev_Samp_Fields, Blob_Activities_Stream_Cursor_Input, Blob_Activities_Stream_Cursor_Value_Input, Blob_Activities_Sum_Fields, Blob_Activities_Var_Pop_Fields, Blob_Activities_Var_Samp_Fields, Blob_Activities_Variance_Fields, Blobs, BlobsPlacement_Group_SlotsArgs, Blobs_Aggregate, Blobs_Aggregate_Fields, Blobs_Aggregate_FieldsCountArgs, Blobs_Avg_Fields, Blobs_Bool_Exp, Blobs_Max_Fields, Blobs_Min_Fields, Blobs_Order_By, Blobs_Select_Column, Blobs_Stddev_Fields, Blobs_Stddev_Pop_Fields, Blobs_Stddev_Samp_Fields, Blobs_Stream_Cursor_Input, Blobs_Stream_Cursor_Value_Input, Blobs_Sum_Fields, Blobs_Var_Pop_Fields, Blobs_Var_Samp_Fields, Blobs_Variance_Fields, Cursor_Ordering, Exact, GetBlobActivitiesCountDocument, GetBlobActivitiesCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesDocument, GetBlobActivitiesQuery, GetBlobActivitiesQueryVariables, GetBlobsCountDocument, GetBlobsCountQuery, GetBlobsCountQueryVariables, GetBlobsDocument, GetBlobsQuery, GetBlobsQueryVariables, Incremental, InputMaybe, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Numeric_Comparison_Exp, Order_By, Placement_Group_Slots, Placement_Group_Slots_Aggregate_Order_By, Placement_Group_Slots_Avg_Order_By, Placement_Group_Slots_Bool_Exp, Placement_Group_Slots_Max_Order_By, Placement_Group_Slots_Min_Order_By, Placement_Group_Slots_Order_By, Placement_Group_Slots_Select_Column, Placement_Group_Slots_Stddev_Order_By, Placement_Group_Slots_Stddev_Pop_Order_By, Placement_Group_Slots_Stddev_Samp_Order_By, Placement_Group_Slots_Stream_Cursor_Input, Placement_Group_Slots_Stream_Cursor_Value_Input, Placement_Group_Slots_Sum_Order_By, Placement_Group_Slots_Var_Pop_Order_By, Placement_Group_Slots_Var_Samp_Order_By, Placement_Group_Slots_Variance_Order_By, Processor_Status, Processor_Status_Bool_Exp, Processor_Status_Order_By, Processor_Status_Select_Column, Processor_Status_Stream_Cursor_Input, Processor_Status_Stream_Cursor_Value_Input, Query_Root, Query_RootBlob_ActivitiesArgs, Query_RootBlob_Activities_AggregateArgs, Query_RootBlob_Activities_By_PkArgs, Query_RootBlobsArgs, Query_RootBlobs_AggregateArgs, Query_RootBlobs_By_PkArgs, Query_RootPlacement_Group_SlotsArgs, Query_RootPlacement_Group_Slots_By_PkArgs, Query_RootProcessor_StatusArgs, Scalars, Sdk, SdkFunctionWrapper, String_Comparison_Exp, Subscription_Root, Subscription_RootBlob_ActivitiesArgs, Subscription_RootBlob_Activities_AggregateArgs, Subscription_RootBlob_Activities_By_PkArgs, Subscription_RootBlob_Activities_StreamArgs, Subscription_RootBlobsArgs, Subscription_RootBlobs_AggregateArgs, Subscription_RootBlobs_By_PkArgs, Subscription_RootBlobs_StreamArgs, Subscription_RootPlacement_Group_SlotsArgs, Subscription_RootPlacement_Group_Slots_By_PkArgs, Subscription_RootPlacement_Group_Slots_StreamArgs, Subscription_RootProcessor_StatusArgs, Subscription_RootProcessor_Status_StreamArgs, Timestamp_Comparison_Exp, getSdk } from '../core/operations/generated/sdk.js';
|
|
21
21
|
import '@aptos-labs/ts-sdk';
|
|
22
22
|
import 'zod';
|
|
23
23
|
import '@shelby-protocol/clay-codes';
|
package/dist/browser/index.mjs
CHANGED
|
@@ -5,11 +5,11 @@ import "../chunk-ZHXCVRZX.mjs";
|
|
|
5
5
|
import "../chunk-RNXGC54D.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ShelbyClient
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-AUGZMI6U.mjs";
|
|
9
9
|
import "../chunk-Z7RFCADT.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ShelbyRPCClient
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-7P3P3D3X.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isShelbyNetwork,
|
|
15
15
|
shelbyNetworks
|
|
@@ -22,13 +22,23 @@ import {
|
|
|
22
22
|
} from "../chunk-BDSW5PHM.mjs";
|
|
23
23
|
import {
|
|
24
24
|
ShelbyBlobClient
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-HDYY6NS4.mjs";
|
|
26
26
|
import {
|
|
27
27
|
createShelbyIndexerClient,
|
|
28
28
|
getShelbyIndexerClient
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import {
|
|
31
|
-
|
|
29
|
+
} from "../chunk-HFGEQP5N.mjs";
|
|
30
|
+
import {
|
|
31
|
+
Blob_Activities_Select_Column,
|
|
32
|
+
Blobs_Select_Column,
|
|
33
|
+
Cursor_Ordering,
|
|
34
|
+
GetBlobActivitiesCountDocument,
|
|
35
|
+
GetBlobActivitiesDocument,
|
|
36
|
+
GetBlobsCountDocument,
|
|
37
|
+
GetBlobsDocument,
|
|
38
|
+
Order_By,
|
|
39
|
+
Placement_Group_Slots_Select_Column,
|
|
40
|
+
Processor_Status_Select_Column,
|
|
41
|
+
getSdk
|
|
32
42
|
} from "../chunk-WJKSPJSS.mjs";
|
|
33
43
|
import "../chunk-RBFWGDMY.mjs";
|
|
34
44
|
import {
|
|
@@ -94,11 +104,14 @@ import "../chunk-7P6ASYW6.mjs";
|
|
|
94
104
|
export {
|
|
95
105
|
BlobCommitmentsSchema,
|
|
96
106
|
BlobNameSchema,
|
|
107
|
+
Blob_Activities_Select_Column,
|
|
108
|
+
Blobs_Select_Column,
|
|
97
109
|
CHUNK_SIZE_PARAMS,
|
|
98
110
|
ChunkKey,
|
|
99
111
|
ChunkSizeScheme,
|
|
100
112
|
ChunksetCommitmentSchema,
|
|
101
113
|
ClayErasureCodingProvider,
|
|
114
|
+
Cursor_Ordering,
|
|
102
115
|
DEFAULT_CHUNKSET_SIZE_BYTES,
|
|
103
116
|
DEFAULT_CHUNK_SIZE_BYTES,
|
|
104
117
|
DEFAULT_ERASURE_D,
|
|
@@ -110,9 +123,15 @@ export {
|
|
|
110
123
|
ERASURE_CODE_AND_CHUNK_MAPPING,
|
|
111
124
|
ERASURE_CODE_PARAMS,
|
|
112
125
|
ErasureCodingScheme,
|
|
126
|
+
GetBlobActivitiesCountDocument,
|
|
127
|
+
GetBlobActivitiesDocument,
|
|
128
|
+
GetBlobsCountDocument,
|
|
129
|
+
GetBlobsDocument,
|
|
113
130
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
114
131
|
NetworkToShelbyRPCBaseUrl,
|
|
115
132
|
Order_By,
|
|
133
|
+
Placement_Group_Slots_Select_Column,
|
|
134
|
+
Processor_Status_Select_Column,
|
|
116
135
|
ReedSolomonErasureCodingProvider,
|
|
117
136
|
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
118
137
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
@@ -135,6 +154,7 @@ export {
|
|
|
135
154
|
getAptosAccountExplorerUrl,
|
|
136
155
|
getAptosTransactionExplorerUrl,
|
|
137
156
|
getBlobNameSuffix,
|
|
157
|
+
getSdk,
|
|
138
158
|
getShelbyAccountBlobsExplorerUrl,
|
|
139
159
|
getShelbyAccountExplorerUrl,
|
|
140
160
|
getShelbyBlobExplorerUrl,
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyRPCClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7P3P3D3X.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ShelbyBlobClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HDYY6NS4.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getAptosConfig
|
|
9
9
|
} from "./chunk-RBFWGDMY.mjs";
|
|
10
|
+
import {
|
|
11
|
+
createBlobKey
|
|
12
|
+
} from "./chunk-OTBLZL2S.mjs";
|
|
10
13
|
import {
|
|
11
14
|
generateCommitments
|
|
12
15
|
} from "./chunk-PCNLFNAT.mjs";
|
|
@@ -21,6 +24,7 @@ import {
|
|
|
21
24
|
import {
|
|
22
25
|
Aptos
|
|
23
26
|
} from "@aptos-labs/ts-sdk";
|
|
27
|
+
import pLimit from "p-limit";
|
|
24
28
|
var ShelbyClient = class {
|
|
25
29
|
/**
|
|
26
30
|
* The coordination client is used to interact with the Aptos blockchain which handles the commitments
|
|
@@ -150,6 +154,89 @@ var ShelbyClient = class {
|
|
|
150
154
|
blobData: params.blobData
|
|
151
155
|
});
|
|
152
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Uploads a batch of blobs to the Shelby network.
|
|
159
|
+
* This method handles the complete upload flow including commitment generation,
|
|
160
|
+
* blockchain registration, and storage upload.
|
|
161
|
+
*
|
|
162
|
+
* @param params.blobs - The blobs to upload.
|
|
163
|
+
* @param params.blobs.blobData - The raw data to upload as a Uint8Array.
|
|
164
|
+
* @param params.blobs.blobName - The name/path of the blob (e.g. "folder/file.txt").
|
|
165
|
+
* @param params.expirationMicros - The expiration time in microseconds since Unix epoch.
|
|
166
|
+
* @param params.signer - The account that signs and pays for the transaction.
|
|
167
|
+
* @param params.options - Optional upload configuration.
|
|
168
|
+
* @param params.options.chunksetSizeBytes - Custom chunkset size.
|
|
169
|
+
* @param params.options.build - Additional Aptos transaction options.
|
|
170
|
+
*
|
|
171
|
+
* @returns The transaction and generated blob commitments (when implemented).
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* await client.batchUpload({
|
|
176
|
+
* blobs: [
|
|
177
|
+
* { blobData: Buffer.from("Hello, World!"), blobName: "hello.txt" },
|
|
178
|
+
* { blobData: Buffer.from("Hello, World 2!"), blobName: "hello2.txt" },
|
|
179
|
+
* ],
|
|
180
|
+
* expirationMicros: Date.now() * 1000 + 86400_000_000 // 24 hours from now
|
|
181
|
+
* });
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
async batchUpload(params) {
|
|
185
|
+
const existingBlobs = await this.coordination.getBlobs({
|
|
186
|
+
where: {
|
|
187
|
+
blob_name: {
|
|
188
|
+
_in: params.blobs.map(
|
|
189
|
+
(blob) => createBlobKey({
|
|
190
|
+
account: params.signer.accountAddress,
|
|
191
|
+
blobName: blob.blobName
|
|
192
|
+
})
|
|
193
|
+
)
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
const blobsToRegister = params.blobs.filter(
|
|
198
|
+
(blob) => !existingBlobs.some(
|
|
199
|
+
(existingBlob) => existingBlob.name === createBlobKey({
|
|
200
|
+
account: params.signer.accountAddress,
|
|
201
|
+
blobName: blob.blobName
|
|
202
|
+
})
|
|
203
|
+
)
|
|
204
|
+
);
|
|
205
|
+
if (blobsToRegister.length > 0) {
|
|
206
|
+
const provider = await this.getProvider();
|
|
207
|
+
const blobCommitments = await Promise.all(
|
|
208
|
+
blobsToRegister.map(
|
|
209
|
+
async (blob) => generateCommitments(provider, blob.blobData)
|
|
210
|
+
)
|
|
211
|
+
);
|
|
212
|
+
const { transaction: pendingRegisterBlobTransaction } = await this.coordination.batchRegisterBlobs({
|
|
213
|
+
account: params.signer,
|
|
214
|
+
expirationMicros: params.expirationMicros,
|
|
215
|
+
blobs: blobsToRegister.map((blob, index) => ({
|
|
216
|
+
blobName: blob.blobName,
|
|
217
|
+
blobSize: blob.blobData.length,
|
|
218
|
+
blobMerkleRoot: blobCommitments[index].blob_merkle_root
|
|
219
|
+
})),
|
|
220
|
+
options: params.options
|
|
221
|
+
});
|
|
222
|
+
await this.coordination.aptos.waitForTransaction({
|
|
223
|
+
transactionHash: pendingRegisterBlobTransaction.hash,
|
|
224
|
+
options: { waitForIndexer: true }
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
const limit = pLimit(3);
|
|
228
|
+
await Promise.all(
|
|
229
|
+
params.blobs.map(
|
|
230
|
+
(blob) => limit(
|
|
231
|
+
() => this.rpc.putBlob({
|
|
232
|
+
account: params.signer.accountAddress,
|
|
233
|
+
blobName: blob.blobName,
|
|
234
|
+
blobData: blob.blobData
|
|
235
|
+
})
|
|
236
|
+
)
|
|
237
|
+
)
|
|
238
|
+
);
|
|
239
|
+
}
|
|
153
240
|
/**
|
|
154
241
|
* Downloads a blob from the Shelby RPC node.
|
|
155
242
|
*
|
|
@@ -170,6 +257,41 @@ var ShelbyClient = class {
|
|
|
170
257
|
async download(params) {
|
|
171
258
|
return await this.rpc.getBlob(params);
|
|
172
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* Funds an account with ShelbyUSD tokens.
|
|
263
|
+
*
|
|
264
|
+
* @param params.address - The address to fund.
|
|
265
|
+
* @param params.amount - The amount to fund.
|
|
266
|
+
* @returns The transaction hash of the funded account.
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* ```typescript
|
|
270
|
+
* const hash = await client.fundAccount({
|
|
271
|
+
* address: "0x1",
|
|
272
|
+
* amount: 100000000,
|
|
273
|
+
* });
|
|
274
|
+
* ```
|
|
275
|
+
*/
|
|
276
|
+
async fundAccount(params) {
|
|
277
|
+
const { address, amount } = params;
|
|
278
|
+
try {
|
|
279
|
+
const faucet = this.config.faucet ?? "https://faucet.shelbynet.shelby.xyz/fund?asset=shelbyusd";
|
|
280
|
+
const response = await fetch(`${faucet}`, {
|
|
281
|
+
method: "POST",
|
|
282
|
+
body: JSON.stringify({ address, amount }),
|
|
283
|
+
headers: {
|
|
284
|
+
"Content-Type": "application/json"
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
if (!response.ok) {
|
|
288
|
+
throw new Error("Failed to fund account");
|
|
289
|
+
}
|
|
290
|
+
return response.json();
|
|
291
|
+
} catch (error) {
|
|
292
|
+
throw new Error("Failed to fund account: " + error);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
173
295
|
};
|
|
174
296
|
|
|
175
297
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getShelbyIndexerClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HFGEQP5N.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAptosConfig
|
|
6
6
|
} from "./chunk-RBFWGDMY.mjs";
|
|
@@ -89,7 +89,7 @@ var ShelbyBlobClient = class _ShelbyBlobClient {
|
|
|
89
89
|
try {
|
|
90
90
|
const rawMetadata = await this.aptos.view({
|
|
91
91
|
payload: {
|
|
92
|
-
function: `${this.deployer.toString()}::
|
|
92
|
+
function: `${this.deployer.toString()}::blob_metadata::get_blob_metadata`,
|
|
93
93
|
functionArguments: [
|
|
94
94
|
createBlobKey({
|
|
95
95
|
account: params.account,
|
|
@@ -223,10 +223,10 @@ var ShelbyBlobClient = class _ShelbyBlobClient {
|
|
|
223
223
|
orderBy
|
|
224
224
|
});
|
|
225
225
|
const activityTypeMapping = {
|
|
226
|
-
[`${this.deployer.toStringLong()}::
|
|
227
|
-
[`${this.deployer.toStringLong()}::
|
|
228
|
-
[`${this.deployer.toStringLong()}::
|
|
229
|
-
[`${this.deployer.toStringLong()}::
|
|
226
|
+
[`${this.deployer.toStringLong()}::blob_metadata::BlobRegisteredEvent`]: "register_blob",
|
|
227
|
+
[`${this.deployer.toStringLong()}::blob_metadata::BlobDeletedEvent`]: "delete_blob",
|
|
228
|
+
[`${this.deployer.toStringLong()}::blob_metadata::BlobExpirationExtendedEvent`]: "extend_blob_expiration",
|
|
229
|
+
[`${this.deployer.toStringLong()}::blob_metadata::BlobWrittenEvent`]: "write_blob"
|
|
230
230
|
};
|
|
231
231
|
return blob_activities.map(
|
|
232
232
|
(activity) => ({
|
|
@@ -325,6 +325,63 @@ var ShelbyBlobClient = class _ShelbyBlobClient {
|
|
|
325
325
|
})
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* Registers multiple blobs on the blockchain by writing their merkle roots and metadata.
|
|
330
|
+
*
|
|
331
|
+
* @param params.account - The account that is signing and paying for the transaction.
|
|
332
|
+
* @param params.expirationMicros - The expiration time of the blobs in microseconds.
|
|
333
|
+
* @param params.blobs - The blobs to register.
|
|
334
|
+
* @param params.blobs.blobName - The name/path of the blob (e.g. "foo/bar.txt").
|
|
335
|
+
* @param params.blobs.blobSize - The size of the blob in bytes.
|
|
336
|
+
* @param params.blobs.blobMerkleRoot - The merkle root of the blob commitments as a hex string.
|
|
337
|
+
* @param params.options - Optional transaction building options.
|
|
338
|
+
* @param params.options.chunksetSizeBytes - Custom chunkset size (defaults to DEFAULT_CHUNKSET_SIZE_BYTES).
|
|
339
|
+
* @param params.options.build - Additional Aptos transaction building options.
|
|
340
|
+
*
|
|
341
|
+
* @returns An object containing the pending transaction.
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
* ```typescript
|
|
345
|
+
* const provider = await ClayErasureCodingProvider.create();
|
|
346
|
+
* const blobCommitments = await generateCommitments(provider, data);
|
|
347
|
+
*
|
|
348
|
+
* const { transaction } = await client.batchRegisterBlobs({
|
|
349
|
+
* account: signer,
|
|
350
|
+
* expirationMicros: Date.now() * 1000 + 3600_000_000, // 1 hour from now in microseconds
|
|
351
|
+
* blobs: [
|
|
352
|
+
* {
|
|
353
|
+
* blobName: "foo/bar.txt",
|
|
354
|
+
* blobSize: data.length,
|
|
355
|
+
* blobMerkleRoot: blobCommitments.blob_merkle_root,
|
|
356
|
+
* },
|
|
357
|
+
* ],
|
|
358
|
+
* });
|
|
359
|
+
* ```
|
|
360
|
+
*/
|
|
361
|
+
async batchRegisterBlobs(params) {
|
|
362
|
+
const chunksetSize = params.options?.chunksetSizeBytes ?? DEFAULT_CHUNKSET_SIZE_BYTES;
|
|
363
|
+
const transaction = await this.aptos.transaction.build.simple({
|
|
364
|
+
...params.options?.build,
|
|
365
|
+
sender: params.account.accountAddress,
|
|
366
|
+
data: _ShelbyBlobClient.createBatchRegisterBlobsPayload({
|
|
367
|
+
deployer: this.deployer,
|
|
368
|
+
account: params.account.accountAddress,
|
|
369
|
+
expirationMicros: params.expirationMicros,
|
|
370
|
+
blobs: params.blobs.map((blob) => ({
|
|
371
|
+
blobName: blob.blobName,
|
|
372
|
+
blobSize: blob.blobSize,
|
|
373
|
+
blobMerkleRoot: blob.blobMerkleRoot,
|
|
374
|
+
numChunksets: expectedTotalChunksets(blob.blobSize, chunksetSize)
|
|
375
|
+
}))
|
|
376
|
+
})
|
|
377
|
+
});
|
|
378
|
+
return {
|
|
379
|
+
transaction: await this.aptos.signAndSubmitTransaction({
|
|
380
|
+
signer: params.account,
|
|
381
|
+
transaction
|
|
382
|
+
})
|
|
383
|
+
};
|
|
384
|
+
}
|
|
328
385
|
/**
|
|
329
386
|
* Creates a transaction payload to register a blob on the blockchain.
|
|
330
387
|
* This is a static helper method for constructing the Move function call payload.
|
|
@@ -343,7 +400,7 @@ var ShelbyBlobClient = class _ShelbyBlobClient {
|
|
|
343
400
|
*/
|
|
344
401
|
static createRegisterBlobPayload(params) {
|
|
345
402
|
return {
|
|
346
|
-
function: `${(params.deployer ?? SHELBY_DEPLOYER).toString()}::
|
|
403
|
+
function: `${(params.deployer ?? SHELBY_DEPLOYER).toString()}::blob_metadata::register_blob`,
|
|
347
404
|
functionArguments: [
|
|
348
405
|
params.blobName,
|
|
349
406
|
params.expirationMicros,
|
|
@@ -387,7 +444,7 @@ var ShelbyBlobClient = class _ShelbyBlobClient {
|
|
|
387
444
|
blobSizes.push(blob.blobSize);
|
|
388
445
|
});
|
|
389
446
|
return {
|
|
390
|
-
function: `${(params.deployer ?? SHELBY_DEPLOYER).toString()}::
|
|
447
|
+
function: `${(params.deployer ?? SHELBY_DEPLOYER).toString()}::blob_metadata::register_multiple_blobs`,
|
|
391
448
|
functionArguments: [
|
|
392
449
|
blobNames,
|
|
393
450
|
params.expirationMicros,
|
|
@@ -413,7 +470,7 @@ var ShelbyBlobClient = class _ShelbyBlobClient {
|
|
|
413
470
|
*/
|
|
414
471
|
static createDeleteBlobPayload(params) {
|
|
415
472
|
return {
|
|
416
|
-
function: `${(params.deployer ?? SHELBY_DEPLOYER).toString()}::
|
|
473
|
+
function: `${(params.deployer ?? SHELBY_DEPLOYER).toString()}::blob_metadata::delete_blob`,
|
|
417
474
|
functionArguments: [params.blobNameSuffix]
|
|
418
475
|
};
|
|
419
476
|
}
|
|
@@ -185,6 +185,51 @@ declare class ShelbyBlobClient {
|
|
|
185
185
|
}): Promise<{
|
|
186
186
|
transaction: PendingTransactionResponse;
|
|
187
187
|
}>;
|
|
188
|
+
/**
|
|
189
|
+
* Registers multiple blobs on the blockchain by writing their merkle roots and metadata.
|
|
190
|
+
*
|
|
191
|
+
* @param params.account - The account that is signing and paying for the transaction.
|
|
192
|
+
* @param params.expirationMicros - The expiration time of the blobs in microseconds.
|
|
193
|
+
* @param params.blobs - The blobs to register.
|
|
194
|
+
* @param params.blobs.blobName - The name/path of the blob (e.g. "foo/bar.txt").
|
|
195
|
+
* @param params.blobs.blobSize - The size of the blob in bytes.
|
|
196
|
+
* @param params.blobs.blobMerkleRoot - The merkle root of the blob commitments as a hex string.
|
|
197
|
+
* @param params.options - Optional transaction building options.
|
|
198
|
+
* @param params.options.chunksetSizeBytes - Custom chunkset size (defaults to DEFAULT_CHUNKSET_SIZE_BYTES).
|
|
199
|
+
* @param params.options.build - Additional Aptos transaction building options.
|
|
200
|
+
*
|
|
201
|
+
* @returns An object containing the pending transaction.
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```typescript
|
|
205
|
+
* const provider = await ClayErasureCodingProvider.create();
|
|
206
|
+
* const blobCommitments = await generateCommitments(provider, data);
|
|
207
|
+
*
|
|
208
|
+
* const { transaction } = await client.batchRegisterBlobs({
|
|
209
|
+
* account: signer,
|
|
210
|
+
* expirationMicros: Date.now() * 1000 + 3600_000_000, // 1 hour from now in microseconds
|
|
211
|
+
* blobs: [
|
|
212
|
+
* {
|
|
213
|
+
* blobName: "foo/bar.txt",
|
|
214
|
+
* blobSize: data.length,
|
|
215
|
+
* blobMerkleRoot: blobCommitments.blob_merkle_root,
|
|
216
|
+
* },
|
|
217
|
+
* ],
|
|
218
|
+
* });
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
batchRegisterBlobs(params: {
|
|
222
|
+
account: Account;
|
|
223
|
+
expirationMicros: number;
|
|
224
|
+
blobs: {
|
|
225
|
+
blobName: BlobName;
|
|
226
|
+
blobSize: number;
|
|
227
|
+
blobMerkleRoot: string;
|
|
228
|
+
}[];
|
|
229
|
+
options?: WriteBlobCommitmentsOptions;
|
|
230
|
+
}): Promise<{
|
|
231
|
+
transaction: PendingTransactionResponse;
|
|
232
|
+
}>;
|
|
188
233
|
/**
|
|
189
234
|
* Creates a transaction payload to register a blob on the blockchain.
|
|
190
235
|
* This is a static helper method for constructing the Move function call payload.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyBlobClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-HDYY6NS4.mjs";
|
|
4
|
+
import "../../chunk-HFGEQP5N.mjs";
|
|
5
5
|
import "../../chunk-WJKSPJSS.mjs";
|
|
6
6
|
import "../../chunk-RBFWGDMY.mjs";
|
|
7
7
|
import "../../chunk-OTBLZL2S.mjs";
|
|
@@ -9,9 +9,9 @@ import '../types/blobs.js';
|
|
|
9
9
|
import '@shelby-protocol/clay-codes';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '../operations/index.js';
|
|
12
|
+
import 'graphql-request';
|
|
12
13
|
import '../operations/generated/sdk.js';
|
|
13
14
|
import 'graphql';
|
|
14
|
-
import 'graphql-request';
|
|
15
15
|
import '../networks.js';
|
|
16
16
|
|
|
17
17
|
type UploadOptions = WriteBlobCommitmentsOptions;
|
|
@@ -110,6 +110,42 @@ declare class ShelbyClient {
|
|
|
110
110
|
expirationMicros: number;
|
|
111
111
|
options?: UploadOptions;
|
|
112
112
|
}): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Uploads a batch of blobs to the Shelby network.
|
|
115
|
+
* This method handles the complete upload flow including commitment generation,
|
|
116
|
+
* blockchain registration, and storage upload.
|
|
117
|
+
*
|
|
118
|
+
* @param params.blobs - The blobs to upload.
|
|
119
|
+
* @param params.blobs.blobData - The raw data to upload as a Uint8Array.
|
|
120
|
+
* @param params.blobs.blobName - The name/path of the blob (e.g. "folder/file.txt").
|
|
121
|
+
* @param params.expirationMicros - The expiration time in microseconds since Unix epoch.
|
|
122
|
+
* @param params.signer - The account that signs and pays for the transaction.
|
|
123
|
+
* @param params.options - Optional upload configuration.
|
|
124
|
+
* @param params.options.chunksetSizeBytes - Custom chunkset size.
|
|
125
|
+
* @param params.options.build - Additional Aptos transaction options.
|
|
126
|
+
*
|
|
127
|
+
* @returns The transaction and generated blob commitments (when implemented).
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* await client.batchUpload({
|
|
132
|
+
* blobs: [
|
|
133
|
+
* { blobData: Buffer.from("Hello, World!"), blobName: "hello.txt" },
|
|
134
|
+
* { blobData: Buffer.from("Hello, World 2!"), blobName: "hello2.txt" },
|
|
135
|
+
* ],
|
|
136
|
+
* expirationMicros: Date.now() * 1000 + 86400_000_000 // 24 hours from now
|
|
137
|
+
* });
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
batchUpload(params: {
|
|
141
|
+
blobs: {
|
|
142
|
+
blobData: Uint8Array;
|
|
143
|
+
blobName: BlobName;
|
|
144
|
+
}[];
|
|
145
|
+
expirationMicros: number;
|
|
146
|
+
signer: Account;
|
|
147
|
+
options?: UploadOptions;
|
|
148
|
+
}): Promise<void>;
|
|
113
149
|
/**
|
|
114
150
|
* Downloads a blob from the Shelby RPC node.
|
|
115
151
|
*
|
|
@@ -135,6 +171,26 @@ declare class ShelbyClient {
|
|
|
135
171
|
end?: number;
|
|
136
172
|
};
|
|
137
173
|
}): Promise<ShelbyBlob>;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* Funds an account with ShelbyUSD tokens.
|
|
177
|
+
*
|
|
178
|
+
* @param params.address - The address to fund.
|
|
179
|
+
* @param params.amount - The amount to fund.
|
|
180
|
+
* @returns The transaction hash of the funded account.
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```typescript
|
|
184
|
+
* const hash = await client.fundAccount({
|
|
185
|
+
* address: "0x1",
|
|
186
|
+
* amount: 100000000,
|
|
187
|
+
* });
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
fundAccount(params: {
|
|
191
|
+
address: AccountAddressInput;
|
|
192
|
+
amount: number;
|
|
193
|
+
}): Promise<any>;
|
|
138
194
|
}
|
|
139
195
|
|
|
140
196
|
export { ShelbyClient, type UploadOptions };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-AUGZMI6U.mjs";
|
|
4
|
+
import "../../chunk-7P3P3D3X.mjs";
|
|
5
5
|
import "../../chunk-I6NG5GNL.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-HDYY6NS4.mjs";
|
|
7
|
+
import "../../chunk-HFGEQP5N.mjs";
|
|
8
8
|
import "../../chunk-WJKSPJSS.mjs";
|
|
9
9
|
import "../../chunk-RBFWGDMY.mjs";
|
|
10
10
|
import "../../chunk-OTBLZL2S.mjs";
|
|
@@ -42,6 +42,8 @@ interface ShelbyClientConfig {
|
|
|
42
42
|
rpc?: ShelbyRPCConfig;
|
|
43
43
|
/** An optional indexer configuration for GraphQL queries. If not provided, the default indexer will be used. */
|
|
44
44
|
indexer?: ShelbyIndexerConfig;
|
|
45
|
+
/** An optional faucet URL for funding accounts. If not provided, the default faucet will be used. */
|
|
46
|
+
faucet?: string;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
export type { ShelbyClientConfig, ShelbyIndexerConfig, ShelbyRPCConfig };
|
|
@@ -4,9 +4,9 @@ import { BlobName } from '../layout.js';
|
|
|
4
4
|
import { ShelbyIndexerClient } from '../operations/index.js';
|
|
5
5
|
import { ShelbyRPCConfig, ShelbyClientConfig } from './ShelbyClientConfig.js';
|
|
6
6
|
import 'zod';
|
|
7
|
+
import 'graphql-request';
|
|
7
8
|
import '../operations/generated/sdk.js';
|
|
8
9
|
import 'graphql';
|
|
9
|
-
import 'graphql-request';
|
|
10
10
|
import '../networks.js';
|
|
11
11
|
|
|
12
12
|
declare class ShelbyRPCClient {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyRPCClient
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-7P3P3D3X.mjs";
|
|
4
4
|
import "../../chunk-I6NG5GNL.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-HFGEQP5N.mjs";
|
|
6
6
|
import "../../chunk-WJKSPJSS.mjs";
|
|
7
7
|
import "../../chunk-RBFWGDMY.mjs";
|
|
8
8
|
import "../../chunk-4JZO2D7T.mjs";
|
|
@@ -9,8 +9,8 @@ import '../types/blobs.js';
|
|
|
9
9
|
import '../../clay-codes-Ce9EmXfa.js';
|
|
10
10
|
import '@shelby-protocol/clay-codes';
|
|
11
11
|
import '../operations/index.js';
|
|
12
|
+
import 'graphql-request';
|
|
12
13
|
import '../operations/generated/sdk.js';
|
|
13
14
|
import 'graphql';
|
|
14
|
-
import 'graphql-request';
|
|
15
15
|
import '../networks.js';
|
|
16
16
|
import '../blobs.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../chunk-RNXGC54D.mjs";
|
|
2
2
|
import {
|
|
3
3
|
ShelbyClient
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-AUGZMI6U.mjs";
|
|
5
5
|
import "../../chunk-Z7RFCADT.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ShelbyRPCClient
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-7P3P3D3X.mjs";
|
|
9
9
|
import "../../chunk-I6NG5GNL.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ShelbyBlobClient
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-HDYY6NS4.mjs";
|
|
13
|
+
import "../../chunk-HFGEQP5N.mjs";
|
|
14
14
|
import "../../chunk-WJKSPJSS.mjs";
|
|
15
15
|
import "../../chunk-RBFWGDMY.mjs";
|
|
16
16
|
import "../../chunk-OTBLZL2S.mjs";
|
package/dist/core/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { getShelbyAccountBlobsExplorerUrl, getShelbyAccountExplorerUrl, getShelb
|
|
|
17
17
|
export { BlobActivity, BlobActivityType, BlobEncoding, BlobMetadata, ClayEncoding } from './types/blobs.js';
|
|
18
18
|
export { StorageProviderInfo } from './types/storage_providers.js';
|
|
19
19
|
export { buildRequestUrl, concatHashes, getBlobNameSuffix, readInChunks, zeroPadBytes } from './utils.js';
|
|
20
|
-
export { Order_By } from './operations/generated/sdk.js';
|
|
20
|
+
export { Bigint_Comparison_Exp, Blob_Activities, Blob_Activities_Aggregate, Blob_Activities_Aggregate_Fields, Blob_Activities_Aggregate_FieldsCountArgs, Blob_Activities_Avg_Fields, Blob_Activities_Bool_Exp, Blob_Activities_Max_Fields, Blob_Activities_Min_Fields, Blob_Activities_Order_By, Blob_Activities_Select_Column, Blob_Activities_Stddev_Fields, Blob_Activities_Stddev_Pop_Fields, Blob_Activities_Stddev_Samp_Fields, Blob_Activities_Stream_Cursor_Input, Blob_Activities_Stream_Cursor_Value_Input, Blob_Activities_Sum_Fields, Blob_Activities_Var_Pop_Fields, Blob_Activities_Var_Samp_Fields, Blob_Activities_Variance_Fields, Blobs, BlobsPlacement_Group_SlotsArgs, Blobs_Aggregate, Blobs_Aggregate_Fields, Blobs_Aggregate_FieldsCountArgs, Blobs_Avg_Fields, Blobs_Bool_Exp, Blobs_Max_Fields, Blobs_Min_Fields, Blobs_Order_By, Blobs_Select_Column, Blobs_Stddev_Fields, Blobs_Stddev_Pop_Fields, Blobs_Stddev_Samp_Fields, Blobs_Stream_Cursor_Input, Blobs_Stream_Cursor_Value_Input, Blobs_Sum_Fields, Blobs_Var_Pop_Fields, Blobs_Var_Samp_Fields, Blobs_Variance_Fields, Cursor_Ordering, Exact, GetBlobActivitiesCountDocument, GetBlobActivitiesCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesDocument, GetBlobActivitiesQuery, GetBlobActivitiesQueryVariables, GetBlobsCountDocument, GetBlobsCountQuery, GetBlobsCountQueryVariables, GetBlobsDocument, GetBlobsQuery, GetBlobsQueryVariables, Incremental, InputMaybe, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Numeric_Comparison_Exp, Order_By, Placement_Group_Slots, Placement_Group_Slots_Aggregate_Order_By, Placement_Group_Slots_Avg_Order_By, Placement_Group_Slots_Bool_Exp, Placement_Group_Slots_Max_Order_By, Placement_Group_Slots_Min_Order_By, Placement_Group_Slots_Order_By, Placement_Group_Slots_Select_Column, Placement_Group_Slots_Stddev_Order_By, Placement_Group_Slots_Stddev_Pop_Order_By, Placement_Group_Slots_Stddev_Samp_Order_By, Placement_Group_Slots_Stream_Cursor_Input, Placement_Group_Slots_Stream_Cursor_Value_Input, Placement_Group_Slots_Sum_Order_By, Placement_Group_Slots_Var_Pop_Order_By, Placement_Group_Slots_Var_Samp_Order_By, Placement_Group_Slots_Variance_Order_By, Processor_Status, Processor_Status_Bool_Exp, Processor_Status_Order_By, Processor_Status_Select_Column, Processor_Status_Stream_Cursor_Input, Processor_Status_Stream_Cursor_Value_Input, Query_Root, Query_RootBlob_ActivitiesArgs, Query_RootBlob_Activities_AggregateArgs, Query_RootBlob_Activities_By_PkArgs, Query_RootBlobsArgs, Query_RootBlobs_AggregateArgs, Query_RootBlobs_By_PkArgs, Query_RootPlacement_Group_SlotsArgs, Query_RootPlacement_Group_Slots_By_PkArgs, Query_RootProcessor_StatusArgs, Scalars, Sdk, SdkFunctionWrapper, String_Comparison_Exp, Subscription_Root, Subscription_RootBlob_ActivitiesArgs, Subscription_RootBlob_Activities_AggregateArgs, Subscription_RootBlob_Activities_By_PkArgs, Subscription_RootBlob_Activities_StreamArgs, Subscription_RootBlobsArgs, Subscription_RootBlobs_AggregateArgs, Subscription_RootBlobs_By_PkArgs, Subscription_RootBlobs_StreamArgs, Subscription_RootPlacement_Group_SlotsArgs, Subscription_RootPlacement_Group_Slots_By_PkArgs, Subscription_RootPlacement_Group_Slots_StreamArgs, Subscription_RootProcessor_StatusArgs, Subscription_RootProcessor_Status_StreamArgs, Timestamp_Comparison_Exp, getSdk } from './operations/generated/sdk.js';
|
|
21
21
|
import '@aptos-labs/ts-sdk';
|
|
22
22
|
import 'zod';
|
|
23
23
|
import '@shelby-protocol/clay-codes';
|
package/dist/core/index.mjs
CHANGED
|
@@ -5,11 +5,11 @@ import "../chunk-ZHXCVRZX.mjs";
|
|
|
5
5
|
import "../chunk-RNXGC54D.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ShelbyClient
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-AUGZMI6U.mjs";
|
|
9
9
|
import "../chunk-Z7RFCADT.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ShelbyRPCClient
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-7P3P3D3X.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isShelbyNetwork,
|
|
15
15
|
shelbyNetworks
|
|
@@ -22,13 +22,23 @@ import {
|
|
|
22
22
|
} from "../chunk-BDSW5PHM.mjs";
|
|
23
23
|
import {
|
|
24
24
|
ShelbyBlobClient
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-HDYY6NS4.mjs";
|
|
26
26
|
import {
|
|
27
27
|
createShelbyIndexerClient,
|
|
28
28
|
getShelbyIndexerClient
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import {
|
|
31
|
-
|
|
29
|
+
} from "../chunk-HFGEQP5N.mjs";
|
|
30
|
+
import {
|
|
31
|
+
Blob_Activities_Select_Column,
|
|
32
|
+
Blobs_Select_Column,
|
|
33
|
+
Cursor_Ordering,
|
|
34
|
+
GetBlobActivitiesCountDocument,
|
|
35
|
+
GetBlobActivitiesDocument,
|
|
36
|
+
GetBlobsCountDocument,
|
|
37
|
+
GetBlobsDocument,
|
|
38
|
+
Order_By,
|
|
39
|
+
Placement_Group_Slots_Select_Column,
|
|
40
|
+
Processor_Status_Select_Column,
|
|
41
|
+
getSdk
|
|
32
42
|
} from "../chunk-WJKSPJSS.mjs";
|
|
33
43
|
import "../chunk-RBFWGDMY.mjs";
|
|
34
44
|
import {
|
|
@@ -94,11 +104,14 @@ import "../chunk-7P6ASYW6.mjs";
|
|
|
94
104
|
export {
|
|
95
105
|
BlobCommitmentsSchema,
|
|
96
106
|
BlobNameSchema,
|
|
107
|
+
Blob_Activities_Select_Column,
|
|
108
|
+
Blobs_Select_Column,
|
|
97
109
|
CHUNK_SIZE_PARAMS,
|
|
98
110
|
ChunkKey,
|
|
99
111
|
ChunkSizeScheme,
|
|
100
112
|
ChunksetCommitmentSchema,
|
|
101
113
|
ClayErasureCodingProvider,
|
|
114
|
+
Cursor_Ordering,
|
|
102
115
|
DEFAULT_CHUNKSET_SIZE_BYTES,
|
|
103
116
|
DEFAULT_CHUNK_SIZE_BYTES,
|
|
104
117
|
DEFAULT_ERASURE_D,
|
|
@@ -110,9 +123,15 @@ export {
|
|
|
110
123
|
ERASURE_CODE_AND_CHUNK_MAPPING,
|
|
111
124
|
ERASURE_CODE_PARAMS,
|
|
112
125
|
ErasureCodingScheme,
|
|
126
|
+
GetBlobActivitiesCountDocument,
|
|
127
|
+
GetBlobActivitiesDocument,
|
|
128
|
+
GetBlobsCountDocument,
|
|
129
|
+
GetBlobsDocument,
|
|
113
130
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
114
131
|
NetworkToShelbyRPCBaseUrl,
|
|
115
132
|
Order_By,
|
|
133
|
+
Placement_Group_Slots_Select_Column,
|
|
134
|
+
Processor_Status_Select_Column,
|
|
116
135
|
ReedSolomonErasureCodingProvider,
|
|
117
136
|
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
118
137
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
@@ -135,6 +154,7 @@ export {
|
|
|
135
154
|
getAptosAccountExplorerUrl,
|
|
136
155
|
getAptosTransactionExplorerUrl,
|
|
137
156
|
getBlobNameSuffix,
|
|
157
|
+
getSdk,
|
|
138
158
|
getShelbyAccountBlobsExplorerUrl,
|
|
139
159
|
getShelbyAccountExplorerUrl,
|
|
140
160
|
getShelbyBlobExplorerUrl,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { GetBlobsQueryVariables, GetBlobsQuery, GetBlobActivitiesQueryVariables, GetBlobActivitiesQuery, GetBlobsCountQueryVariables, GetBlobsCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesCountQuery } from './generated/sdk.js';
|
|
2
|
-
export { Order_By } from './generated/sdk.js';
|
|
3
1
|
import { GraphQLClient } from 'graphql-request';
|
|
4
2
|
import { ShelbyClientConfig } from '../clients/ShelbyClientConfig.js';
|
|
5
|
-
import '
|
|
3
|
+
import { GetBlobsQueryVariables, GetBlobsQuery, GetBlobActivitiesQueryVariables, GetBlobActivitiesQuery, GetBlobsCountQueryVariables, GetBlobsCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesCountQuery } from './generated/sdk.js';
|
|
4
|
+
export { Bigint_Comparison_Exp, Blob_Activities, Blob_Activities_Aggregate, Blob_Activities_Aggregate_Fields, Blob_Activities_Aggregate_FieldsCountArgs, Blob_Activities_Avg_Fields, Blob_Activities_Bool_Exp, Blob_Activities_Max_Fields, Blob_Activities_Min_Fields, Blob_Activities_Order_By, Blob_Activities_Select_Column, Blob_Activities_Stddev_Fields, Blob_Activities_Stddev_Pop_Fields, Blob_Activities_Stddev_Samp_Fields, Blob_Activities_Stream_Cursor_Input, Blob_Activities_Stream_Cursor_Value_Input, Blob_Activities_Sum_Fields, Blob_Activities_Var_Pop_Fields, Blob_Activities_Var_Samp_Fields, Blob_Activities_Variance_Fields, Blobs, BlobsPlacement_Group_SlotsArgs, Blobs_Aggregate, Blobs_Aggregate_Fields, Blobs_Aggregate_FieldsCountArgs, Blobs_Avg_Fields, Blobs_Bool_Exp, Blobs_Max_Fields, Blobs_Min_Fields, Blobs_Order_By, Blobs_Select_Column, Blobs_Stddev_Fields, Blobs_Stddev_Pop_Fields, Blobs_Stddev_Samp_Fields, Blobs_Stream_Cursor_Input, Blobs_Stream_Cursor_Value_Input, Blobs_Sum_Fields, Blobs_Var_Pop_Fields, Blobs_Var_Samp_Fields, Blobs_Variance_Fields, Cursor_Ordering, Exact, GetBlobActivitiesCountDocument, GetBlobActivitiesDocument, GetBlobsCountDocument, GetBlobsDocument, Incremental, InputMaybe, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Numeric_Comparison_Exp, Order_By, Placement_Group_Slots, Placement_Group_Slots_Aggregate_Order_By, Placement_Group_Slots_Avg_Order_By, Placement_Group_Slots_Bool_Exp, Placement_Group_Slots_Max_Order_By, Placement_Group_Slots_Min_Order_By, Placement_Group_Slots_Order_By, Placement_Group_Slots_Select_Column, Placement_Group_Slots_Stddev_Order_By, Placement_Group_Slots_Stddev_Pop_Order_By, Placement_Group_Slots_Stddev_Samp_Order_By, Placement_Group_Slots_Stream_Cursor_Input, Placement_Group_Slots_Stream_Cursor_Value_Input, Placement_Group_Slots_Sum_Order_By, Placement_Group_Slots_Var_Pop_Order_By, Placement_Group_Slots_Var_Samp_Order_By, Placement_Group_Slots_Variance_Order_By, Processor_Status, Processor_Status_Bool_Exp, Processor_Status_Order_By, Processor_Status_Select_Column, Processor_Status_Stream_Cursor_Input, Processor_Status_Stream_Cursor_Value_Input, Query_Root, Query_RootBlob_ActivitiesArgs, Query_RootBlob_Activities_AggregateArgs, Query_RootBlob_Activities_By_PkArgs, Query_RootBlobsArgs, Query_RootBlobs_AggregateArgs, Query_RootBlobs_By_PkArgs, Query_RootPlacement_Group_SlotsArgs, Query_RootPlacement_Group_Slots_By_PkArgs, Query_RootProcessor_StatusArgs, Scalars, Sdk, SdkFunctionWrapper, String_Comparison_Exp, Subscription_Root, Subscription_RootBlob_ActivitiesArgs, Subscription_RootBlob_Activities_AggregateArgs, Subscription_RootBlob_Activities_By_PkArgs, Subscription_RootBlob_Activities_StreamArgs, Subscription_RootBlobsArgs, Subscription_RootBlobs_AggregateArgs, Subscription_RootBlobs_By_PkArgs, Subscription_RootBlobs_StreamArgs, Subscription_RootPlacement_Group_SlotsArgs, Subscription_RootPlacement_Group_Slots_By_PkArgs, Subscription_RootPlacement_Group_Slots_StreamArgs, Subscription_RootProcessor_StatusArgs, Subscription_RootProcessor_Status_StreamArgs, Timestamp_Comparison_Exp, getSdk } from './generated/sdk.js';
|
|
6
5
|
import '@aptos-labs/ts-sdk';
|
|
7
6
|
import '../networks.js';
|
|
7
|
+
import 'graphql';
|
|
8
8
|
|
|
9
9
|
declare function createShelbyIndexerClient(baseUrl: string, options?: ConstructorParameters<typeof GraphQLClient>[1]): {
|
|
10
10
|
getBlobs(variables?: GetBlobsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<GetBlobsQuery>;
|
|
@@ -33,4 +33,4 @@ declare function getShelbyIndexerClient(config: ShelbyClientConfig): {
|
|
|
33
33
|
};
|
|
34
34
|
type ShelbyIndexerClient = ReturnType<typeof createShelbyIndexerClient>;
|
|
35
35
|
|
|
36
|
-
export { type ShelbyIndexerClient, createShelbyIndexerClient, getShelbyIndexerClient };
|
|
36
|
+
export { GetBlobActivitiesCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesQuery, GetBlobActivitiesQueryVariables, GetBlobsCountQuery, GetBlobsCountQueryVariables, GetBlobsQuery, GetBlobsQueryVariables, type ShelbyIndexerClient, createShelbyIndexerClient, getShelbyIndexerClient };
|
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createShelbyIndexerClient,
|
|
3
3
|
getShelbyIndexerClient
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-HFGEQP5N.mjs";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Blob_Activities_Select_Column,
|
|
7
|
+
Blobs_Select_Column,
|
|
8
|
+
Cursor_Ordering,
|
|
9
|
+
GetBlobActivitiesCountDocument,
|
|
10
|
+
GetBlobActivitiesDocument,
|
|
11
|
+
GetBlobsCountDocument,
|
|
12
|
+
GetBlobsDocument,
|
|
13
|
+
Order_By,
|
|
14
|
+
Placement_Group_Slots_Select_Column,
|
|
15
|
+
Processor_Status_Select_Column,
|
|
16
|
+
getSdk
|
|
7
17
|
} from "../../chunk-WJKSPJSS.mjs";
|
|
8
18
|
import "../../chunk-RBFWGDMY.mjs";
|
|
9
19
|
import "../../chunk-SEXQTDX6.mjs";
|
|
10
20
|
import "../../chunk-7P6ASYW6.mjs";
|
|
11
21
|
export {
|
|
22
|
+
Blob_Activities_Select_Column,
|
|
23
|
+
Blobs_Select_Column,
|
|
24
|
+
Cursor_Ordering,
|
|
25
|
+
GetBlobActivitiesCountDocument,
|
|
26
|
+
GetBlobActivitiesDocument,
|
|
27
|
+
GetBlobsCountDocument,
|
|
28
|
+
GetBlobsDocument,
|
|
12
29
|
Order_By,
|
|
30
|
+
Placement_Group_Slots_Select_Column,
|
|
31
|
+
Processor_Status_Select_Column,
|
|
13
32
|
createShelbyIndexerClient,
|
|
33
|
+
getSdk,
|
|
14
34
|
getShelbyIndexerClient
|
|
15
35
|
};
|
|
@@ -7,11 +7,11 @@ import '../../core/types/blobs.js';
|
|
|
7
7
|
import '../../clay-codes-Ce9EmXfa.js';
|
|
8
8
|
import '@shelby-protocol/clay-codes';
|
|
9
9
|
import '../../core/operations/index.js';
|
|
10
|
-
import '../../core/operations/generated/sdk.js';
|
|
11
|
-
import 'graphql';
|
|
12
10
|
import 'graphql-request';
|
|
13
11
|
import '../../core/clients/ShelbyClientConfig.js';
|
|
14
12
|
import '../../core/networks.js';
|
|
13
|
+
import '../../core/operations/generated/sdk.js';
|
|
14
|
+
import 'graphql';
|
|
15
15
|
import '../../core/blobs.js';
|
|
16
16
|
import '../../core/clients/ShelbyRPCClient.js';
|
|
17
17
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyNodeClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-GZJ5IOCG.mjs";
|
|
4
|
+
import "../../chunk-AUGZMI6U.mjs";
|
|
5
|
+
import "../../chunk-7P3P3D3X.mjs";
|
|
6
6
|
import "../../chunk-I6NG5GNL.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-HDYY6NS4.mjs";
|
|
8
|
+
import "../../chunk-HFGEQP5N.mjs";
|
|
9
9
|
import "../../chunk-WJKSPJSS.mjs";
|
|
10
10
|
import "../../chunk-RBFWGDMY.mjs";
|
|
11
11
|
import "../../chunk-OTBLZL2S.mjs";
|
|
@@ -12,8 +12,8 @@ import '../../core/types/blobs.js';
|
|
|
12
12
|
import '../../clay-codes-Ce9EmXfa.js';
|
|
13
13
|
import '@shelby-protocol/clay-codes';
|
|
14
14
|
import '../../core/operations/index.js';
|
|
15
|
+
import 'graphql-request';
|
|
15
16
|
import '../../core/operations/generated/sdk.js';
|
|
16
17
|
import 'graphql';
|
|
17
|
-
import 'graphql-request';
|
|
18
18
|
import '../../core/blobs.js';
|
|
19
19
|
import '../../core/clients/ShelbyRPCClient.js';
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "../../chunk-CTGCK3H2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ShelbyNodeClient
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-GZJ5IOCG.mjs";
|
|
8
|
+
import "../../chunk-AUGZMI6U.mjs";
|
|
9
|
+
import "../../chunk-7P3P3D3X.mjs";
|
|
10
10
|
import "../../chunk-I6NG5GNL.mjs";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-HDYY6NS4.mjs";
|
|
12
|
+
import "../../chunk-HFGEQP5N.mjs";
|
|
13
13
|
import "../../chunk-WJKSPJSS.mjs";
|
|
14
14
|
import "../../chunk-RBFWGDMY.mjs";
|
|
15
15
|
import "../../chunk-OTBLZL2S.mjs";
|
package/dist/node/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { buildRequestUrl, concatHashes, getBlobNameSuffix, readInChunks, zeroPad
|
|
|
20
20
|
export { ShelbyMetadataClient } from './clients/ShelbyMetadataClient.js';
|
|
21
21
|
export { ShelbyNodeClient } from './clients/ShelbyNodeClient.js';
|
|
22
22
|
export { t as testUtil } from '../testUtil-BnxAchIN.js';
|
|
23
|
-
export { Order_By } from '../core/operations/generated/sdk.js';
|
|
23
|
+
export { Bigint_Comparison_Exp, Blob_Activities, Blob_Activities_Aggregate, Blob_Activities_Aggregate_Fields, Blob_Activities_Aggregate_FieldsCountArgs, Blob_Activities_Avg_Fields, Blob_Activities_Bool_Exp, Blob_Activities_Max_Fields, Blob_Activities_Min_Fields, Blob_Activities_Order_By, Blob_Activities_Select_Column, Blob_Activities_Stddev_Fields, Blob_Activities_Stddev_Pop_Fields, Blob_Activities_Stddev_Samp_Fields, Blob_Activities_Stream_Cursor_Input, Blob_Activities_Stream_Cursor_Value_Input, Blob_Activities_Sum_Fields, Blob_Activities_Var_Pop_Fields, Blob_Activities_Var_Samp_Fields, Blob_Activities_Variance_Fields, Blobs, BlobsPlacement_Group_SlotsArgs, Blobs_Aggregate, Blobs_Aggregate_Fields, Blobs_Aggregate_FieldsCountArgs, Blobs_Avg_Fields, Blobs_Bool_Exp, Blobs_Max_Fields, Blobs_Min_Fields, Blobs_Order_By, Blobs_Select_Column, Blobs_Stddev_Fields, Blobs_Stddev_Pop_Fields, Blobs_Stddev_Samp_Fields, Blobs_Stream_Cursor_Input, Blobs_Stream_Cursor_Value_Input, Blobs_Sum_Fields, Blobs_Var_Pop_Fields, Blobs_Var_Samp_Fields, Blobs_Variance_Fields, Cursor_Ordering, Exact, GetBlobActivitiesCountDocument, GetBlobActivitiesCountQuery, GetBlobActivitiesCountQueryVariables, GetBlobActivitiesDocument, GetBlobActivitiesQuery, GetBlobActivitiesQueryVariables, GetBlobsCountDocument, GetBlobsCountQuery, GetBlobsCountQueryVariables, GetBlobsDocument, GetBlobsQuery, GetBlobsQueryVariables, Incremental, InputMaybe, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Numeric_Comparison_Exp, Order_By, Placement_Group_Slots, Placement_Group_Slots_Aggregate_Order_By, Placement_Group_Slots_Avg_Order_By, Placement_Group_Slots_Bool_Exp, Placement_Group_Slots_Max_Order_By, Placement_Group_Slots_Min_Order_By, Placement_Group_Slots_Order_By, Placement_Group_Slots_Select_Column, Placement_Group_Slots_Stddev_Order_By, Placement_Group_Slots_Stddev_Pop_Order_By, Placement_Group_Slots_Stddev_Samp_Order_By, Placement_Group_Slots_Stream_Cursor_Input, Placement_Group_Slots_Stream_Cursor_Value_Input, Placement_Group_Slots_Sum_Order_By, Placement_Group_Slots_Var_Pop_Order_By, Placement_Group_Slots_Var_Samp_Order_By, Placement_Group_Slots_Variance_Order_By, Processor_Status, Processor_Status_Bool_Exp, Processor_Status_Order_By, Processor_Status_Select_Column, Processor_Status_Stream_Cursor_Input, Processor_Status_Stream_Cursor_Value_Input, Query_Root, Query_RootBlob_ActivitiesArgs, Query_RootBlob_Activities_AggregateArgs, Query_RootBlob_Activities_By_PkArgs, Query_RootBlobsArgs, Query_RootBlobs_AggregateArgs, Query_RootBlobs_By_PkArgs, Query_RootPlacement_Group_SlotsArgs, Query_RootPlacement_Group_Slots_By_PkArgs, Query_RootProcessor_StatusArgs, Scalars, Sdk, SdkFunctionWrapper, String_Comparison_Exp, Subscription_Root, Subscription_RootBlob_ActivitiesArgs, Subscription_RootBlob_Activities_AggregateArgs, Subscription_RootBlob_Activities_By_PkArgs, Subscription_RootBlob_Activities_StreamArgs, Subscription_RootBlobsArgs, Subscription_RootBlobs_AggregateArgs, Subscription_RootBlobs_By_PkArgs, Subscription_RootBlobs_StreamArgs, Subscription_RootPlacement_Group_SlotsArgs, Subscription_RootPlacement_Group_Slots_By_PkArgs, Subscription_RootPlacement_Group_Slots_StreamArgs, Subscription_RootProcessor_StatusArgs, Subscription_RootProcessor_Status_StreamArgs, Timestamp_Comparison_Exp, getSdk } from '../core/operations/generated/sdk.js';
|
|
24
24
|
import '@aptos-labs/ts-sdk';
|
|
25
25
|
import 'zod';
|
|
26
26
|
import '@shelby-protocol/clay-codes';
|
package/dist/node/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-CTGCK3H2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ShelbyNodeClient
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-GZJ5IOCG.mjs";
|
|
8
8
|
import {
|
|
9
9
|
testUtil_exports
|
|
10
10
|
} from "../chunk-A4IG6GSE.mjs";
|
|
@@ -15,11 +15,11 @@ import "../chunk-ZHXCVRZX.mjs";
|
|
|
15
15
|
import "../chunk-RNXGC54D.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ShelbyClient
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-AUGZMI6U.mjs";
|
|
19
19
|
import "../chunk-Z7RFCADT.mjs";
|
|
20
20
|
import {
|
|
21
21
|
ShelbyRPCClient
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-7P3P3D3X.mjs";
|
|
23
23
|
import {
|
|
24
24
|
isShelbyNetwork,
|
|
25
25
|
shelbyNetworks
|
|
@@ -32,13 +32,23 @@ import {
|
|
|
32
32
|
} from "../chunk-BDSW5PHM.mjs";
|
|
33
33
|
import {
|
|
34
34
|
ShelbyBlobClient
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-HDYY6NS4.mjs";
|
|
36
36
|
import {
|
|
37
37
|
createShelbyIndexerClient,
|
|
38
38
|
getShelbyIndexerClient
|
|
39
|
-
} from "../chunk-
|
|
40
|
-
import {
|
|
41
|
-
|
|
39
|
+
} from "../chunk-HFGEQP5N.mjs";
|
|
40
|
+
import {
|
|
41
|
+
Blob_Activities_Select_Column,
|
|
42
|
+
Blobs_Select_Column,
|
|
43
|
+
Cursor_Ordering,
|
|
44
|
+
GetBlobActivitiesCountDocument,
|
|
45
|
+
GetBlobActivitiesDocument,
|
|
46
|
+
GetBlobsCountDocument,
|
|
47
|
+
GetBlobsDocument,
|
|
48
|
+
Order_By,
|
|
49
|
+
Placement_Group_Slots_Select_Column,
|
|
50
|
+
Processor_Status_Select_Column,
|
|
51
|
+
getSdk
|
|
42
52
|
} from "../chunk-WJKSPJSS.mjs";
|
|
43
53
|
import "../chunk-RBFWGDMY.mjs";
|
|
44
54
|
import {
|
|
@@ -104,11 +114,14 @@ import "../chunk-7P6ASYW6.mjs";
|
|
|
104
114
|
export {
|
|
105
115
|
BlobCommitmentsSchema,
|
|
106
116
|
BlobNameSchema,
|
|
117
|
+
Blob_Activities_Select_Column,
|
|
118
|
+
Blobs_Select_Column,
|
|
107
119
|
CHUNK_SIZE_PARAMS,
|
|
108
120
|
ChunkKey,
|
|
109
121
|
ChunkSizeScheme,
|
|
110
122
|
ChunksetCommitmentSchema,
|
|
111
123
|
ClayErasureCodingProvider,
|
|
124
|
+
Cursor_Ordering,
|
|
112
125
|
DEFAULT_CHUNKSET_SIZE_BYTES,
|
|
113
126
|
DEFAULT_CHUNK_SIZE_BYTES,
|
|
114
127
|
DEFAULT_ERASURE_D,
|
|
@@ -120,9 +133,15 @@ export {
|
|
|
120
133
|
ERASURE_CODE_AND_CHUNK_MAPPING,
|
|
121
134
|
ERASURE_CODE_PARAMS,
|
|
122
135
|
ErasureCodingScheme,
|
|
136
|
+
GetBlobActivitiesCountDocument,
|
|
137
|
+
GetBlobActivitiesDocument,
|
|
138
|
+
GetBlobsCountDocument,
|
|
139
|
+
GetBlobsDocument,
|
|
123
140
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
124
141
|
NetworkToShelbyRPCBaseUrl,
|
|
125
142
|
Order_By,
|
|
143
|
+
Placement_Group_Slots_Select_Column,
|
|
144
|
+
Processor_Status_Select_Column,
|
|
126
145
|
ReedSolomonErasureCodingProvider,
|
|
127
146
|
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
128
147
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
@@ -147,6 +166,7 @@ export {
|
|
|
147
166
|
getAptosAccountExplorerUrl,
|
|
148
167
|
getAptosTransactionExplorerUrl,
|
|
149
168
|
getBlobNameSuffix,
|
|
169
|
+
getSdk,
|
|
150
170
|
getShelbyAccountBlobsExplorerUrl,
|
|
151
171
|
getShelbyAccountExplorerUrl,
|
|
152
172
|
getShelbyBlobExplorerUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shelby-protocol/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
"graphql": "^16.11.0",
|
|
24
24
|
"graphql-request": "^7.2.0",
|
|
25
25
|
"graphql-tag": "^2.12.6",
|
|
26
|
+
"p-limit": "7.1.1",
|
|
26
27
|
"zod": "^3.24.3",
|
|
27
|
-
"@shelby-protocol/
|
|
28
|
-
"@shelby-protocol/
|
|
28
|
+
"@shelby-protocol/clay-codes": "0.0.1",
|
|
29
|
+
"@shelby-protocol/reed-solomon": "0.0.1"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@aptos-labs/ts-sdk": "^5.1.1",
|
|
File without changes
|