@shelby-protocol/sdk 0.0.3 → 0.0.4
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 +3 -1
- package/dist/browser/index.mjs +50 -36
- package/dist/{chunk-USBWGA27.mjs → chunk-3QINXXV6.mjs} +8 -5
- package/dist/{chunk-PUNXDYH2.mjs → chunk-4W3FFVXZ.mjs} +7 -7
- 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-GKRHKR3J.mjs} +7 -7
- package/dist/{chunk-I7SQAWUY.mjs → chunk-MYN7KW2X.mjs} +1 -1
- package/dist/{chunk-HPVCKAN2.mjs → chunk-SEXQTDX6.mjs} +2 -2
- package/dist/{chunk-57KKLRIW.mjs → chunk-VPT45MTZ.mjs} +1 -1
- package/dist/core/aptos-explorer.d.ts +10 -0
- package/dist/core/aptos-explorer.mjs +9 -0
- package/dist/core/chunk.mjs +1 -1
- package/dist/core/clients/ShelbyBlobClient.d.ts +1 -0
- package/dist/core/clients/ShelbyBlobClient.mjs +4 -4
- package/dist/core/clients/ShelbyClient.mjs +8 -8
- package/dist/core/clients/ShelbyRPCClient.mjs +6 -6
- package/dist/core/clients/index.mjs +11 -11
- package/dist/core/commitments.mjs +1 -1
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/constants.mjs +3 -3
- package/dist/core/erasure/clay-codes.mjs +1 -1
- package/dist/core/erasure/default.mjs +1 -1
- package/dist/core/erasure/index.mjs +3 -3
- package/dist/core/index.d.ts +3 -1
- package/dist/core/index.mjs +50 -36
- package/dist/core/layout.mjs +1 -1
- package/dist/core/operations/index.mjs +2 -2
- package/dist/core/shelby-explorer.d.ts +14 -0
- package/dist/core/shelby-explorer.mjs +11 -0
- package/dist/core/types/index.mjs +1 -1
- package/dist/node/clients/ShelbyMetadataClient.mjs +2 -2
- package/dist/node/clients/ShelbyNodeClient.mjs +9 -9
- package/dist/node/clients/index.mjs +12 -12
- package/dist/node/index.d.ts +3 -1
- package/dist/node/index.mjs +56 -42
- package/package.json +3 -3
- /package/dist/{chunk-TUANYVZQ.mjs → chunk-DJJD2AXO.mjs} +0 -0
package/dist/browser/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,13 +6,14 @@ 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
19
|
export { buildRequestUrl, concatHashes, readInChunks, zeroPadBytes } from '../core/utils.js';
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,25 +1,44 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-DJJD2AXO.mjs";
|
|
2
2
|
import "../chunk-MWDW4ROU.mjs";
|
|
3
|
-
import "../chunk-MQUVYMNQ.mjs";
|
|
4
3
|
import "../chunk-ZHXCVRZX.mjs";
|
|
4
|
+
import "../chunk-MQUVYMNQ.mjs";
|
|
5
5
|
import "../chunk-RNXGC54D.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ShelbyClient
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import {
|
|
10
|
-
ShelbyRPCClient
|
|
11
|
-
} from "../chunk-PGBEBDNY.mjs";
|
|
12
|
-
import "../chunk-I6NG5GNL.mjs";
|
|
8
|
+
} from "../chunk-4W3FFVXZ.mjs";
|
|
13
9
|
import {
|
|
14
10
|
ShelbyBlobClient
|
|
15
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-3QINXXV6.mjs";
|
|
12
|
+
import "../chunk-Z7RFCADT.mjs";
|
|
13
|
+
import {
|
|
14
|
+
ShelbyRPCClient
|
|
15
|
+
} from "../chunk-GKRHKR3J.mjs";
|
|
16
16
|
import {
|
|
17
17
|
createShelbyIndexerClient,
|
|
18
18
|
getShelbyIndexerClient
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-VPT45MTZ.mjs";
|
|
20
20
|
import "../chunk-DLMDDEWF.mjs";
|
|
21
|
+
import {
|
|
22
|
+
BlobNameSchema,
|
|
23
|
+
ChunkKey,
|
|
24
|
+
allChunksForBlob,
|
|
25
|
+
roundSize
|
|
26
|
+
} from "../chunk-FIFKKWXV.mjs";
|
|
27
|
+
import {
|
|
28
|
+
isShelbyNetwork,
|
|
29
|
+
shelbyNetworks
|
|
30
|
+
} from "../chunk-VRLIOKWG.mjs";
|
|
31
|
+
import "../chunk-I6NG5GNL.mjs";
|
|
32
|
+
import {
|
|
33
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
34
|
+
getShelbyAccountExplorerUrl,
|
|
35
|
+
getShelbyBlobExplorerUrl
|
|
36
|
+
} from "../chunk-BDSW5PHM.mjs";
|
|
21
37
|
import "../chunk-RBFWGDMY.mjs";
|
|
22
|
-
import
|
|
38
|
+
import {
|
|
39
|
+
getAptosAccountExplorerUrl,
|
|
40
|
+
getAptosTransactionExplorerUrl
|
|
41
|
+
} from "../chunk-C6RQ3AEU.mjs";
|
|
23
42
|
import {
|
|
24
43
|
createBlobKey
|
|
25
44
|
} from "../chunk-OTBLZL2S.mjs";
|
|
@@ -35,25 +54,6 @@ import {
|
|
|
35
54
|
readInChunks,
|
|
36
55
|
zeroPadBytes
|
|
37
56
|
} from "../chunk-KBUWZXFA.mjs";
|
|
38
|
-
import {
|
|
39
|
-
DEFAULT_PROJECT_DESCRIPTION,
|
|
40
|
-
DEFAULT_PROJECT_NAME,
|
|
41
|
-
NetworkToShelbyBlobIndexerBaseUrl,
|
|
42
|
-
NetworkToShelbyRPCBaseUrl,
|
|
43
|
-
SHELBYUSD_TOKEN_ADDRESS,
|
|
44
|
-
SHELBYUSD_TOKEN_MODULE,
|
|
45
|
-
SHELBYUSD_TOKEN_NAME,
|
|
46
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
47
|
-
SHELBY_DEPLOYER,
|
|
48
|
-
TOKEN_DEPLOYER,
|
|
49
|
-
TOKEN_OBJECT_ADDRESS
|
|
50
|
-
} from "../chunk-HPVCKAN2.mjs";
|
|
51
|
-
import {
|
|
52
|
-
BlobNameSchema,
|
|
53
|
-
ChunkKey,
|
|
54
|
-
allChunksForBlob,
|
|
55
|
-
roundSize
|
|
56
|
-
} from "../chunk-FIFKKWXV.mjs";
|
|
57
57
|
import {
|
|
58
58
|
CHUNK_SIZE_PARAMS,
|
|
59
59
|
ChunkSizeScheme,
|
|
@@ -63,9 +63,6 @@ import {
|
|
|
63
63
|
ERASURE_CODE_AND_CHUNK_MAPPING,
|
|
64
64
|
createDefaultErasureCodingProvider
|
|
65
65
|
} from "../chunk-APML3CGJ.mjs";
|
|
66
|
-
import {
|
|
67
|
-
ReedSolomonErasureCodingProvider
|
|
68
|
-
} from "../chunk-3ZDXWPYC.mjs";
|
|
69
66
|
import {
|
|
70
67
|
DEFAULT_ERASURE_D,
|
|
71
68
|
DEFAULT_ERASURE_K,
|
|
@@ -75,9 +72,21 @@ import {
|
|
|
75
72
|
ErasureCodingScheme
|
|
76
73
|
} from "../chunk-ZPW742E7.mjs";
|
|
77
74
|
import {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
ReedSolomonErasureCodingProvider
|
|
76
|
+
} from "../chunk-3ZDXWPYC.mjs";
|
|
77
|
+
import {
|
|
78
|
+
DEFAULT_PROJECT_DESCRIPTION,
|
|
79
|
+
DEFAULT_PROJECT_NAME,
|
|
80
|
+
NetworkToShelbyBlobIndexerBaseUrl,
|
|
81
|
+
NetworkToShelbyRPCBaseUrl,
|
|
82
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
83
|
+
SHELBYUSD_TOKEN_ADDRESS,
|
|
84
|
+
SHELBYUSD_TOKEN_MODULE,
|
|
85
|
+
SHELBYUSD_TOKEN_NAME,
|
|
86
|
+
SHELBY_DEPLOYER,
|
|
87
|
+
TOKEN_DEPLOYER,
|
|
88
|
+
TOKEN_OBJECT_ADDRESS
|
|
89
|
+
} from "../chunk-SEXQTDX6.mjs";
|
|
81
90
|
import "../chunk-7P6ASYW6.mjs";
|
|
82
91
|
export {
|
|
83
92
|
BlobCommitmentsSchema,
|
|
@@ -101,10 +110,10 @@ export {
|
|
|
101
110
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
102
111
|
NetworkToShelbyRPCBaseUrl,
|
|
103
112
|
ReedSolomonErasureCodingProvider,
|
|
113
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
104
114
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
105
115
|
SHELBYUSD_TOKEN_MODULE,
|
|
106
116
|
SHELBYUSD_TOKEN_NAME,
|
|
107
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
108
117
|
SHELBY_DEPLOYER,
|
|
109
118
|
ShelbyBlobClient,
|
|
110
119
|
ShelbyClient,
|
|
@@ -119,6 +128,11 @@ export {
|
|
|
119
128
|
createShelbyIndexerClient,
|
|
120
129
|
expectedTotalChunksets,
|
|
121
130
|
generateCommitments,
|
|
131
|
+
getAptosAccountExplorerUrl,
|
|
132
|
+
getAptosTransactionExplorerUrl,
|
|
133
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
134
|
+
getShelbyAccountExplorerUrl,
|
|
135
|
+
getShelbyBlobExplorerUrl,
|
|
122
136
|
getShelbyIndexerClient,
|
|
123
137
|
isShelbyNetwork,
|
|
124
138
|
readInChunks,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getShelbyIndexerClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VPT45MTZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAptosConfig
|
|
6
6
|
} from "./chunk-RBFWGDMY.mjs";
|
|
@@ -10,9 +10,6 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
expectedTotalChunksets
|
|
12
12
|
} from "./chunk-LTV26KU4.mjs";
|
|
13
|
-
import {
|
|
14
|
-
SHELBY_DEPLOYER
|
|
15
|
-
} from "./chunk-HPVCKAN2.mjs";
|
|
16
13
|
import {
|
|
17
14
|
DEFAULT_CHUNKSET_SIZE_BYTES,
|
|
18
15
|
ERASURE_CODE_AND_CHUNK_MAPPING
|
|
@@ -20,6 +17,9 @@ import {
|
|
|
20
17
|
import {
|
|
21
18
|
ERASURE_CODE_PARAMS
|
|
22
19
|
} from "./chunk-ZPW742E7.mjs";
|
|
20
|
+
import {
|
|
21
|
+
SHELBY_DEPLOYER
|
|
22
|
+
} from "./chunk-SEXQTDX6.mjs";
|
|
23
23
|
|
|
24
24
|
// src/core/clients/ShelbyBlobClient.ts
|
|
25
25
|
import {
|
|
@@ -150,7 +150,10 @@ var ShelbyBlobClient = class _ShelbyBlobClient {
|
|
|
150
150
|
*/
|
|
151
151
|
getAccountBlobs(params) {
|
|
152
152
|
return this.getBlobs({
|
|
153
|
-
where: {
|
|
153
|
+
where: {
|
|
154
|
+
...params.where,
|
|
155
|
+
owner: { _eq: AccountAddress.from(params.account).toString() }
|
|
156
|
+
},
|
|
154
157
|
pagination: params.pagination,
|
|
155
158
|
orderBy: params.orderBy
|
|
156
159
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ShelbyRPCClient
|
|
3
|
-
} from "./chunk-PGBEBDNY.mjs";
|
|
4
1
|
import {
|
|
5
2
|
ShelbyBlobClient
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3QINXXV6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ShelbyRPCClient
|
|
6
|
+
} from "./chunk-GKRHKR3J.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getAptosConfig
|
|
9
9
|
} from "./chunk-RBFWGDMY.mjs";
|
|
10
10
|
import {
|
|
11
11
|
generateCommitments
|
|
12
12
|
} from "./chunk-LTV26KU4.mjs";
|
|
13
|
-
import {
|
|
14
|
-
NetworkToShelbyRPCBaseUrl
|
|
15
|
-
} from "./chunk-HPVCKAN2.mjs";
|
|
16
13
|
import {
|
|
17
14
|
ClayErasureCodingProvider
|
|
18
15
|
} from "./chunk-APML3CGJ.mjs";
|
|
16
|
+
import {
|
|
17
|
+
NetworkToShelbyRPCBaseUrl
|
|
18
|
+
} from "./chunk-SEXQTDX6.mjs";
|
|
19
19
|
|
|
20
20
|
// src/core/clients/ShelbyClient.ts
|
|
21
21
|
import {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// src/core/shelby-explorer.ts
|
|
2
|
+
import { Network } from "@aptos-labs/ts-sdk";
|
|
3
|
+
function getShelbyExplorerBaseUrl(network) {
|
|
4
|
+
const normalizedNetwork = network.toLowerCase();
|
|
5
|
+
switch (normalizedNetwork) {
|
|
6
|
+
case Network.MAINNET.toLowerCase():
|
|
7
|
+
return "https://explorer.shelby.xyz/mainnet";
|
|
8
|
+
case Network.TESTNET.toLowerCase():
|
|
9
|
+
return "https://explorer.shelby.xyz/testnet";
|
|
10
|
+
case Network.DEVNET.toLowerCase():
|
|
11
|
+
return "https://explorer.shelby.xyz/devnet";
|
|
12
|
+
case Network.LOCAL.toLowerCase():
|
|
13
|
+
return "https://explorer.shelby.xyz/local";
|
|
14
|
+
case Network.SHELBYNET.toLowerCase():
|
|
15
|
+
return "https://explorer.shelby.xyz/shelbynet";
|
|
16
|
+
default:
|
|
17
|
+
return `https://explorer.shelby.xyz/${normalizedNetwork}`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function getShelbyAccountBlobsExplorerUrl(network, accountAddress) {
|
|
21
|
+
const baseUrl = getShelbyExplorerBaseUrl(network);
|
|
22
|
+
return `${baseUrl}/account/${accountAddress}/blobs`;
|
|
23
|
+
}
|
|
24
|
+
function getShelbyBlobExplorerUrl(network, accountAddress, blobName) {
|
|
25
|
+
const baseUrl = getShelbyExplorerBaseUrl(network);
|
|
26
|
+
return `${baseUrl}/account/${accountAddress}/blob/${encodeURIComponent(blobName)}`;
|
|
27
|
+
}
|
|
28
|
+
function getShelbyAccountExplorerUrl(network, accountAddress) {
|
|
29
|
+
const baseUrl = getShelbyExplorerBaseUrl(network);
|
|
30
|
+
return `${baseUrl}/account/${accountAddress}`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
35
|
+
getShelbyBlobExplorerUrl,
|
|
36
|
+
getShelbyAccountExplorerUrl
|
|
37
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// src/core/aptos-explorer.ts
|
|
2
|
+
import { Network } from "@aptos-labs/ts-sdk";
|
|
3
|
+
function getAptosExplorerBaseUrl(network) {
|
|
4
|
+
const normalizedNetwork = network.toLowerCase();
|
|
5
|
+
switch (normalizedNetwork) {
|
|
6
|
+
case Network.MAINNET.toLowerCase():
|
|
7
|
+
return "https://explorer.aptoslabs.com";
|
|
8
|
+
case Network.TESTNET.toLowerCase():
|
|
9
|
+
return "https://explorer.aptoslabs.com";
|
|
10
|
+
case Network.DEVNET.toLowerCase():
|
|
11
|
+
return "https://explorer.aptoslabs.com";
|
|
12
|
+
case Network.LOCAL.toLowerCase():
|
|
13
|
+
return "https://explorer.aptoslabs.com";
|
|
14
|
+
case Network.SHELBYNET.toLowerCase():
|
|
15
|
+
return "https://explorer.aptoslabs.com";
|
|
16
|
+
default:
|
|
17
|
+
return "https://explorer.aptoslabs.com";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function getAptosExplorerNetworkParam(network) {
|
|
21
|
+
const normalizedNetwork = network.toLowerCase();
|
|
22
|
+
switch (normalizedNetwork) {
|
|
23
|
+
case Network.MAINNET.toLowerCase():
|
|
24
|
+
return "mainnet";
|
|
25
|
+
case Network.TESTNET.toLowerCase():
|
|
26
|
+
return "testnet";
|
|
27
|
+
case Network.DEVNET.toLowerCase():
|
|
28
|
+
return "devnet";
|
|
29
|
+
case Network.LOCAL.toLowerCase():
|
|
30
|
+
return "local";
|
|
31
|
+
case Network.SHELBYNET.toLowerCase():
|
|
32
|
+
return "shelbynet";
|
|
33
|
+
default:
|
|
34
|
+
return normalizedNetwork;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function getAptosTransactionExplorerUrl(network, transactionHash) {
|
|
38
|
+
const baseUrl = getAptosExplorerBaseUrl(network);
|
|
39
|
+
const networkParam = getAptosExplorerNetworkParam(network);
|
|
40
|
+
return `${baseUrl}/txn/${transactionHash}?network=${networkParam}`;
|
|
41
|
+
}
|
|
42
|
+
function getAptosAccountExplorerUrl(network, accountAddress) {
|
|
43
|
+
const baseUrl = getAptosExplorerBaseUrl(network);
|
|
44
|
+
const networkParam = getAptosExplorerNetworkParam(network);
|
|
45
|
+
return `${baseUrl}/account/${accountAddress}?network=${networkParam}`;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
getAptosTransactionExplorerUrl,
|
|
50
|
+
getAptosAccountExplorerUrl
|
|
51
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getShelbyIndexerClient
|
|
3
|
+
} from "./chunk-VPT45MTZ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
BlobNameSchema
|
|
6
|
+
} from "./chunk-FIFKKWXV.mjs";
|
|
1
7
|
import {
|
|
2
8
|
sleep
|
|
3
9
|
} from "./chunk-I6NG5GNL.mjs";
|
|
4
|
-
import {
|
|
5
|
-
getShelbyIndexerClient
|
|
6
|
-
} from "./chunk-57KKLRIW.mjs";
|
|
7
10
|
import {
|
|
8
11
|
buildRequestUrl
|
|
9
12
|
} from "./chunk-KBUWZXFA.mjs";
|
|
10
13
|
import {
|
|
11
14
|
NetworkToShelbyRPCBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
BlobNameSchema
|
|
15
|
-
} from "./chunk-FIFKKWXV.mjs";
|
|
15
|
+
} from "./chunk-SEXQTDX6.mjs";
|
|
16
16
|
|
|
17
17
|
// src/core/clients/ShelbyRPCClient.ts
|
|
18
18
|
import { AccountAddress } from "@aptos-labs/ts-sdk";
|
|
@@ -24,7 +24,7 @@ var TOKEN_OBJECT_ADDRESS = "0x249f5c642a63885ff88a5113b3ba0079840af5a1357706f8c7
|
|
|
24
24
|
var SHELBYUSD_TOKEN_ADDRESS = TOKEN_OBJECT_ADDRESS;
|
|
25
25
|
var SHELBYUSD_TOKEN_MODULE = "shelby_usd";
|
|
26
26
|
var SHELBYUSD_TOKEN_NAME = "ShelbyUSD";
|
|
27
|
-
var
|
|
27
|
+
var SHELBYUSD_FA_METADATA_ADDRESS = "0x1b18363a9f1fe5e6ebf247daba5cc1c18052bb232efdc4c50f556053922d98e1";
|
|
28
28
|
|
|
29
29
|
export {
|
|
30
30
|
DEFAULT_PROJECT_NAME,
|
|
@@ -37,5 +37,5 @@ export {
|
|
|
37
37
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
38
38
|
SHELBYUSD_TOKEN_MODULE,
|
|
39
39
|
SHELBYUSD_TOKEN_NAME,
|
|
40
|
-
|
|
40
|
+
SHELBYUSD_FA_METADATA_ADDRESS
|
|
41
41
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate an Aptos explorer URL for a transaction
|
|
3
|
+
*/
|
|
4
|
+
declare function getAptosTransactionExplorerUrl(network: string, transactionHash: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* Generate an Aptos explorer URL for an account
|
|
7
|
+
*/
|
|
8
|
+
declare function getAptosAccountExplorerUrl(network: string, accountAddress: string): string;
|
|
9
|
+
|
|
10
|
+
export { getAptosAccountExplorerUrl, getAptosTransactionExplorerUrl };
|
package/dist/core/chunk.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
DEFAULT_CHUNK_SIZE_BYTES,
|
|
6
6
|
ERASURE_CODE_AND_CHUNK_MAPPING
|
|
7
7
|
} from "../chunk-APML3CGJ.mjs";
|
|
8
|
-
import "../chunk-3ZDXWPYC.mjs";
|
|
9
8
|
import "../chunk-ZPW742E7.mjs";
|
|
9
|
+
import "../chunk-3ZDXWPYC.mjs";
|
|
10
10
|
import "../chunk-7P6ASYW6.mjs";
|
|
11
11
|
export {
|
|
12
12
|
CHUNK_SIZE_PARAMS,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyBlobClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-3QINXXV6.mjs";
|
|
4
|
+
import "../../chunk-VPT45MTZ.mjs";
|
|
5
5
|
import "../../chunk-DLMDDEWF.mjs";
|
|
6
6
|
import "../../chunk-RBFWGDMY.mjs";
|
|
7
7
|
import "../../chunk-OTBLZL2S.mjs";
|
|
8
8
|
import "../../chunk-LTV26KU4.mjs";
|
|
9
9
|
import "../../chunk-KBUWZXFA.mjs";
|
|
10
|
-
import "../../chunk-HPVCKAN2.mjs";
|
|
11
10
|
import "../../chunk-APML3CGJ.mjs";
|
|
12
|
-
import "../../chunk-3ZDXWPYC.mjs";
|
|
13
11
|
import "../../chunk-ZPW742E7.mjs";
|
|
12
|
+
import "../../chunk-3ZDXWPYC.mjs";
|
|
13
|
+
import "../../chunk-SEXQTDX6.mjs";
|
|
14
14
|
import "../../chunk-7P6ASYW6.mjs";
|
|
15
15
|
export {
|
|
16
16
|
ShelbyBlobClient
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-57KKLRIW.mjs";
|
|
3
|
+
} from "../../chunk-4W3FFVXZ.mjs";
|
|
4
|
+
import "../../chunk-3QINXXV6.mjs";
|
|
5
|
+
import "../../chunk-GKRHKR3J.mjs";
|
|
6
|
+
import "../../chunk-VPT45MTZ.mjs";
|
|
8
7
|
import "../../chunk-DLMDDEWF.mjs";
|
|
8
|
+
import "../../chunk-FIFKKWXV.mjs";
|
|
9
|
+
import "../../chunk-I6NG5GNL.mjs";
|
|
9
10
|
import "../../chunk-RBFWGDMY.mjs";
|
|
10
11
|
import "../../chunk-OTBLZL2S.mjs";
|
|
11
12
|
import "../../chunk-LTV26KU4.mjs";
|
|
12
13
|
import "../../chunk-KBUWZXFA.mjs";
|
|
13
|
-
import "../../chunk-HPVCKAN2.mjs";
|
|
14
|
-
import "../../chunk-FIFKKWXV.mjs";
|
|
15
14
|
import "../../chunk-APML3CGJ.mjs";
|
|
16
|
-
import "../../chunk-3ZDXWPYC.mjs";
|
|
17
15
|
import "../../chunk-ZPW742E7.mjs";
|
|
16
|
+
import "../../chunk-3ZDXWPYC.mjs";
|
|
17
|
+
import "../../chunk-SEXQTDX6.mjs";
|
|
18
18
|
import "../../chunk-7P6ASYW6.mjs";
|
|
19
19
|
export {
|
|
20
20
|
ShelbyClient
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyRPCClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-57KKLRIW.mjs";
|
|
3
|
+
} from "../../chunk-GKRHKR3J.mjs";
|
|
4
|
+
import "../../chunk-VPT45MTZ.mjs";
|
|
6
5
|
import "../../chunk-DLMDDEWF.mjs";
|
|
6
|
+
import "../../chunk-FIFKKWXV.mjs";
|
|
7
|
+
import "../../chunk-I6NG5GNL.mjs";
|
|
7
8
|
import "../../chunk-RBFWGDMY.mjs";
|
|
8
9
|
import "../../chunk-KBUWZXFA.mjs";
|
|
9
|
-
import "../../chunk-HPVCKAN2.mjs";
|
|
10
|
-
import "../../chunk-FIFKKWXV.mjs";
|
|
11
10
|
import "../../chunk-APML3CGJ.mjs";
|
|
12
|
-
import "../../chunk-3ZDXWPYC.mjs";
|
|
13
11
|
import "../../chunk-ZPW742E7.mjs";
|
|
12
|
+
import "../../chunk-3ZDXWPYC.mjs";
|
|
13
|
+
import "../../chunk-SEXQTDX6.mjs";
|
|
14
14
|
import "../../chunk-7P6ASYW6.mjs";
|
|
15
15
|
export {
|
|
16
16
|
ShelbyRPCClient
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import "../../chunk-RNXGC54D.mjs";
|
|
2
2
|
import {
|
|
3
3
|
ShelbyClient
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import {
|
|
6
|
-
ShelbyRPCClient
|
|
7
|
-
} from "../../chunk-PGBEBDNY.mjs";
|
|
8
|
-
import "../../chunk-I6NG5GNL.mjs";
|
|
4
|
+
} from "../../chunk-4W3FFVXZ.mjs";
|
|
9
5
|
import {
|
|
10
6
|
ShelbyBlobClient
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-3QINXXV6.mjs";
|
|
8
|
+
import "../../chunk-Z7RFCADT.mjs";
|
|
9
|
+
import {
|
|
10
|
+
ShelbyRPCClient
|
|
11
|
+
} from "../../chunk-GKRHKR3J.mjs";
|
|
12
|
+
import "../../chunk-VPT45MTZ.mjs";
|
|
13
13
|
import "../../chunk-DLMDDEWF.mjs";
|
|
14
|
+
import "../../chunk-FIFKKWXV.mjs";
|
|
15
|
+
import "../../chunk-I6NG5GNL.mjs";
|
|
14
16
|
import "../../chunk-RBFWGDMY.mjs";
|
|
15
|
-
import "../../chunk-Z7RFCADT.mjs";
|
|
16
17
|
import "../../chunk-OTBLZL2S.mjs";
|
|
17
18
|
import "../../chunk-LTV26KU4.mjs";
|
|
18
19
|
import "../../chunk-KBUWZXFA.mjs";
|
|
19
|
-
import "../../chunk-HPVCKAN2.mjs";
|
|
20
|
-
import "../../chunk-FIFKKWXV.mjs";
|
|
21
20
|
import "../../chunk-APML3CGJ.mjs";
|
|
22
|
-
import "../../chunk-3ZDXWPYC.mjs";
|
|
23
21
|
import "../../chunk-ZPW742E7.mjs";
|
|
22
|
+
import "../../chunk-3ZDXWPYC.mjs";
|
|
23
|
+
import "../../chunk-SEXQTDX6.mjs";
|
|
24
24
|
import "../../chunk-7P6ASYW6.mjs";
|
|
25
25
|
export {
|
|
26
26
|
ShelbyBlobClient,
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "../chunk-LTV26KU4.mjs";
|
|
7
7
|
import "../chunk-KBUWZXFA.mjs";
|
|
8
8
|
import "../chunk-APML3CGJ.mjs";
|
|
9
|
-
import "../chunk-3ZDXWPYC.mjs";
|
|
10
9
|
import "../chunk-ZPW742E7.mjs";
|
|
10
|
+
import "../chunk-3ZDXWPYC.mjs";
|
|
11
11
|
import "../chunk-7P6ASYW6.mjs";
|
|
12
12
|
export {
|
|
13
13
|
BlobCommitmentsSchema,
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -25,6 +25,6 @@ declare const TOKEN_OBJECT_ADDRESS = "0x249f5c642a63885ff88a5113b3ba0079840af5a1
|
|
|
25
25
|
declare const SHELBYUSD_TOKEN_ADDRESS = "0x249f5c642a63885ff88a5113b3ba0079840af5a1357706f8c7f3bfc5dd12511f";
|
|
26
26
|
declare const SHELBYUSD_TOKEN_MODULE = "shelby_usd";
|
|
27
27
|
declare const SHELBYUSD_TOKEN_NAME = "ShelbyUSD";
|
|
28
|
-
declare const
|
|
28
|
+
declare const SHELBYUSD_FA_METADATA_ADDRESS = "0x1b18363a9f1fe5e6ebf247daba5cc1c18052bb232efdc4c50f556053922d98e1";
|
|
29
29
|
|
|
30
|
-
export { DEFAULT_PROJECT_DESCRIPTION, DEFAULT_PROJECT_NAME, NetworkToShelbyBlobIndexerBaseUrl, NetworkToShelbyRPCBaseUrl, SHELBYUSD_TOKEN_ADDRESS, SHELBYUSD_TOKEN_MODULE, SHELBYUSD_TOKEN_NAME,
|
|
30
|
+
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 };
|
package/dist/core/constants.mjs
CHANGED
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
DEFAULT_PROJECT_NAME,
|
|
4
4
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
5
5
|
NetworkToShelbyRPCBaseUrl,
|
|
6
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
6
7
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
7
8
|
SHELBYUSD_TOKEN_MODULE,
|
|
8
9
|
SHELBYUSD_TOKEN_NAME,
|
|
9
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
10
10
|
SHELBY_DEPLOYER,
|
|
11
11
|
TOKEN_DEPLOYER,
|
|
12
12
|
TOKEN_OBJECT_ADDRESS
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-SEXQTDX6.mjs";
|
|
14
14
|
import "../chunk-7P6ASYW6.mjs";
|
|
15
15
|
export {
|
|
16
16
|
DEFAULT_PROJECT_DESCRIPTION,
|
|
17
17
|
DEFAULT_PROJECT_NAME,
|
|
18
18
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
19
19
|
NetworkToShelbyRPCBaseUrl,
|
|
20
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
20
21
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
21
22
|
SHELBYUSD_TOKEN_MODULE,
|
|
22
23
|
SHELBYUSD_TOKEN_NAME,
|
|
23
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
24
24
|
SHELBY_DEPLOYER,
|
|
25
25
|
TOKEN_DEPLOYER,
|
|
26
26
|
TOKEN_OBJECT_ADDRESS
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDefaultErasureCodingProvider
|
|
3
3
|
} from "../../chunk-APML3CGJ.mjs";
|
|
4
|
-
import "../../chunk-3ZDXWPYC.mjs";
|
|
5
4
|
import "../../chunk-ZPW742E7.mjs";
|
|
5
|
+
import "../../chunk-3ZDXWPYC.mjs";
|
|
6
6
|
import "../../chunk-7P6ASYW6.mjs";
|
|
7
7
|
export {
|
|
8
8
|
createDefaultErasureCodingProvider
|
|
@@ -2,9 +2,6 @@ import {
|
|
|
2
2
|
ClayErasureCodingProvider,
|
|
3
3
|
createDefaultErasureCodingProvider
|
|
4
4
|
} from "../../chunk-APML3CGJ.mjs";
|
|
5
|
-
import {
|
|
6
|
-
ReedSolomonErasureCodingProvider
|
|
7
|
-
} from "../../chunk-3ZDXWPYC.mjs";
|
|
8
5
|
import {
|
|
9
6
|
DEFAULT_ERASURE_D,
|
|
10
7
|
DEFAULT_ERASURE_K,
|
|
@@ -13,6 +10,9 @@ import {
|
|
|
13
10
|
ERASURE_CODE_PARAMS,
|
|
14
11
|
ErasureCodingScheme
|
|
15
12
|
} from "../../chunk-ZPW742E7.mjs";
|
|
13
|
+
import {
|
|
14
|
+
ReedSolomonErasureCodingProvider
|
|
15
|
+
} from "../../chunk-3ZDXWPYC.mjs";
|
|
16
16
|
import "../../chunk-7P6ASYW6.mjs";
|
|
17
17
|
export {
|
|
18
18
|
ClayErasureCodingProvider,
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { getAptosAccountExplorerUrl, getAptosTransactionExplorerUrl } from './aptos-explorer.js';
|
|
1
2
|
export { ShelbyBlob, createBlobKey } from './blobs.js';
|
|
2
3
|
export { CHUNK_SIZE_PARAMS, ChunkSizeScheme, DEFAULT_CHUNKSET_SIZE_BYTES, DEFAULT_CHUNK_SIZE_BYTES, ERASURE_CODE_AND_CHUNK_MAPPING } from './chunk.js';
|
|
3
4
|
export { ShelbyBlobClient } from './clients/ShelbyBlobClient.js';
|
|
@@ -5,13 +6,14 @@ export { ShelbyClient, UploadOptions } from './clients/ShelbyClient.js';
|
|
|
5
6
|
export { ShelbyClientConfig, ShelbyIndexerConfig, ShelbyRPCConfig } from './clients/ShelbyClientConfig.js';
|
|
6
7
|
export { ShelbyRPCClient } from './clients/ShelbyRPCClient.js';
|
|
7
8
|
export { BlobCommitments, BlobCommitmentsSchema, ChunksetCommitment, ChunksetCommitmentSchema, GenerateCommitmentsOptions, expectedTotalChunksets, generateCommitments } from './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 './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 './erasure/constants.js';
|
|
11
12
|
export { createDefaultErasureCodingProvider } from './erasure/default.js';
|
|
12
13
|
export { BlobName, BlobNameSchema, ChunkKey, allChunksForBlob, roundSize } from './layout.js';
|
|
13
14
|
export { ShelbyNetwork, isShelbyNetwork, shelbyNetworks } from './networks.js';
|
|
14
15
|
export { ShelbyIndexerClient, createShelbyIndexerClient, getShelbyIndexerClient } from './operations/index.js';
|
|
16
|
+
export { getShelbyAccountBlobsExplorerUrl, getShelbyAccountExplorerUrl, getShelbyBlobExplorerUrl } from './shelby-explorer.js';
|
|
15
17
|
export { BlobActivity, BlobActivityType, BlobEncoding, BlobMetadata, ClayEncoding } from './types/blobs.js';
|
|
16
18
|
export { StorageProviderInfo } from './types/storage_providers.js';
|
|
17
19
|
export { buildRequestUrl, concatHashes, readInChunks, zeroPadBytes } from './utils.js';
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,25 +1,44 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-DJJD2AXO.mjs";
|
|
2
2
|
import "../chunk-MWDW4ROU.mjs";
|
|
3
|
-
import "../chunk-MQUVYMNQ.mjs";
|
|
4
3
|
import "../chunk-ZHXCVRZX.mjs";
|
|
4
|
+
import "../chunk-MQUVYMNQ.mjs";
|
|
5
5
|
import "../chunk-RNXGC54D.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ShelbyClient
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import {
|
|
10
|
-
ShelbyRPCClient
|
|
11
|
-
} from "../chunk-PGBEBDNY.mjs";
|
|
12
|
-
import "../chunk-I6NG5GNL.mjs";
|
|
8
|
+
} from "../chunk-4W3FFVXZ.mjs";
|
|
13
9
|
import {
|
|
14
10
|
ShelbyBlobClient
|
|
15
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-3QINXXV6.mjs";
|
|
12
|
+
import "../chunk-Z7RFCADT.mjs";
|
|
13
|
+
import {
|
|
14
|
+
ShelbyRPCClient
|
|
15
|
+
} from "../chunk-GKRHKR3J.mjs";
|
|
16
16
|
import {
|
|
17
17
|
createShelbyIndexerClient,
|
|
18
18
|
getShelbyIndexerClient
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-VPT45MTZ.mjs";
|
|
20
20
|
import "../chunk-DLMDDEWF.mjs";
|
|
21
|
+
import {
|
|
22
|
+
BlobNameSchema,
|
|
23
|
+
ChunkKey,
|
|
24
|
+
allChunksForBlob,
|
|
25
|
+
roundSize
|
|
26
|
+
} from "../chunk-FIFKKWXV.mjs";
|
|
27
|
+
import {
|
|
28
|
+
isShelbyNetwork,
|
|
29
|
+
shelbyNetworks
|
|
30
|
+
} from "../chunk-VRLIOKWG.mjs";
|
|
31
|
+
import "../chunk-I6NG5GNL.mjs";
|
|
32
|
+
import {
|
|
33
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
34
|
+
getShelbyAccountExplorerUrl,
|
|
35
|
+
getShelbyBlobExplorerUrl
|
|
36
|
+
} from "../chunk-BDSW5PHM.mjs";
|
|
21
37
|
import "../chunk-RBFWGDMY.mjs";
|
|
22
|
-
import
|
|
38
|
+
import {
|
|
39
|
+
getAptosAccountExplorerUrl,
|
|
40
|
+
getAptosTransactionExplorerUrl
|
|
41
|
+
} from "../chunk-C6RQ3AEU.mjs";
|
|
23
42
|
import {
|
|
24
43
|
createBlobKey
|
|
25
44
|
} from "../chunk-OTBLZL2S.mjs";
|
|
@@ -35,25 +54,6 @@ import {
|
|
|
35
54
|
readInChunks,
|
|
36
55
|
zeroPadBytes
|
|
37
56
|
} from "../chunk-KBUWZXFA.mjs";
|
|
38
|
-
import {
|
|
39
|
-
DEFAULT_PROJECT_DESCRIPTION,
|
|
40
|
-
DEFAULT_PROJECT_NAME,
|
|
41
|
-
NetworkToShelbyBlobIndexerBaseUrl,
|
|
42
|
-
NetworkToShelbyRPCBaseUrl,
|
|
43
|
-
SHELBYUSD_TOKEN_ADDRESS,
|
|
44
|
-
SHELBYUSD_TOKEN_MODULE,
|
|
45
|
-
SHELBYUSD_TOKEN_NAME,
|
|
46
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
47
|
-
SHELBY_DEPLOYER,
|
|
48
|
-
TOKEN_DEPLOYER,
|
|
49
|
-
TOKEN_OBJECT_ADDRESS
|
|
50
|
-
} from "../chunk-HPVCKAN2.mjs";
|
|
51
|
-
import {
|
|
52
|
-
BlobNameSchema,
|
|
53
|
-
ChunkKey,
|
|
54
|
-
allChunksForBlob,
|
|
55
|
-
roundSize
|
|
56
|
-
} from "../chunk-FIFKKWXV.mjs";
|
|
57
57
|
import {
|
|
58
58
|
CHUNK_SIZE_PARAMS,
|
|
59
59
|
ChunkSizeScheme,
|
|
@@ -63,9 +63,6 @@ import {
|
|
|
63
63
|
ERASURE_CODE_AND_CHUNK_MAPPING,
|
|
64
64
|
createDefaultErasureCodingProvider
|
|
65
65
|
} from "../chunk-APML3CGJ.mjs";
|
|
66
|
-
import {
|
|
67
|
-
ReedSolomonErasureCodingProvider
|
|
68
|
-
} from "../chunk-3ZDXWPYC.mjs";
|
|
69
66
|
import {
|
|
70
67
|
DEFAULT_ERASURE_D,
|
|
71
68
|
DEFAULT_ERASURE_K,
|
|
@@ -75,9 +72,21 @@ import {
|
|
|
75
72
|
ErasureCodingScheme
|
|
76
73
|
} from "../chunk-ZPW742E7.mjs";
|
|
77
74
|
import {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
ReedSolomonErasureCodingProvider
|
|
76
|
+
} from "../chunk-3ZDXWPYC.mjs";
|
|
77
|
+
import {
|
|
78
|
+
DEFAULT_PROJECT_DESCRIPTION,
|
|
79
|
+
DEFAULT_PROJECT_NAME,
|
|
80
|
+
NetworkToShelbyBlobIndexerBaseUrl,
|
|
81
|
+
NetworkToShelbyRPCBaseUrl,
|
|
82
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
83
|
+
SHELBYUSD_TOKEN_ADDRESS,
|
|
84
|
+
SHELBYUSD_TOKEN_MODULE,
|
|
85
|
+
SHELBYUSD_TOKEN_NAME,
|
|
86
|
+
SHELBY_DEPLOYER,
|
|
87
|
+
TOKEN_DEPLOYER,
|
|
88
|
+
TOKEN_OBJECT_ADDRESS
|
|
89
|
+
} from "../chunk-SEXQTDX6.mjs";
|
|
81
90
|
import "../chunk-7P6ASYW6.mjs";
|
|
82
91
|
export {
|
|
83
92
|
BlobCommitmentsSchema,
|
|
@@ -101,10 +110,10 @@ export {
|
|
|
101
110
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
102
111
|
NetworkToShelbyRPCBaseUrl,
|
|
103
112
|
ReedSolomonErasureCodingProvider,
|
|
113
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
104
114
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
105
115
|
SHELBYUSD_TOKEN_MODULE,
|
|
106
116
|
SHELBYUSD_TOKEN_NAME,
|
|
107
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
108
117
|
SHELBY_DEPLOYER,
|
|
109
118
|
ShelbyBlobClient,
|
|
110
119
|
ShelbyClient,
|
|
@@ -119,6 +128,11 @@ export {
|
|
|
119
128
|
createShelbyIndexerClient,
|
|
120
129
|
expectedTotalChunksets,
|
|
121
130
|
generateCommitments,
|
|
131
|
+
getAptosAccountExplorerUrl,
|
|
132
|
+
getAptosTransactionExplorerUrl,
|
|
133
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
134
|
+
getShelbyAccountExplorerUrl,
|
|
135
|
+
getShelbyBlobExplorerUrl,
|
|
122
136
|
getShelbyIndexerClient,
|
|
123
137
|
isShelbyNetwork,
|
|
124
138
|
readInChunks,
|
package/dist/core/layout.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createShelbyIndexerClient,
|
|
3
3
|
getShelbyIndexerClient
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-VPT45MTZ.mjs";
|
|
5
5
|
import "../../chunk-DLMDDEWF.mjs";
|
|
6
6
|
import "../../chunk-RBFWGDMY.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-SEXQTDX6.mjs";
|
|
8
8
|
import "../../chunk-7P6ASYW6.mjs";
|
|
9
9
|
export {
|
|
10
10
|
createShelbyIndexerClient,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate a Shelby explorer URL for an account's blobs
|
|
3
|
+
*/
|
|
4
|
+
declare function getShelbyAccountBlobsExplorerUrl(network: string, accountAddress: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* Generate a Shelby explorer URL for a specific blob
|
|
7
|
+
*/
|
|
8
|
+
declare function getShelbyBlobExplorerUrl(network: string, accountAddress: string, blobName: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Generate a Shelby explorer URL for an account
|
|
11
|
+
*/
|
|
12
|
+
declare function getShelbyAccountExplorerUrl(network: string, accountAddress: string): string;
|
|
13
|
+
|
|
14
|
+
export { getShelbyAccountBlobsExplorerUrl, getShelbyAccountExplorerUrl, getShelbyBlobExplorerUrl };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
3
|
+
getShelbyAccountExplorerUrl,
|
|
4
|
+
getShelbyBlobExplorerUrl
|
|
5
|
+
} from "../chunk-BDSW5PHM.mjs";
|
|
6
|
+
import "../chunk-7P6ASYW6.mjs";
|
|
7
|
+
export {
|
|
8
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
9
|
+
getShelbyAccountExplorerUrl,
|
|
10
|
+
getShelbyBlobExplorerUrl
|
|
11
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyMetadataClient
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-CTGCK3H2.mjs";
|
|
4
4
|
import "../../chunk-RBFWGDMY.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-SEXQTDX6.mjs";
|
|
6
6
|
import "../../chunk-7P6ASYW6.mjs";
|
|
7
7
|
export {
|
|
8
8
|
ShelbyMetadataClient
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyNodeClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-57KKLRIW.mjs";
|
|
3
|
+
} from "../../chunk-MYN7KW2X.mjs";
|
|
4
|
+
import "../../chunk-4W3FFVXZ.mjs";
|
|
5
|
+
import "../../chunk-3QINXXV6.mjs";
|
|
6
|
+
import "../../chunk-GKRHKR3J.mjs";
|
|
7
|
+
import "../../chunk-VPT45MTZ.mjs";
|
|
9
8
|
import "../../chunk-DLMDDEWF.mjs";
|
|
9
|
+
import "../../chunk-FIFKKWXV.mjs";
|
|
10
|
+
import "../../chunk-I6NG5GNL.mjs";
|
|
10
11
|
import "../../chunk-RBFWGDMY.mjs";
|
|
11
12
|
import "../../chunk-OTBLZL2S.mjs";
|
|
12
13
|
import "../../chunk-LTV26KU4.mjs";
|
|
13
14
|
import "../../chunk-KBUWZXFA.mjs";
|
|
14
|
-
import "../../chunk-HPVCKAN2.mjs";
|
|
15
|
-
import "../../chunk-FIFKKWXV.mjs";
|
|
16
15
|
import "../../chunk-APML3CGJ.mjs";
|
|
17
|
-
import "../../chunk-3ZDXWPYC.mjs";
|
|
18
16
|
import "../../chunk-ZPW742E7.mjs";
|
|
17
|
+
import "../../chunk-3ZDXWPYC.mjs";
|
|
18
|
+
import "../../chunk-SEXQTDX6.mjs";
|
|
19
19
|
import "../../chunk-7P6ASYW6.mjs";
|
|
20
20
|
export {
|
|
21
21
|
ShelbyNodeClient
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import "../../chunk-MB7C7VQF.mjs";
|
|
2
|
-
import {
|
|
3
|
-
ShelbyMetadataClient
|
|
4
|
-
} from "../../chunk-NTJSNNA7.mjs";
|
|
5
2
|
import {
|
|
6
3
|
ShelbyNodeClient
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-MYN7KW2X.mjs";
|
|
5
|
+
import {
|
|
6
|
+
ShelbyMetadataClient
|
|
7
|
+
} from "../../chunk-CTGCK3H2.mjs";
|
|
8
|
+
import "../../chunk-4W3FFVXZ.mjs";
|
|
9
|
+
import "../../chunk-3QINXXV6.mjs";
|
|
10
|
+
import "../../chunk-GKRHKR3J.mjs";
|
|
11
|
+
import "../../chunk-VPT45MTZ.mjs";
|
|
13
12
|
import "../../chunk-DLMDDEWF.mjs";
|
|
13
|
+
import "../../chunk-FIFKKWXV.mjs";
|
|
14
|
+
import "../../chunk-I6NG5GNL.mjs";
|
|
14
15
|
import "../../chunk-RBFWGDMY.mjs";
|
|
15
16
|
import "../../chunk-OTBLZL2S.mjs";
|
|
16
17
|
import "../../chunk-LTV26KU4.mjs";
|
|
17
18
|
import "../../chunk-KBUWZXFA.mjs";
|
|
18
|
-
import "../../chunk-HPVCKAN2.mjs";
|
|
19
|
-
import "../../chunk-FIFKKWXV.mjs";
|
|
20
19
|
import "../../chunk-APML3CGJ.mjs";
|
|
21
|
-
import "../../chunk-3ZDXWPYC.mjs";
|
|
22
20
|
import "../../chunk-ZPW742E7.mjs";
|
|
21
|
+
import "../../chunk-3ZDXWPYC.mjs";
|
|
22
|
+
import "../../chunk-SEXQTDX6.mjs";
|
|
23
23
|
import "../../chunk-7P6ASYW6.mjs";
|
|
24
24
|
export {
|
|
25
25
|
ShelbyMetadataClient,
|
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,13 +6,14 @@ 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
19
|
export { buildRequestUrl, concatHashes, readInChunks, zeroPadBytes } from '../core/utils.js';
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,35 +1,54 @@
|
|
|
1
1
|
import "../chunk-MB7C7VQF.mjs";
|
|
2
|
-
import {
|
|
3
|
-
ShelbyMetadataClient
|
|
4
|
-
} from "../chunk-NTJSNNA7.mjs";
|
|
5
2
|
import {
|
|
6
3
|
ShelbyNodeClient
|
|
7
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-MYN7KW2X.mjs";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
6
|
+
ShelbyMetadataClient
|
|
7
|
+
} from "../chunk-CTGCK3H2.mjs";
|
|
8
|
+
import "../chunk-DJJD2AXO.mjs";
|
|
12
9
|
import "../chunk-MWDW4ROU.mjs";
|
|
13
|
-
import "../chunk-MQUVYMNQ.mjs";
|
|
14
10
|
import "../chunk-ZHXCVRZX.mjs";
|
|
11
|
+
import "../chunk-MQUVYMNQ.mjs";
|
|
15
12
|
import "../chunk-RNXGC54D.mjs";
|
|
16
13
|
import {
|
|
17
14
|
ShelbyClient
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import {
|
|
20
|
-
ShelbyRPCClient
|
|
21
|
-
} from "../chunk-PGBEBDNY.mjs";
|
|
22
|
-
import "../chunk-I6NG5GNL.mjs";
|
|
15
|
+
} from "../chunk-4W3FFVXZ.mjs";
|
|
23
16
|
import {
|
|
24
17
|
ShelbyBlobClient
|
|
25
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-3QINXXV6.mjs";
|
|
19
|
+
import "../chunk-Z7RFCADT.mjs";
|
|
20
|
+
import {
|
|
21
|
+
ShelbyRPCClient
|
|
22
|
+
} from "../chunk-GKRHKR3J.mjs";
|
|
26
23
|
import {
|
|
27
24
|
createShelbyIndexerClient,
|
|
28
25
|
getShelbyIndexerClient
|
|
29
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-VPT45MTZ.mjs";
|
|
30
27
|
import "../chunk-DLMDDEWF.mjs";
|
|
28
|
+
import {
|
|
29
|
+
BlobNameSchema,
|
|
30
|
+
ChunkKey,
|
|
31
|
+
allChunksForBlob,
|
|
32
|
+
roundSize
|
|
33
|
+
} from "../chunk-FIFKKWXV.mjs";
|
|
34
|
+
import {
|
|
35
|
+
isShelbyNetwork,
|
|
36
|
+
shelbyNetworks
|
|
37
|
+
} from "../chunk-VRLIOKWG.mjs";
|
|
38
|
+
import "../chunk-I6NG5GNL.mjs";
|
|
39
|
+
import {
|
|
40
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
41
|
+
getShelbyAccountExplorerUrl,
|
|
42
|
+
getShelbyBlobExplorerUrl
|
|
43
|
+
} from "../chunk-BDSW5PHM.mjs";
|
|
31
44
|
import "../chunk-RBFWGDMY.mjs";
|
|
32
|
-
import
|
|
45
|
+
import {
|
|
46
|
+
testUtil_exports
|
|
47
|
+
} from "../chunk-A4IG6GSE.mjs";
|
|
48
|
+
import {
|
|
49
|
+
getAptosAccountExplorerUrl,
|
|
50
|
+
getAptosTransactionExplorerUrl
|
|
51
|
+
} from "../chunk-C6RQ3AEU.mjs";
|
|
33
52
|
import {
|
|
34
53
|
createBlobKey
|
|
35
54
|
} from "../chunk-OTBLZL2S.mjs";
|
|
@@ -45,25 +64,6 @@ import {
|
|
|
45
64
|
readInChunks,
|
|
46
65
|
zeroPadBytes
|
|
47
66
|
} from "../chunk-KBUWZXFA.mjs";
|
|
48
|
-
import {
|
|
49
|
-
DEFAULT_PROJECT_DESCRIPTION,
|
|
50
|
-
DEFAULT_PROJECT_NAME,
|
|
51
|
-
NetworkToShelbyBlobIndexerBaseUrl,
|
|
52
|
-
NetworkToShelbyRPCBaseUrl,
|
|
53
|
-
SHELBYUSD_TOKEN_ADDRESS,
|
|
54
|
-
SHELBYUSD_TOKEN_MODULE,
|
|
55
|
-
SHELBYUSD_TOKEN_NAME,
|
|
56
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
57
|
-
SHELBY_DEPLOYER,
|
|
58
|
-
TOKEN_DEPLOYER,
|
|
59
|
-
TOKEN_OBJECT_ADDRESS
|
|
60
|
-
} from "../chunk-HPVCKAN2.mjs";
|
|
61
|
-
import {
|
|
62
|
-
BlobNameSchema,
|
|
63
|
-
ChunkKey,
|
|
64
|
-
allChunksForBlob,
|
|
65
|
-
roundSize
|
|
66
|
-
} from "../chunk-FIFKKWXV.mjs";
|
|
67
67
|
import {
|
|
68
68
|
CHUNK_SIZE_PARAMS,
|
|
69
69
|
ChunkSizeScheme,
|
|
@@ -73,9 +73,6 @@ import {
|
|
|
73
73
|
ERASURE_CODE_AND_CHUNK_MAPPING,
|
|
74
74
|
createDefaultErasureCodingProvider
|
|
75
75
|
} from "../chunk-APML3CGJ.mjs";
|
|
76
|
-
import {
|
|
77
|
-
ReedSolomonErasureCodingProvider
|
|
78
|
-
} from "../chunk-3ZDXWPYC.mjs";
|
|
79
76
|
import {
|
|
80
77
|
DEFAULT_ERASURE_D,
|
|
81
78
|
DEFAULT_ERASURE_K,
|
|
@@ -85,9 +82,21 @@ import {
|
|
|
85
82
|
ErasureCodingScheme
|
|
86
83
|
} from "../chunk-ZPW742E7.mjs";
|
|
87
84
|
import {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
ReedSolomonErasureCodingProvider
|
|
86
|
+
} from "../chunk-3ZDXWPYC.mjs";
|
|
87
|
+
import {
|
|
88
|
+
DEFAULT_PROJECT_DESCRIPTION,
|
|
89
|
+
DEFAULT_PROJECT_NAME,
|
|
90
|
+
NetworkToShelbyBlobIndexerBaseUrl,
|
|
91
|
+
NetworkToShelbyRPCBaseUrl,
|
|
92
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
93
|
+
SHELBYUSD_TOKEN_ADDRESS,
|
|
94
|
+
SHELBYUSD_TOKEN_MODULE,
|
|
95
|
+
SHELBYUSD_TOKEN_NAME,
|
|
96
|
+
SHELBY_DEPLOYER,
|
|
97
|
+
TOKEN_DEPLOYER,
|
|
98
|
+
TOKEN_OBJECT_ADDRESS
|
|
99
|
+
} from "../chunk-SEXQTDX6.mjs";
|
|
91
100
|
import "../chunk-7P6ASYW6.mjs";
|
|
92
101
|
export {
|
|
93
102
|
BlobCommitmentsSchema,
|
|
@@ -111,10 +120,10 @@ export {
|
|
|
111
120
|
NetworkToShelbyBlobIndexerBaseUrl,
|
|
112
121
|
NetworkToShelbyRPCBaseUrl,
|
|
113
122
|
ReedSolomonErasureCodingProvider,
|
|
123
|
+
SHELBYUSD_FA_METADATA_ADDRESS,
|
|
114
124
|
SHELBYUSD_TOKEN_ADDRESS,
|
|
115
125
|
SHELBYUSD_TOKEN_MODULE,
|
|
116
126
|
SHELBYUSD_TOKEN_NAME,
|
|
117
|
-
SHELBYUSD_TOKEN_TYPE,
|
|
118
127
|
SHELBY_DEPLOYER,
|
|
119
128
|
ShelbyBlobClient,
|
|
120
129
|
ShelbyClient,
|
|
@@ -131,6 +140,11 @@ export {
|
|
|
131
140
|
createShelbyIndexerClient,
|
|
132
141
|
expectedTotalChunksets,
|
|
133
142
|
generateCommitments,
|
|
143
|
+
getAptosAccountExplorerUrl,
|
|
144
|
+
getAptosTransactionExplorerUrl,
|
|
145
|
+
getShelbyAccountBlobsExplorerUrl,
|
|
146
|
+
getShelbyAccountExplorerUrl,
|
|
147
|
+
getShelbyBlobExplorerUrl,
|
|
134
148
|
getShelbyIndexerClient,
|
|
135
149
|
isShelbyNetwork,
|
|
136
150
|
readInChunks,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shelby-protocol/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"graphql-request": "^7.2.0",
|
|
25
25
|
"graphql-tag": "^2.12.6",
|
|
26
26
|
"zod": "^3.24.3",
|
|
27
|
-
"@shelby-protocol/
|
|
28
|
-
"@shelby-protocol/
|
|
27
|
+
"@shelby-protocol/clay-codes": "0.0.1",
|
|
28
|
+
"@shelby-protocol/reed-solomon": "0.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@aptos-labs/ts-sdk": "^5.1.1",
|
|
File without changes
|