@ar.io/sdk 3.3.0-alpha.5 → 3.3.0-alpha.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.
@@ -31,16 +31,20 @@ export type PaginationResult<T> = {
31
31
  sortOrder: 'asc' | 'desc';
32
32
  hasMore: boolean;
33
33
  };
34
- export type ProcessConfiguration = {
35
- process?: AOProcess;
36
- } | {
34
+ export type ProcessIdConfig = {
37
35
  processId?: string;
38
36
  };
39
- export type EpochInput = {
40
- epochIndex: AoEpochIndex;
41
- } | {
37
+ export type ProcessConfig = {
38
+ process?: AOProcess;
39
+ };
40
+ export type ProcessConfiguration = ProcessConfig | ProcessIdConfig;
41
+ export type EpochTimestampInput = {
42
42
  timestamp: Timestamp;
43
- } | undefined;
43
+ };
44
+ export type EpochIndexInput = {
45
+ epochIndex: AoEpochIndex;
46
+ };
47
+ export type EpochInput = EpochTimestampInput | EpochIndexInput | undefined;
44
48
  export type AoBalances = Record<WalletAddress, number>;
45
49
  export type AoRegistrationFees = Record<number, {
46
50
  lease: Record<number, number>;
@@ -117,6 +121,7 @@ export type AoEpochData = {
117
121
  startTimestamp: Timestamp;
118
122
  endTimestamp: Timestamp;
119
123
  distributionTimestamp: Timestamp;
124
+ /** @deprecated - use `getDistributions` to get distribution data for a given epoch **/
120
125
  distributions: AoEpochDistributionData;
121
126
  };
122
127
  export type AoTokenSupplyData = {
@@ -465,10 +470,6 @@ export interface AoARIOWrite extends AoARIORead {
465
470
  requestPrimaryName(params: AoArNSPurchaseParams, options?: WriteOptions): Promise<AoMessageResult>;
466
471
  redelegateStake(params: AoRedelegateStakeParams, options?: WriteOptions): Promise<AoMessageResult>;
467
472
  }
468
- export declare function isProcessConfiguration(config: object): config is {
469
- process: AOProcess;
470
- };
471
- export declare function isProcessIdConfiguration(config: object): config is {
472
- processId: string;
473
- };
473
+ export declare function isProcessConfiguration(config: object): config is Required<ProcessConfiguration> & Record<string, never>;
474
+ export declare function isProcessIdConfiguration(config: object): config is Required<ProcessIdConfig> & Record<string, never>;
474
475
  export declare function isLeasedArNSRecord(record: AoArNSNameData): record is AoArNSLeaseData;
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "3.3.0-alpha.4";
16
+ export declare const version = "3.3.0-alpha.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "3.3.0-alpha.5",
3
+ "version": "3.3.0-alpha.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"
@@ -126,7 +126,7 @@
126
126
  "dependencies": {
127
127
  "@dha-team/arbundles": "^1.0.1",
128
128
  "@permaweb/aoconnect": "^0.0.57",
129
- "arweave": "1.14.4",
129
+ "arweave": "1.15.5",
130
130
  "axios": "1.7.9",
131
131
  "axios-retry": "^4.3.0",
132
132
  "commander": "^12.1.0",