@shelby-protocol/sdk 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.mjs +31 -29
- package/dist/chunk-3NRBHSMQ.mjs +12 -0
- package/dist/{chunk-W37FZSMA.mjs → chunk-57RQAVKL.mjs} +1 -1
- package/dist/{chunk-4ZOFT75Q.mjs → chunk-7OV5ZYW6.mjs} +2 -2
- package/dist/{chunk-2WEX3K7C.mjs → chunk-BXEVML7N.mjs} +1 -1
- package/dist/{chunk-PJVWGMVI.mjs → chunk-E5PP7BZJ.mjs} +9 -9
- package/dist/{chunk-CGYJLKBU.mjs → chunk-EZPZAUIV.mjs} +1 -1
- package/dist/{chunk-ZEDD2MPU.mjs → chunk-FMPOGFDW.mjs} +1 -1
- package/dist/{chunk-MV6FNYAU.mjs → chunk-H53O23I7.mjs} +99 -20
- package/dist/{chunk-E5QCRTBU.mjs → chunk-H5YZHUSJ.mjs} +87 -75
- package/dist/{chunk-7PN65RDX.mjs → chunk-ONOOCOQ5.mjs} +16 -14
- package/dist/{chunk-SRV4YWFH.mjs → chunk-PESSW3FK.mjs} +52 -17
- package/dist/chunk-TVLV7C74.mjs +207 -0
- package/dist/{chunk-4JZO2D7T.mjs → chunk-UEZNZBJO.mjs} +9 -2
- package/dist/core/blobs.mjs +2 -1
- package/dist/core/clients/ShelbyBlobClient.d.ts +16 -0
- package/dist/core/clients/ShelbyBlobClient.mjs +8 -8
- package/dist/core/clients/ShelbyClient.mjs +13 -13
- package/dist/core/clients/ShelbyMetadataClient.d.ts +56 -5
- package/dist/core/clients/ShelbyMetadataClient.mjs +3 -2
- package/dist/core/clients/ShelbyMicropaymentChannelClient.d.ts +39 -34
- package/dist/core/clients/ShelbyMicropaymentChannelClient.mjs +5 -4
- package/dist/core/clients/ShelbyPlacementGroupClient.mjs +3 -3
- package/dist/core/clients/ShelbyRPCClient.mjs +6 -6
- package/dist/core/clients/index.mjs +17 -17
- package/dist/core/commitments.mjs +2 -2
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/constants.mjs +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +31 -29
- package/dist/core/operations/generated/types.d.ts +908 -0
- package/dist/core/operations/generated/types.mjs +63 -0
- package/dist/core/operations/index.mjs +2 -2
- package/dist/core/types/index.mjs +2 -1
- package/dist/core/types/payments.d.ts +82 -9
- package/dist/core/types/payments.mjs +2 -1
- package/dist/core/types/placement_groups.d.ts +2 -2
- package/dist/core/types/storage_providers.d.ts +2 -2
- package/dist/core/utils.d.ts +3 -2
- package/dist/core/utils.mjs +3 -1
- package/dist/node/clients/ShelbyNodeClient.mjs +14 -14
- package/dist/node/clients/index.mjs +16 -16
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +32 -30
- package/package.json +1 -1
- package/dist/chunk-4MG4XGY4.mjs +0 -91
- package/dist/chunk-OTBLZL2S.mjs +0 -9
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// src/core/utils.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
AccountAddress,
|
|
4
|
+
Hex
|
|
5
|
+
} from "@aptos-labs/ts-sdk";
|
|
3
6
|
async function* readInChunks(input, chunkSize) {
|
|
4
7
|
let idx = 0;
|
|
5
8
|
if (isReadableStream(input)) {
|
|
@@ -87,11 +90,15 @@ function getBlobNameSuffix(blobName) {
|
|
|
87
90
|
const parts = blobName.split("/");
|
|
88
91
|
return parts.slice(1).join("/") || "";
|
|
89
92
|
}
|
|
93
|
+
function normalizeAddress(address) {
|
|
94
|
+
return AccountAddress.from(address, { maxMissingChars: 63 });
|
|
95
|
+
}
|
|
90
96
|
|
|
91
97
|
export {
|
|
92
98
|
readInChunks,
|
|
93
99
|
zeroPadBytes,
|
|
94
100
|
concatHashes,
|
|
95
101
|
buildRequestUrl,
|
|
96
|
-
getBlobNameSuffix
|
|
102
|
+
getBlobNameSuffix,
|
|
103
|
+
normalizeAddress
|
|
97
104
|
};
|
package/dist/core/blobs.mjs
CHANGED
|
@@ -499,6 +499,22 @@ declare class ShelbyBlobClient {
|
|
|
499
499
|
chunksetIdx: number;
|
|
500
500
|
storageProviderAcks: StorageProviderAck[];
|
|
501
501
|
}): InputGenerateTransactionPayloadData;
|
|
502
|
+
static createBlobAcknowledgementsPayload(params: {
|
|
503
|
+
blobOwner: AccountAddress;
|
|
504
|
+
blobName: BlobName;
|
|
505
|
+
creationMicros: number;
|
|
506
|
+
storageProviderAcks: StorageProviderAck[];
|
|
507
|
+
}): InputGenerateTransactionPayloadData;
|
|
508
|
+
addBlobAcknowledgements(params: {
|
|
509
|
+
account: Account;
|
|
510
|
+
blobOwner: AccountAddress;
|
|
511
|
+
blobName: BlobName;
|
|
512
|
+
creationMicros: number;
|
|
513
|
+
storageProviderAcks: StorageProviderAck[];
|
|
514
|
+
options?: AckTransactionOptions;
|
|
515
|
+
}): Promise<{
|
|
516
|
+
transaction: PendingTransactionResponse;
|
|
517
|
+
}>;
|
|
502
518
|
}
|
|
503
519
|
|
|
504
520
|
export { type AckTransactionOptions, type BuildOptions, MissingTransactionSubmitterError, ShelbyBlobClient, type UsdSponsorOptions, type WriteBlobCommitmentsOptions };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MissingTransactionSubmitterError,
|
|
3
3
|
ShelbyBlobClient
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-PESSW3FK.mjs";
|
|
5
|
+
import "../../chunk-EZPZAUIV.mjs";
|
|
6
|
+
import "../../chunk-KJ24NKPH.mjs";
|
|
7
|
+
import "../../chunk-AABBONAF.mjs";
|
|
5
8
|
import "../../chunk-XNEIWM4O.mjs";
|
|
6
9
|
import "../../chunk-HPPMI7DC.mjs";
|
|
7
10
|
import "../../chunk-OGKZ575S.mjs";
|
|
8
11
|
import "../../chunk-NHWWORCH.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-OTBLZL2S.mjs";
|
|
13
|
-
import "../../chunk-2WEX3K7C.mjs";
|
|
14
|
-
import "../../chunk-4JZO2D7T.mjs";
|
|
12
|
+
import "../../chunk-3NRBHSMQ.mjs";
|
|
13
|
+
import "../../chunk-BXEVML7N.mjs";
|
|
14
|
+
import "../../chunk-UEZNZBJO.mjs";
|
|
15
15
|
import "../../chunk-JTXYKO3U.mjs";
|
|
16
16
|
import "../../chunk-AUQDI5BS.mjs";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
18
18
|
import "../../chunk-7P6ASYW6.mjs";
|
|
19
19
|
export {
|
|
20
20
|
MissingTransactionSubmitterError,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-ONOOCOQ5.mjs";
|
|
4
|
+
import "../../chunk-PESSW3FK.mjs";
|
|
5
|
+
import "../../chunk-H53O23I7.mjs";
|
|
6
|
+
import "../../chunk-E5PP7BZJ.mjs";
|
|
7
|
+
import "../../chunk-TVLV7C74.mjs";
|
|
8
|
+
import "../../chunk-EZPZAUIV.mjs";
|
|
9
|
+
import "../../chunk-KJ24NKPH.mjs";
|
|
10
|
+
import "../../chunk-AABBONAF.mjs";
|
|
5
11
|
import "../../chunk-XNEIWM4O.mjs";
|
|
6
12
|
import "../../chunk-HPPMI7DC.mjs";
|
|
7
13
|
import "../../chunk-OGKZ575S.mjs";
|
|
8
14
|
import "../../chunk-NHWWORCH.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-PJVWGMVI.mjs";
|
|
11
|
-
import "../../chunk-4MG4XGY4.mjs";
|
|
12
|
-
import "../../chunk-CGYJLKBU.mjs";
|
|
13
|
-
import "../../chunk-KJ24NKPH.mjs";
|
|
14
|
-
import "../../chunk-AABBONAF.mjs";
|
|
15
|
+
import "../../chunk-Z4FZ7W6L.mjs";
|
|
15
16
|
import "../../chunk-I6NG5GNL.mjs";
|
|
16
17
|
import "../../chunk-IE6LYVIA.mjs";
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-3NRBHSMQ.mjs";
|
|
19
|
+
import "../../chunk-BXEVML7N.mjs";
|
|
20
|
+
import "../../chunk-UEZNZBJO.mjs";
|
|
20
21
|
import "../../chunk-JTXYKO3U.mjs";
|
|
21
22
|
import "../../chunk-AUQDI5BS.mjs";
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-Z4FZ7W6L.mjs";
|
|
23
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
24
24
|
import "../../chunk-7P6ASYW6.mjs";
|
|
25
25
|
export {
|
|
26
26
|
ShelbyClient
|
|
@@ -54,19 +54,70 @@ declare class ShelbyMetadataClient {
|
|
|
54
54
|
*/
|
|
55
55
|
getSliceAddresses(): Promise<AccountAddress[]>;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Gets the placement group address for a slice.
|
|
58
|
+
*
|
|
59
|
+
* @param sliceAddress - The address of the slice account.
|
|
60
|
+
* @returns The placement group address as a string.
|
|
61
|
+
*/
|
|
62
|
+
private getPlacementGroupAddressForSlice;
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves the designated storage providers for a slice.
|
|
65
|
+
*
|
|
66
|
+
* Designated SPs are those appointed to store data for their slots:
|
|
67
|
+
* - Active: Currently serving data
|
|
68
|
+
* - Receiving: Receiving data during slot transfer
|
|
69
|
+
* - Repairing: Repairing data after crash or failed transfer
|
|
70
|
+
* - Reconstructing: Reconstructing data if the repair fails
|
|
71
|
+
*
|
|
72
|
+
* @param params.account - The address of the slice account.
|
|
73
|
+
* @returns An array where result[i] is the designated SP for slot i, or null if no SP is designated.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const providers = await client.getDesignatedStorageProvidersForSlice({ account: sliceAddress });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
getDesignatedStorageProvidersForSlice(params: {
|
|
81
|
+
account: AccountAddressInput;
|
|
82
|
+
}): Promise<(AccountAddress | null)[]>;
|
|
83
|
+
/**
|
|
84
|
+
* Retrieves the active storage providers for a slice.
|
|
85
|
+
*
|
|
86
|
+
* Active SPs have a complete copy of the data for the slot, and are not in any data transfer/repair/reconstruction phase.
|
|
87
|
+
* Active SP can be audited for the data it contains.
|
|
88
|
+
* Each slot has at most one active SP.
|
|
89
|
+
*
|
|
90
|
+
* @param params.account - The address of the slice account.
|
|
91
|
+
* @returns An array where result[i] is the active SP for slot i, or null if no SP is active.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const providers = await client.getActiveStorageProvidersForSlice({ account: sliceAddress });
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
getActiveStorageProvidersForSlice(params: {
|
|
99
|
+
account: AccountAddressInput;
|
|
100
|
+
}): Promise<(AccountAddress | null)[]>;
|
|
101
|
+
/**
|
|
102
|
+
* Retrieves the serving storage providers for a slice.
|
|
103
|
+
*
|
|
104
|
+
* Serving SPs are those that can respond to read requests. The serving logic is:
|
|
105
|
+
* - If an Active SP exists for a slot: Only the Active SP is serving
|
|
106
|
+
* - If no Active SP (transition in progress): Both Designated and Vacating SPs serve
|
|
107
|
+
*
|
|
108
|
+
* Each slot may have multiple serving SPs during transitions.
|
|
58
109
|
*
|
|
59
110
|
* @param params.account - The address of the slice account.
|
|
60
|
-
* @returns
|
|
111
|
+
* @returns An array where result[i] contains the serving SPs for slot i.
|
|
61
112
|
*
|
|
62
113
|
* @example
|
|
63
114
|
* ```typescript
|
|
64
|
-
* const
|
|
115
|
+
* const providers = await client.getServingStorageProvidersForSlice({ account: sliceAddress });
|
|
65
116
|
* ```
|
|
66
117
|
*/
|
|
67
|
-
|
|
118
|
+
getServingStorageProvidersForSlice(params: {
|
|
68
119
|
account: AccountAddressInput;
|
|
69
|
-
}): Promise<AccountAddress[]>;
|
|
120
|
+
}): Promise<AccountAddress[][]>;
|
|
70
121
|
}
|
|
71
122
|
|
|
72
123
|
export { ShelbyMetadataClient };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyMetadataClient
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-H53O23I7.mjs";
|
|
4
4
|
import "../../chunk-AABBONAF.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-UEZNZBJO.mjs";
|
|
6
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
6
7
|
import "../../chunk-7P6ASYW6.mjs";
|
|
7
8
|
export {
|
|
8
9
|
ShelbyMetadataClient
|
|
@@ -84,6 +84,7 @@ declare class ShelbyMicropaymentChannelClient {
|
|
|
84
84
|
expirationMicros: number;
|
|
85
85
|
depositAmount: number;
|
|
86
86
|
fungibleAssetAddress: AccountAddress;
|
|
87
|
+
publicKey?: Uint8Array;
|
|
87
88
|
options?: InputGenerateTransactionOptions;
|
|
88
89
|
}): Promise<{
|
|
89
90
|
transaction: PendingTransactionResponse;
|
|
@@ -98,6 +99,7 @@ declare class ShelbyMicropaymentChannelClient {
|
|
|
98
99
|
* @param params.expirationMicros - The expiration of the micropayment channel.
|
|
99
100
|
* @param params.depositAmount - The amount of the asset locked to the channel.
|
|
100
101
|
* @param params.fungibleAssetAddress - The account address of the fungible asset.
|
|
102
|
+
* @param params.publicKey - The Ed25519 public key bytes for the channel.
|
|
101
103
|
*
|
|
102
104
|
* @returns An Aptos transaction payload data object for the create_channel Move function.
|
|
103
105
|
*/
|
|
@@ -107,6 +109,7 @@ declare class ShelbyMicropaymentChannelClient {
|
|
|
107
109
|
expirationMicros: number;
|
|
108
110
|
depositAmount: number;
|
|
109
111
|
fungibleAssetAddress: AccountAddress;
|
|
112
|
+
publicKey: Uint8Array;
|
|
110
113
|
}): InputGenerateTransactionPayloadData;
|
|
111
114
|
/**
|
|
112
115
|
* Withdraws funds from a micropayment channel as the sender.
|
|
@@ -152,64 +155,67 @@ declare class ShelbyMicropaymentChannelClient {
|
|
|
152
155
|
}): InputGenerateTransactionPayloadData;
|
|
153
156
|
/**
|
|
154
157
|
* Creates a micropayment that can be sent to a receiver.
|
|
158
|
+
* The sender signs a WithdrawApproval message that authorizes the receiver
|
|
159
|
+
* to withdraw funds from the micropayment channel.
|
|
155
160
|
*
|
|
156
|
-
* @param params.sender - The account
|
|
157
|
-
* @param params.receiver - The account that
|
|
158
|
-
* @param params.amount - The amount to withdraw into the receiver's account.
|
|
159
|
-
* @param params.paymentChannelId - The id of the payment channel.
|
|
160
|
-
* @param params.sequenceNumber - The sequence number of the micropayment. These must be increasing to be able to store on chain.
|
|
161
|
+
* @param params.sender - The account that owns the payment channel and signs the approval.
|
|
162
|
+
* @param params.receiver - The account address that will receive funds.
|
|
161
163
|
* @param params.fungibleAssetAddress - The account address of the fungible asset.
|
|
162
|
-
* @param params.
|
|
164
|
+
* @param params.amount - The cumulative amount to authorize (not incremental).
|
|
165
|
+
* @param params.paymentChannelId - The id of the payment channel.
|
|
166
|
+
* @param params.sequenceNumber - The sequence number of the micropayment. Must be >= channel's next_withdrawn_sequence_number.
|
|
163
167
|
*
|
|
164
|
-
* @returns
|
|
168
|
+
* @returns A SenderBuiltMicropayment containing the signed approval.
|
|
165
169
|
*
|
|
166
170
|
* @example
|
|
167
171
|
* ```typescript
|
|
168
|
-
* const senderBuiltMicropayment =
|
|
169
|
-
* sender:
|
|
170
|
-
* receiver:
|
|
171
|
-
* amount: 1,
|
|
172
|
-
* paymentChannelId: channelIdFromLookup,
|
|
173
|
-
* sequenceNumber: localSequenceNumber,
|
|
172
|
+
* const senderBuiltMicropayment = client.createMicropayment({
|
|
173
|
+
* sender: senderAccount,
|
|
174
|
+
* receiver: receiverAddress,
|
|
174
175
|
* fungibleAssetAddress: fungibleAssetAddress,
|
|
176
|
+
* amount: 100,
|
|
177
|
+
* paymentChannelId: channelId,
|
|
178
|
+
* sequenceNumber: 1,
|
|
175
179
|
* });
|
|
176
180
|
* ```
|
|
177
181
|
*/
|
|
178
182
|
createMicropayment(params: {
|
|
179
183
|
sender: Account;
|
|
180
184
|
receiver: AccountAddress;
|
|
185
|
+
fungibleAssetAddress: AccountAddress;
|
|
181
186
|
amount: number;
|
|
182
187
|
paymentChannelId: number;
|
|
183
188
|
sequenceNumber: number;
|
|
184
|
-
|
|
185
|
-
options?: InputGenerateTransactionOptions;
|
|
186
|
-
}): Promise<SenderBuiltMicropayment>;
|
|
189
|
+
}): SenderBuiltMicropayment;
|
|
187
190
|
/**
|
|
188
|
-
* Creates a static payload for the receiver_withdraw Move function.
|
|
189
|
-
*
|
|
190
|
-
* This is a helper method for constructing the transaction payload without signing.
|
|
191
|
+
* Creates a static payload for the receiver_withdraw Move function.
|
|
192
|
+
* This is a helper method for constructing the transaction payload.
|
|
191
193
|
*
|
|
192
194
|
* @param params.deployer - Optional deployer account address. Defaults to MICROPAYMENTS_DEPLOYER.
|
|
193
|
-
* @param params.
|
|
194
|
-
* @param params.paymentChannelId - The payment channel id.
|
|
195
|
+
* @param params.sender - The sender's account address.
|
|
195
196
|
* @param params.fungibleAssetAddress - The account address of the fungible asset.
|
|
197
|
+
* @param params.amount - The cumulative amount authorized to withdraw.
|
|
198
|
+
* @param params.paymentChannelId - The payment channel id.
|
|
199
|
+
* @param params.sequenceNumber - The sequence number for this withdrawal.
|
|
200
|
+
* @param params.signature - The Ed25519 signature bytes.
|
|
196
201
|
*
|
|
197
|
-
* @returns An Aptos transaction payload data object for the
|
|
202
|
+
* @returns An Aptos transaction payload data object for the receiver_withdraw Move function.
|
|
198
203
|
*/
|
|
199
204
|
static createMicropaymentTransactionPayload(params: {
|
|
200
205
|
deployer?: AccountAddress;
|
|
201
|
-
|
|
202
|
-
paymentChannelId: number;
|
|
203
|
-
sequenceNumber: number;
|
|
206
|
+
sender: AccountAddress;
|
|
204
207
|
fungibleAssetAddress: AccountAddress;
|
|
208
|
+
amount: number | bigint;
|
|
209
|
+
paymentChannelId: number | bigint;
|
|
210
|
+
sequenceNumber: number | bigint;
|
|
211
|
+
signature: Uint8Array;
|
|
205
212
|
}): InputGenerateTransactionPayloadData;
|
|
206
213
|
/**
|
|
207
|
-
* Withdraws funds from a micropayment channel as the receiver.
|
|
208
|
-
*
|
|
214
|
+
* Withdraws funds from a micropayment channel as the receiver.
|
|
215
|
+
* The receiver submits the sender's signed approval to claim funds.
|
|
209
216
|
*
|
|
210
|
-
* @param params.receiver - The receiver
|
|
211
|
-
* @param params.
|
|
212
|
-
* @param params.micropayment - The fee-paying transaction signature.
|
|
217
|
+
* @param params.receiver - The receiver account that will sign and submit the transaction.
|
|
218
|
+
* @param params.micropayment - The sender's signed micropayment approval.
|
|
213
219
|
* @param params.options - Optional transaction generation options.
|
|
214
220
|
*
|
|
215
221
|
* @returns An object containing the pending transaction.
|
|
@@ -217,9 +223,8 @@ declare class ShelbyMicropaymentChannelClient {
|
|
|
217
223
|
* @example
|
|
218
224
|
* ```typescript
|
|
219
225
|
* const { transaction } = await client.receiverWithdraw({
|
|
220
|
-
* receiver:
|
|
221
|
-
* micropayment,
|
|
222
|
-
* senderSignature,
|
|
226
|
+
* receiver: receiverAccount,
|
|
227
|
+
* micropayment: senderBuiltMicropayment,
|
|
223
228
|
* });
|
|
224
229
|
* ```
|
|
225
230
|
*/
|
|
@@ -336,7 +341,7 @@ declare class ShelbyMicropaymentChannelClient {
|
|
|
336
341
|
* ```typescript
|
|
337
342
|
* const channelInfoVec = await client.getChannelInfo({
|
|
338
343
|
* sender: AccountAddress.fromString("0x1"),
|
|
339
|
-
* receiver: AccountAddress.
|
|
344
|
+
* receiver: AccountAddress.fromString("0x2"),
|
|
340
345
|
* });
|
|
341
346
|
* ```
|
|
342
347
|
*/
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyMicropaymentChannelClient
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-H5YZHUSJ.mjs";
|
|
4
4
|
import "../../chunk-QQ57OGQ2.mjs";
|
|
5
5
|
import "../../chunk-ZHXCVRZX.mjs";
|
|
6
6
|
import "../../chunk-AD2G3QYD.mjs";
|
|
7
7
|
import "../../chunk-MQUVYMNQ.mjs";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-TVLV7C74.mjs";
|
|
9
|
+
import "../../chunk-EZPZAUIV.mjs";
|
|
10
10
|
import "../../chunk-KJ24NKPH.mjs";
|
|
11
11
|
import "../../chunk-AABBONAF.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-UEZNZBJO.mjs";
|
|
13
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
13
14
|
import "../../chunk-7P6ASYW6.mjs";
|
|
14
15
|
export {
|
|
15
16
|
ShelbyMicropaymentChannelClient
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyPlacementGroupClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-57RQAVKL.mjs";
|
|
4
|
+
import "../../chunk-EZPZAUIV.mjs";
|
|
5
5
|
import "../../chunk-KJ24NKPH.mjs";
|
|
6
6
|
import "../../chunk-AABBONAF.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
8
8
|
import "../../chunk-7P6ASYW6.mjs";
|
|
9
9
|
export {
|
|
10
10
|
ShelbyPlacementGroupClient
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShelbyRPCClient
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-E5PP7BZJ.mjs";
|
|
4
|
+
import "../../chunk-TVLV7C74.mjs";
|
|
5
|
+
import "../../chunk-EZPZAUIV.mjs";
|
|
6
6
|
import "../../chunk-KJ24NKPH.mjs";
|
|
7
7
|
import "../../chunk-AABBONAF.mjs";
|
|
8
|
+
import "../../chunk-Z4FZ7W6L.mjs";
|
|
8
9
|
import "../../chunk-I6NG5GNL.mjs";
|
|
9
10
|
import "../../chunk-IE6LYVIA.mjs";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-Z4FZ7W6L.mjs";
|
|
11
|
+
import "../../chunk-UEZNZBJO.mjs";
|
|
12
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
13
13
|
import "../../chunk-7P6ASYW6.mjs";
|
|
14
14
|
export {
|
|
15
15
|
ShelbyRPCClient
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import "../../chunk-WTICJPDB.mjs";
|
|
2
2
|
import {
|
|
3
3
|
ShelbyClient
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-ONOOCOQ5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
MissingTransactionSubmitterError,
|
|
7
7
|
ShelbyBlobClient
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-XNEIWM4O.mjs";
|
|
10
|
-
import "../../chunk-HPPMI7DC.mjs";
|
|
11
|
-
import "../../chunk-OGKZ575S.mjs";
|
|
12
|
-
import "../../chunk-NHWWORCH.mjs";
|
|
8
|
+
} from "../../chunk-PESSW3FK.mjs";
|
|
13
9
|
import "../../chunk-Z7RFCADT.mjs";
|
|
14
10
|
import {
|
|
15
11
|
ShelbyMetadataClient
|
|
16
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-H53O23I7.mjs";
|
|
17
13
|
import {
|
|
18
14
|
ShelbyMicropaymentChannelClient
|
|
19
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-H5YZHUSJ.mjs";
|
|
20
16
|
import "../../chunk-QQ57OGQ2.mjs";
|
|
21
17
|
import "../../chunk-ZHXCVRZX.mjs";
|
|
22
18
|
import "../../chunk-AD2G3QYD.mjs";
|
|
23
19
|
import "../../chunk-MQUVYMNQ.mjs";
|
|
24
20
|
import {
|
|
25
21
|
ShelbyPlacementGroupClient
|
|
26
|
-
} from "../../chunk-
|
|
22
|
+
} from "../../chunk-57RQAVKL.mjs";
|
|
27
23
|
import {
|
|
28
24
|
ShelbyRPCClient
|
|
29
|
-
} from "../../chunk-
|
|
30
|
-
import "../../chunk-
|
|
31
|
-
import "../../chunk-
|
|
25
|
+
} from "../../chunk-E5PP7BZJ.mjs";
|
|
26
|
+
import "../../chunk-TVLV7C74.mjs";
|
|
27
|
+
import "../../chunk-EZPZAUIV.mjs";
|
|
32
28
|
import "../../chunk-KJ24NKPH.mjs";
|
|
33
29
|
import "../../chunk-AABBONAF.mjs";
|
|
30
|
+
import "../../chunk-XNEIWM4O.mjs";
|
|
31
|
+
import "../../chunk-HPPMI7DC.mjs";
|
|
32
|
+
import "../../chunk-OGKZ575S.mjs";
|
|
33
|
+
import "../../chunk-NHWWORCH.mjs";
|
|
34
|
+
import "../../chunk-Z4FZ7W6L.mjs";
|
|
34
35
|
import "../../chunk-I6NG5GNL.mjs";
|
|
35
36
|
import "../../chunk-IE6LYVIA.mjs";
|
|
36
|
-
import "../../chunk-
|
|
37
|
-
import "../../chunk-
|
|
38
|
-
import "../../chunk-
|
|
37
|
+
import "../../chunk-3NRBHSMQ.mjs";
|
|
38
|
+
import "../../chunk-BXEVML7N.mjs";
|
|
39
|
+
import "../../chunk-UEZNZBJO.mjs";
|
|
39
40
|
import "../../chunk-JTXYKO3U.mjs";
|
|
40
41
|
import "../../chunk-AUQDI5BS.mjs";
|
|
41
|
-
import "../../chunk-
|
|
42
|
-
import "../../chunk-Z4FZ7W6L.mjs";
|
|
42
|
+
import "../../chunk-7OV5ZYW6.mjs";
|
|
43
43
|
import "../../chunk-7P6ASYW6.mjs";
|
|
44
44
|
export {
|
|
45
45
|
MissingTransactionSubmitterError,
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
expectedTotalChunksets,
|
|
6
6
|
generateCommitments,
|
|
7
7
|
generateMerkleRoot
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-BXEVML7N.mjs";
|
|
9
|
+
import "../chunk-UEZNZBJO.mjs";
|
|
10
10
|
import "../chunk-JTXYKO3U.mjs";
|
|
11
11
|
import "../chunk-AUQDI5BS.mjs";
|
|
12
12
|
import "../chunk-7P6ASYW6.mjs";
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -33,8 +33,8 @@ declare const NetworkToGasStationBaseUrl: {
|
|
|
33
33
|
readonly local: undefined;
|
|
34
34
|
readonly custom: undefined;
|
|
35
35
|
};
|
|
36
|
-
declare const SHELBY_DEPLOYER = "
|
|
37
|
-
declare const MICROPAYMENTS_DEPLOYER = "
|
|
36
|
+
declare const SHELBY_DEPLOYER = "0x85fdb9a176ab8ef1d9d9c1b60d60b3924f0800ac1de1cc2085fb0b8bb4988e6a";
|
|
37
|
+
declare const MICROPAYMENTS_DEPLOYER = "0x1ae7275148bf6ef742b658fd9cbcc2e094201606f4a7bc707bab0201da8043ee";
|
|
38
38
|
declare const TOKEN_DEPLOYER = "0x33009e852be7f93762dd0bf303383c2cb2c5cab7a30d8238ca5f9f177ae75124";
|
|
39
39
|
declare const TOKEN_OBJECT_ADDRESS = "0x249f5c642a63885ff88a5113b3ba0079840af5a1357706f8c7f3bfc5dd12511f";
|
|
40
40
|
declare const SHELBYUSD_TOKEN_ADDRESS = "0x249f5c642a63885ff88a5113b3ba0079840af5a1357706f8c7f3bfc5dd12511f";
|
package/dist/core/constants.mjs
CHANGED
package/dist/core/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { BlobActivity, BlobActivityType, BlobEncoding, BlobMetadata, ClayEncodin
|
|
|
23
23
|
export { ChannelInfo, SenderBuiltMicropayment, StaleChannelStateError } from './types/payments.js';
|
|
24
24
|
export { PlacementGroupInfo, PlacementGroupSlot, PlacementGroupSlotStatus } from './types/placement_groups.js';
|
|
25
25
|
export { ActiveStateDetails, FrozenStateDetails, StorageProviderInfo, StorageProviderStateDetails, WaitlistedStateDetails } from './types/storage_providers.js';
|
|
26
|
-
export { buildRequestUrl, concatHashes, getBlobNameSuffix, readInChunks, zeroPadBytes } from './utils.js';
|
|
26
|
+
export { buildRequestUrl, concatHashes, getBlobNameSuffix, normalizeAddress, readInChunks, zeroPadBytes } from './utils.js';
|
|
27
27
|
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, BlobsPlacement_Group_Slots_AggregateArgs, 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, GetPlacementGroupSlotsCountDocument, GetPlacementGroupSlotsCountQuery, GetPlacementGroupSlotsCountQueryVariables, GetPlacementGroupSlotsDocument, GetPlacementGroupSlotsQuery, GetPlacementGroupSlotsQueryVariables, GetProcessorStatusDocument, GetProcessorStatusQuery, GetProcessorStatusQueryVariables, Incremental, InputMaybe, Int_Comparison_Exp, MakeEmpty, MakeMaybe, MakeOptional, Maybe, Numeric_Comparison_Exp, Order_By, Placement_Group_Slots, Placement_Group_Slots_Aggregate, Placement_Group_Slots_Aggregate_Bool_Exp, Placement_Group_Slots_Aggregate_Bool_Exp_Count, Placement_Group_Slots_Aggregate_Fields, Placement_Group_Slots_Aggregate_FieldsCountArgs, Placement_Group_Slots_Aggregate_Order_By, Placement_Group_Slots_Avg_Fields, Placement_Group_Slots_Avg_Order_By, Placement_Group_Slots_Bool_Exp, Placement_Group_Slots_Max_Fields, Placement_Group_Slots_Max_Order_By, Placement_Group_Slots_Min_Fields, Placement_Group_Slots_Min_Order_By, Placement_Group_Slots_Order_By, Placement_Group_Slots_Select_Column, Placement_Group_Slots_Stddev_Fields, Placement_Group_Slots_Stddev_Order_By, Placement_Group_Slots_Stddev_Pop_Fields, Placement_Group_Slots_Stddev_Pop_Order_By, Placement_Group_Slots_Stddev_Samp_Fields, Placement_Group_Slots_Stddev_Samp_Order_By, Placement_Group_Slots_Stream_Cursor_Input, Placement_Group_Slots_Stream_Cursor_Value_Input, Placement_Group_Slots_Sum_Fields, Placement_Group_Slots_Sum_Order_By, Placement_Group_Slots_Var_Pop_Fields, Placement_Group_Slots_Var_Pop_Order_By, Placement_Group_Slots_Var_Samp_Fields, Placement_Group_Slots_Var_Samp_Order_By, Placement_Group_Slots_Variance_Fields, 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_AggregateArgs, 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_AggregateArgs, 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';
|
|
28
28
|
import '@aptos-labs/ts-sdk';
|
|
29
29
|
import 'zod';
|