@ar.io/sdk 2.7.0-alpha.5 → 2.7.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/README.md +11 -95
- package/bundles/web.bundle.min.js +74 -74
- package/lib/cjs/cli/cli.js +6 -12
- package/lib/cjs/cli/commands/readCommands.js +11 -28
- package/lib/cjs/cli/options.js +1 -8
- package/lib/cjs/cli/utils.js +1 -1
- package/lib/cjs/common/ant.js +1 -1
- package/lib/cjs/common/io.js +4 -57
- package/lib/cjs/version.js +1 -1
- package/lib/esm/cli/cli.js +8 -14
- package/lib/esm/cli/commands/readCommands.js +10 -26
- package/lib/esm/cli/options.js +0 -7
- package/lib/esm/cli/utils.js +1 -1
- package/lib/esm/common/ant.js +1 -1
- package/lib/esm/common/io.js +4 -57
- package/lib/esm/version.js +1 -1
- package/lib/types/cli/commands/readCommands.d.ts +3 -4
- package/lib/types/cli/options.d.ts +0 -4
- package/lib/types/cli/types.d.ts +1 -3
- package/lib/types/common/ant.d.ts +1 -1
- package/lib/types/common/io.d.ts +5 -30
- package/lib/types/types/io.d.ts +5 -40
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/types/types/io.d.ts
CHANGED
|
@@ -200,26 +200,12 @@ export type AoBalanceWithAddress = {
|
|
|
200
200
|
address: WalletAddress;
|
|
201
201
|
balance: number;
|
|
202
202
|
};
|
|
203
|
-
export type
|
|
204
|
-
durationMs: number;
|
|
205
|
-
decayRate: number;
|
|
206
|
-
scalingExponent: number;
|
|
207
|
-
startPriceMultiplier: number;
|
|
208
|
-
};
|
|
209
|
-
export type AoAuction = {
|
|
203
|
+
export type AoReturnedName = {
|
|
210
204
|
name: string;
|
|
211
205
|
startTimestamp: Timestamp;
|
|
212
206
|
endTimestamp: Timestamp;
|
|
213
207
|
initiator: string;
|
|
214
|
-
|
|
215
|
-
demandFactor: number;
|
|
216
|
-
settings: AoAuctionSettings;
|
|
217
|
-
};
|
|
218
|
-
export type AoAuctionPriceData = {
|
|
219
|
-
type: 'lease' | 'permabuy';
|
|
220
|
-
years?: number;
|
|
221
|
-
prices: Record<string, number>;
|
|
222
|
-
currentPrice: number;
|
|
208
|
+
premiumMultiplier: number;
|
|
223
209
|
};
|
|
224
210
|
export type AoDelegationBase = {
|
|
225
211
|
type: 'stake' | 'vault';
|
|
@@ -260,13 +246,6 @@ export type AoDelegateStakeParams = {
|
|
|
260
246
|
stakeQty: number | mIOToken;
|
|
261
247
|
};
|
|
262
248
|
export type AoGetArNSRecordsParams = PaginationParams<AoArNSNameDataWithName>;
|
|
263
|
-
export type AoArNSAuctionPricesParams = {
|
|
264
|
-
name: string;
|
|
265
|
-
type: 'lease' | 'permabuy';
|
|
266
|
-
years?: number;
|
|
267
|
-
timestamp?: number;
|
|
268
|
-
intervalMs?: number;
|
|
269
|
-
};
|
|
270
249
|
export type AoRedelegateStakeParams = {
|
|
271
250
|
target: string;
|
|
272
251
|
source: string;
|
|
@@ -299,12 +278,6 @@ export type AoExtendLeaseParams = AoArNSNameParams & {
|
|
|
299
278
|
export type AoIncreaseUndernameLimitParams = AoArNSNameParams & {
|
|
300
279
|
increaseCount: number;
|
|
301
280
|
};
|
|
302
|
-
export type AoSubmitAuctionBidParams = AoArNSNameParams & {
|
|
303
|
-
processId: string;
|
|
304
|
-
quantity?: number;
|
|
305
|
-
type?: 'lease' | 'permabuy';
|
|
306
|
-
years?: number;
|
|
307
|
-
};
|
|
308
281
|
export type AoGatewayRegistrySettings = {
|
|
309
282
|
delegates: {
|
|
310
283
|
minStake: number;
|
|
@@ -369,11 +342,10 @@ export interface AoIORead {
|
|
|
369
342
|
getArNSReservedName({ name, }: {
|
|
370
343
|
name: string;
|
|
371
344
|
}): Promise<AoArNSReservedNameData | undefined>;
|
|
372
|
-
|
|
373
|
-
|
|
345
|
+
getArNSReturnedNames(params?: PaginationParams<AoReturnedName>): Promise<PaginationResult<AoReturnedName>>;
|
|
346
|
+
getArNSReturnedName({ name, }: {
|
|
374
347
|
name: string;
|
|
375
|
-
}): Promise<
|
|
376
|
-
getArNSAuctionPrices({ name, type, years, timestamp, intervalMs, }: AoArNSAuctionPricesParams): Promise<AoAuctionPriceData>;
|
|
348
|
+
}): Promise<AoReturnedName | undefined>;
|
|
377
349
|
getEpoch(epoch?: EpochInput): Promise<AoEpochData | undefined>;
|
|
378
350
|
getCurrentEpoch(): Promise<AoEpochData>;
|
|
379
351
|
getPrescribedObservers(epoch?: EpochInput): Promise<AoWeightedObserver[]>;
|
|
@@ -441,13 +413,6 @@ export interface AoIOWrite extends AoIORead {
|
|
|
441
413
|
gatewayAddress?: WalletAddress;
|
|
442
414
|
vaultId: string;
|
|
443
415
|
}, options?: WriteOptions): Promise<AoMessageResult>;
|
|
444
|
-
submitAuctionBid(params: {
|
|
445
|
-
name: string;
|
|
446
|
-
processId: string;
|
|
447
|
-
quantity?: number;
|
|
448
|
-
type?: 'lease' | 'permabuy';
|
|
449
|
-
years?: number;
|
|
450
|
-
}, options?: WriteOptions): Promise<AoMessageResult>;
|
|
451
416
|
requestPrimaryName(params: {
|
|
452
417
|
name: string;
|
|
453
418
|
}): Promise<AoMessageResult>;
|
package/lib/types/version.d.ts
CHANGED