@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.
- package/bundles/web.bundle.min.js +58 -56
- package/lib/cjs/cli/cli.js +14 -0
- package/lib/cjs/common/ant-registry.js +14 -21
- package/lib/cjs/common/ant.js +5 -8
- package/lib/cjs/common/contracts/ao-process.js +11 -13
- package/lib/cjs/common/io.js +12 -33
- package/lib/cjs/version.js +1 -1
- package/lib/esm/cli/cli.js +16 -2
- package/lib/esm/common/ant-registry.js +14 -21
- package/lib/esm/common/ant.js +5 -8
- package/lib/esm/common/contracts/ao-process.js +11 -13
- package/lib/esm/common/io.js +12 -33
- package/lib/esm/version.js +1 -1
- package/lib/types/common/ant-registry.d.ts +5 -4
- package/lib/types/common/ant.d.ts +9 -10
- package/lib/types/common/io.d.ts +8 -27
- package/lib/types/types/common.d.ts +4 -0
- package/lib/types/types/io.d.ts +14 -13
- package/lib/types/version.d.ts +1 -1
- package/package.json +2 -2
package/lib/types/types/io.d.ts
CHANGED
|
@@ -31,16 +31,20 @@ export type PaginationResult<T> = {
|
|
|
31
31
|
sortOrder: 'asc' | 'desc';
|
|
32
32
|
hasMore: boolean;
|
|
33
33
|
};
|
|
34
|
-
export type
|
|
35
|
-
process?: AOProcess;
|
|
36
|
-
} | {
|
|
34
|
+
export type ProcessIdConfig = {
|
|
37
35
|
processId?: string;
|
|
38
36
|
};
|
|
39
|
-
export type
|
|
40
|
-
|
|
41
|
-
}
|
|
37
|
+
export type ProcessConfig = {
|
|
38
|
+
process?: AOProcess;
|
|
39
|
+
};
|
|
40
|
+
export type ProcessConfiguration = ProcessConfig | ProcessIdConfig;
|
|
41
|
+
export type EpochTimestampInput = {
|
|
42
42
|
timestamp: Timestamp;
|
|
43
|
-
}
|
|
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
|
-
|
|
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;
|
package/lib/types/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ar.io/sdk",
|
|
3
|
-
"version": "3.3.0-alpha.
|
|
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.
|
|
129
|
+
"arweave": "1.15.5",
|
|
130
130
|
"axios": "1.7.9",
|
|
131
131
|
"axios-retry": "^4.3.0",
|
|
132
132
|
"commander": "^12.1.0",
|