@ar.io/sdk 2.5.5 → 2.6.0-alpha.1
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 +0 -48
- package/bundles/web.bundle.min.js +3 -3
- package/lib/cjs/common/ant.js +1 -1
- package/lib/cjs/common/io.js +5 -0
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/ant.js +1 -1
- package/lib/esm/common/io.js +5 -0
- package/lib/esm/version.js +1 -1
- package/lib/types/common/io.d.ts +2 -1
- package/lib/types/types/io.d.ts +21 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/common/ant.js
CHANGED
|
@@ -387,7 +387,7 @@ class AoANTWriteable extends AoANTReadable {
|
|
|
387
387
|
tags: [
|
|
388
388
|
...(options?.tags ?? []),
|
|
389
389
|
{ name: 'Action', value: 'Set-Keywords' },
|
|
390
|
-
{ name: '
|
|
390
|
+
{ name: 'Keywords', value: JSON.stringify(keywords) },
|
|
391
391
|
],
|
|
392
392
|
signer: this.signer,
|
|
393
393
|
});
|
package/lib/cjs/common/io.js
CHANGED
|
@@ -452,6 +452,11 @@ class IOReadable {
|
|
|
452
452
|
],
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
+
async getGatewayRegistrySettings() {
|
|
456
|
+
return this.process.read({
|
|
457
|
+
tags: [{ name: 'Action', value: 'Gateway-Registry-Settings' }],
|
|
458
|
+
});
|
|
459
|
+
}
|
|
455
460
|
}
|
|
456
461
|
exports.IOReadable = IOReadable;
|
|
457
462
|
class IOWriteable extends IOReadable {
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/common/ant.js
CHANGED
|
@@ -382,7 +382,7 @@ export class AoANTWriteable extends AoANTReadable {
|
|
|
382
382
|
tags: [
|
|
383
383
|
...(options?.tags ?? []),
|
|
384
384
|
{ name: 'Action', value: 'Set-Keywords' },
|
|
385
|
-
{ name: '
|
|
385
|
+
{ name: 'Keywords', value: JSON.stringify(keywords) },
|
|
386
386
|
],
|
|
387
387
|
signer: this.signer,
|
|
388
388
|
});
|
package/lib/esm/common/io.js
CHANGED
|
@@ -448,6 +448,11 @@ export class IOReadable {
|
|
|
448
448
|
],
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
+
async getGatewayRegistrySettings() {
|
|
452
|
+
return this.process.read({
|
|
453
|
+
tags: [{ name: 'Action', value: 'Gateway-Registry-Settings' }],
|
|
454
|
+
});
|
|
455
|
+
}
|
|
451
456
|
}
|
|
452
457
|
export class IOWriteable extends IOReadable {
|
|
453
458
|
signer;
|
package/lib/esm/version.js
CHANGED
package/lib/types/common/io.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import Arweave from 'arweave';
|
|
17
17
|
import { AoArNSNameDataWithName, AoArNSReservedNameData, AoAuction, AoBalanceWithAddress, AoEpochDistributionData, AoEpochObservationData, AoGatewayWithAddress, AoJoinNetworkParams, AoMessageResult, AoPrimaryName, AoPrimaryNameRequest, AoRedelegationFeeInfo, AoTokenSupplyData, AoUpdateGatewaySettingsParams, AoWeightedObserver, ContractSigner, PaginationParams, PaginationResult, ProcessConfiguration, TransactionId, WalletAddress, WithSigner, WriteOptions } from '../types/index.js';
|
|
18
|
-
import { AoArNSNameData, AoArNSReservedNameDataWithName, AoAuctionPriceData, AoDelegation, AoEpochData, AoEpochSettings, AoGateway, AoGatewayDelegateWithAddress, AoGatewayVault, AoIORead, AoIOWrite, AoRegistrationFees, AoVaultData, AoWalletVault, EpochInput } from '../types/io.js';
|
|
18
|
+
import { AoArNSNameData, AoArNSReservedNameDataWithName, AoAuctionPriceData, AoDelegation, AoEpochData, AoEpochSettings, AoGateway, AoGatewayDelegateWithAddress, AoGatewayRegistrySettings, AoGatewayVault, AoIORead, AoIOWrite, AoRegistrationFees, AoVaultData, AoWalletVault, EpochInput } from '../types/io.js';
|
|
19
19
|
import { mIOToken } from '../types/token.js';
|
|
20
20
|
import { AOProcess } from './contracts/ao-process.js';
|
|
21
21
|
export declare class IO {
|
|
@@ -162,6 +162,7 @@ export declare class IOReadable implements AoIORead {
|
|
|
162
162
|
getRedelegationFee(params: {
|
|
163
163
|
address: WalletAddress;
|
|
164
164
|
}): Promise<AoRedelegationFeeInfo>;
|
|
165
|
+
getGatewayRegistrySettings(): Promise<AoGatewayRegistrySettings>;
|
|
165
166
|
}
|
|
166
167
|
export declare class IOWriteable extends IOReadable implements AoIOWrite {
|
|
167
168
|
protected process: AOProcess;
|
package/lib/types/types/io.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ export type AoGatewayWithAddress = AoGateway & {
|
|
|
179
179
|
export type AoGatewayDelegate = {
|
|
180
180
|
delegatedStake: number;
|
|
181
181
|
startTimestamp: Timestamp;
|
|
182
|
+
vaults: Record<WalletAddress, AoVaultData>;
|
|
182
183
|
};
|
|
183
184
|
export type AoGatewayDelegateWithAddress = AoGatewayDelegate & {
|
|
184
185
|
address: WalletAddress;
|
|
@@ -245,6 +246,25 @@ export type AoGatewayVault = {
|
|
|
245
246
|
};
|
|
246
247
|
export type AoJoinNetworkParams = Pick<AoGateway, 'operatorStake' | 'observerAddress'> & Partial<AoGatewaySettings>;
|
|
247
248
|
export type AoUpdateGatewaySettingsParams = AtLeastOne<AoJoinNetworkParams>;
|
|
249
|
+
export type AoGatewayRegistrySettings = {
|
|
250
|
+
delegates: {
|
|
251
|
+
minStake: number;
|
|
252
|
+
withdrawLengthMs: number;
|
|
253
|
+
};
|
|
254
|
+
observers: {
|
|
255
|
+
tenureWeightDays: number;
|
|
256
|
+
tenureWeightPeriod: number;
|
|
257
|
+
maxTenureWeight: number;
|
|
258
|
+
maxPerEpoch: number;
|
|
259
|
+
};
|
|
260
|
+
operators: {
|
|
261
|
+
minStake: number;
|
|
262
|
+
withdrawLengthMs: number;
|
|
263
|
+
leaveLengthMs: number;
|
|
264
|
+
failedEpochCountMax: number;
|
|
265
|
+
failedEpochSlashRate: number;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
248
268
|
export interface AoIORead {
|
|
249
269
|
getInfo(): Promise<{
|
|
250
270
|
Ticker: string;
|
|
@@ -329,6 +349,7 @@ export interface AoIORead {
|
|
|
329
349
|
getRedelegationFee(params: {
|
|
330
350
|
address: WalletAddress;
|
|
331
351
|
}): Promise<AoRedelegationFeeInfo>;
|
|
352
|
+
getGatewayRegistrySettings(): Promise<AoGatewayRegistrySettings>;
|
|
332
353
|
}
|
|
333
354
|
export interface AoIOWrite extends AoIORead {
|
|
334
355
|
transfer({ target, qty, }: {
|
package/lib/types/version.d.ts
CHANGED