@shelby-protocol/sdk 0.0.3 → 0.0.5
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 +7 -5
- package/dist/browser/index.mjs +35 -16
- package/dist/{chunk-I7SQAWUY.mjs → chunk-2DD6Q5CK.mjs} +1 -1
- package/dist/{chunk-KBUWZXFA.mjs → chunk-4JZO2D7T.mjs} +6 -1
- package/dist/chunk-BDSW5PHM.mjs +37 -0
- package/dist/chunk-C6RQ3AEU.mjs +51 -0
- package/dist/{chunk-NTJSNNA7.mjs → chunk-CTGCK3H2.mjs} +1 -1
- package/dist/{chunk-PGBEBDNY.mjs → chunk-L7H6EKII.mjs} +3 -3
- package/dist/{chunk-LTV26KU4.mjs → chunk-PCNLFNAT.mjs} +1 -1
- package/dist/{chunk-HPVCKAN2.mjs → chunk-SEXQTDX6.mjs} +2 -2
- package/dist/{chunk-57KKLRIW.mjs → chunk-T6TVHFJO.mjs} +2 -2
- package/dist/{chunk-PUNXDYH2.mjs → chunk-TPGMXZRD.mjs} +4 -4
- package/dist/{chunk-DLMDDEWF.mjs → chunk-WJKSPJSS.mjs} +26 -0
- package/dist/{chunk-USBWGA27.mjs → chunk-Y7KTNPPR.mjs} +62 -22
- package/dist/core/aptos-explorer.d.ts +10 -0
- package/dist/core/aptos-explorer.mjs +9 -0
- package/dist/core/clients/ShelbyBlobClient.d.ts +36 -17
- package/dist/core/clients/ShelbyBlobClient.mjs +6 -6
- package/dist/core/clients/ShelbyClient.mjs +8 -8
- package/dist/core/clients/ShelbyRPCClient.mjs +5 -5
- package/dist/core/clients/index.mjs +9 -9
- package/dist/core/commitments.mjs +2 -2
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/constants.mjs +3 -3
- package/dist/core/index.d.ts +7 -5
- package/dist/core/index.mjs +35 -16
- package/dist/core/operations/generated/sdk.d.ts +307 -1
- package/dist/core/operations/generated/sdk.mjs +5 -1
- package/dist/core/operations/index.d.ts +6 -1
- package/dist/core/operations/index.mjs +6 -3
- package/dist/core/shelby-explorer.d.ts +14 -0
- package/dist/core/shelby-explorer.mjs +11 -0
- package/dist/core/types/blobs.d.ts +9 -0
- package/dist/core/utils.d.ts +8 -1
- package/dist/core/utils.mjs +3 -1
- package/dist/node/clients/ShelbyMetadataClient.mjs +2 -2
- package/dist/node/clients/ShelbyNodeClient.mjs +9 -9
- package/dist/node/clients/index.mjs +10 -10
- package/dist/node/index.d.ts +7 -5
- package/dist/node/index.mjs +37 -18
- package/package.json +1 -1
- /package/dist/{chunk-TUANYVZQ.mjs → chunk-DJJD2AXO.mjs} +0 -0
package/dist/node/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { getAptosAccountExplorerUrl, getAptosTransactionExplorerUrl } from '../core/aptos-explorer.js';
|
|
1
2
|
export { ShelbyBlob, createBlobKey } from '../core/blobs.js';
|
|
2
3
|
export { CHUNK_SIZE_PARAMS, ChunkSizeScheme, DEFAULT_CHUNKSET_SIZE_BYTES, DEFAULT_CHUNK_SIZE_BYTES, ERASURE_CODE_AND_CHUNK_MAPPING } from '../core/chunk.js';
|
|
3
4
|
export { ShelbyBlobClient } from '../core/clients/ShelbyBlobClient.js';
|
|
@@ -5,22 +6,23 @@ export { ShelbyClient, UploadOptions } from '../core/clients/ShelbyClient.js';
|
|
|
5
6
|
export { ShelbyClientConfig, ShelbyIndexerConfig, ShelbyRPCConfig } from '../core/clients/ShelbyClientConfig.js';
|
|
6
7
|
export { ShelbyRPCClient } from '../core/clients/ShelbyRPCClient.js';
|
|
7
8
|
export { BlobCommitments, BlobCommitmentsSchema, ChunksetCommitment, ChunksetCommitmentSchema, GenerateCommitmentsOptions, expectedTotalChunksets, generateCommitments } from '../core/commitments.js';
|
|
8
|
-
export { DEFAULT_PROJECT_DESCRIPTION, DEFAULT_PROJECT_NAME, NetworkToShelbyBlobIndexerBaseUrl, NetworkToShelbyRPCBaseUrl, SHELBYUSD_TOKEN_ADDRESS, SHELBYUSD_TOKEN_MODULE, SHELBYUSD_TOKEN_NAME,
|
|
9
|
+
export { DEFAULT_PROJECT_DESCRIPTION, DEFAULT_PROJECT_NAME, NetworkToShelbyBlobIndexerBaseUrl, NetworkToShelbyRPCBaseUrl, SHELBYUSD_FA_METADATA_ADDRESS, SHELBYUSD_TOKEN_ADDRESS, SHELBYUSD_TOKEN_MODULE, SHELBYUSD_TOKEN_NAME, SHELBY_DEPLOYER, TOKEN_DEPLOYER, TOKEN_OBJECT_ADDRESS } from '../core/constants.js';
|
|
9
10
|
export { C as ClayErasureCodingProvider, D as DecodeConfig, E as ErasureCodingConfig, a as ErasureCodingProvider, R as ReedSolomonErasureCodingProvider } from '../clay-codes-Ce9EmXfa.js';
|
|
10
11
|
export { DEFAULT_ERASURE_D, DEFAULT_ERASURE_K, DEFAULT_ERASURE_M, DEFAULT_ERASURE_N, ERASURE_CODE_PARAMS, ErasureCodeParams, ErasureCodingScheme, ErasureSchemeParams } from '../core/erasure/constants.js';
|
|
11
12
|
export { createDefaultErasureCodingProvider } from '../core/erasure/default.js';
|
|
12
13
|
export { BlobName, BlobNameSchema, ChunkKey, allChunksForBlob, roundSize } from '../core/layout.js';
|
|
13
14
|
export { ShelbyNetwork, isShelbyNetwork, shelbyNetworks } from '../core/networks.js';
|
|
14
15
|
export { ShelbyIndexerClient, createShelbyIndexerClient, getShelbyIndexerClient } from '../core/operations/index.js';
|
|
16
|
+
export { getShelbyAccountBlobsExplorerUrl, getShelbyAccountExplorerUrl, getShelbyBlobExplorerUrl } from '../core/shelby-explorer.js';
|
|
15
17
|
export { BlobActivity, BlobActivityType, BlobEncoding, BlobMetadata, ClayEncoding } from '../core/types/blobs.js';
|
|
16
18
|
export { StorageProviderInfo } from '../core/types/storage_providers.js';
|
|
17
|
-
export { buildRequestUrl, concatHashes, readInChunks, zeroPadBytes } from '../core/utils.js';
|
|
19
|
+
export { buildRequestUrl, concatHashes, getBlobNameSuffix, readInChunks, zeroPadBytes } from '../core/utils.js';
|
|
18
20
|
export { ShelbyMetadataClient } from './clients/ShelbyMetadataClient.js';
|
|
19
21
|
export { ShelbyNodeClient } from './clients/ShelbyNodeClient.js';
|
|
20
22
|
export { t as testUtil } from '../testUtil-BnxAchIN.js';
|
|
23
|
+
export { Order_By } from '../core/operations/generated/sdk.js';
|
|
21
24
|
import '@aptos-labs/ts-sdk';
|
|
22
|
-
import '../core/operations/generated/sdk.js';
|
|
23
|
-
import 'graphql';
|
|
24
|
-
import 'graphql-request';
|
|
25
25
|
import 'zod';
|
|
26
26
|
import '@shelby-protocol/clay-codes';
|
|
27
|
+
import 'graphql-request';
|
|
28
|
+
import 'graphql';
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,35 +1,50 @@
|
|
|
1
1
|
import "../chunk-MB7C7VQF.mjs";
|
|
2
2
|
import {
|
|
3
3
|
ShelbyMetadataClient
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CTGCK3H2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ShelbyNodeClient
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-2DD6Q5CK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
testUtil_exports
|
|
10
10
|
} from "../chunk-A4IG6GSE.mjs";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-DJJD2AXO.mjs";
|
|
12
12
|
import "../chunk-MWDW4ROU.mjs";
|
|
13
13
|
import "../chunk-MQUVYMNQ.mjs";
|
|
14
14
|
import "../chunk-ZHXCVRZX.mjs";
|
|
15
15
|
import "../chunk-RNXGC54D.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ShelbyClient
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-TPGMXZRD.mjs";
|
|
19
|
+
import "../chunk-Z7RFCADT.mjs";
|
|
19
20
|
import {
|
|
20
21
|
ShelbyRPCClient
|
|
21
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-L7H6EKII.mjs";
|
|
23
|
+
import {
|
|
24
|
+
isShelbyNetwork,
|
|
25
|
+
shelbyNetworks
|
|
26
|
+
} from "../chunk-VRLIOKWG.mjs";
|
|
22
27
|
import "../chunk-I6NG5GNL.mjs";
|
|
28
|
+
import {
|
|
29
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
30
|
+
getShelbyAccountExplorerUrl,
|
|
31
|
+
getShelbyBlobExplorerUrl
|
|
32
|
+
} from "../chunk-BDSW5PHM.mjs";
|
|
23
33
|
import {
|
|
24
34
|
ShelbyBlobClient
|
|
25
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-Y7KTNPPR.mjs";
|
|
26
36
|
import {
|
|
27
37
|
createShelbyIndexerClient,
|
|
28
38
|
getShelbyIndexerClient
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import
|
|
39
|
+
} from "../chunk-T6TVHFJO.mjs";
|
|
40
|
+
import {
|
|
41
|
+
Order_By
|
|
42
|
+
} from "../chunk-WJKSPJSS.mjs";
|
|
31
43
|
import "../chunk-RBFWGDMY.mjs";
|
|
32
|
-
import
|
|
44
|
+
import {
|
|
45
|
+
getAptosAccountExplorerUrl,
|
|
46
|
+
getAptosTransactionExplorerUrl
|
|
47
|
+
} from "../chunk-C6RQ3AEU.mjs";
|
|
33
48
|
import {
|
|
34
49
|
createBlobKey
|
|
35
50
|
} from "../chunk-OTBLZL2S.mjs";
|
|
@@ -38,26 +53,27 @@ import {
|
|
|
38
53
|
ChunksetCommitmentSchema,
|
|
39
54
|
expectedTotalChunksets,
|
|
40
55
|
generateCommitments
|
|
41
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-PCNLFNAT.mjs";
|
|
42
57
|
import {
|
|
43
58
|
buildRequestUrl,
|
|
44
59
|
concatHashes,
|
|
60
|
+
getBlobNameSuffix,
|
|
45
61
|
readInChunks,
|
|
46
62
|
zeroPadBytes
|
|
47
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-4JZO2D7T.mjs";
|
|
48
64
|
import {
|
|
49
65
|
DEFAULT_PROJECT_DESCRIPTION,
|
|
50
66
|
DEFAULT_PROJECT_NAME,
|
|
51
67
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
52
68
|
NetworkToShelbyRPCBaseUrl,
|
|
69
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
53
70
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
54
71
|
SHELBYUSD_TOKEN_MODULE,
|
|
55
72
|
SHELBYUSD_TOKEN_NAME,
|
|
56
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
57
73
|
SHELBY_DEPLOYER,
|
|
58
74
|
TOKEN_DEPLOYER,
|
|
59
75
|
TOKEN_OBJECT_ADDRESS
|
|
60
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-SEXQTDX6.mjs";
|
|
61
77
|
import {
|
|
62
78
|
BlobNameSchema,
|
|
63
79
|
ChunkKey,
|
|
@@ -84,10 +100,6 @@ import {
|
|
|
84
100
|
ERASURE_CODE_PARAMS,
|
|
85
101
|
ErasureCodingScheme
|
|
86
102
|
} from "../chunk-ZPW742E7.mjs";
|
|
87
|
-
import {
|
|
88
|
-
isShelbyNetwork,
|
|
89
|
-
shelbyNetworks
|
|
90
|
-
} from "../chunk-VRLIOKWG.mjs";
|
|
91
103
|
import "../chunk-7P6ASYW6.mjs";
|
|
92
104
|
export {
|
|
93
105
|
BlobCommitmentsSchema,
|
|
@@ -110,11 +122,12 @@ export {
|
|
|
110
122
|
ErasureCodingScheme,
|
|
111
123
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
112
124
|
NetworkToShelbyRPCBaseUrl,
|
|
125
|
+
Order_By,
|
|
113
126
|
ReedSolomonErasureCodingProvider,
|
|
127
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
114
128
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
115
129
|
SHELBYUSD_TOKEN_MODULE,
|
|
116
130
|
SHELBYUSD_TOKEN_NAME,
|
|
117
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
118
131
|
SHELBY_DEPLOYER,
|
|
119
132
|
ShelbyBlobClient,
|
|
120
133
|
ShelbyClient,
|
|
@@ -131,6 +144,12 @@ export {
|
|
|
131
144
|
createShelbyIndexerClient,
|
|
132
145
|
expectedTotalChunksets,
|
|
133
146
|
generateCommitments,
|
|
147
|
+
getAptosAccountExplorerUrl,
|
|
148
|
+
getAptosTransactionExplorerUrl,
|
|
149
|
+
getBlobNameSuffix,
|
|
150
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
151
|
+
getShelbyAccountExplorerUrl,
|
|
152
|
+
getShelbyBlobExplorerUrl,
|
|
134
153
|
getShelbyIndexerClient,
|
|
135
154
|
isShelbyNetwork,
|
|
136
155
|
readInChunks,
|
package/package.json
CHANGED
|
File without changes
|