@ar.io/sdk 2.5.5 → 2.6.0-alpha.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/README.md +1 -1
- 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 +20 -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
|
@@ -245,6 +245,25 @@ export type AoGatewayVault = {
|
|
|
245
245
|
};
|
|
246
246
|
export type AoJoinNetworkParams = Pick<AoGateway, 'operatorStake' | 'observerAddress'> & Partial<AoGatewaySettings>;
|
|
247
247
|
export type AoUpdateGatewaySettingsParams = AtLeastOne<AoJoinNetworkParams>;
|
|
248
|
+
export type AoGatewayRegistrySettings = {
|
|
249
|
+
delegates: {
|
|
250
|
+
minStake: number;
|
|
251
|
+
withdrawLengthMs: number;
|
|
252
|
+
};
|
|
253
|
+
observers: {
|
|
254
|
+
tenureWeightDays: number;
|
|
255
|
+
tenureWeightPeriod: number;
|
|
256
|
+
maxTenureWeight: number;
|
|
257
|
+
maxPerEpoch: number;
|
|
258
|
+
};
|
|
259
|
+
operators: {
|
|
260
|
+
minStake: number;
|
|
261
|
+
withdrawLengthMs: number;
|
|
262
|
+
leaveLengthMs: number;
|
|
263
|
+
failedEpochCountMax: number;
|
|
264
|
+
failedEpochSlashRate: number;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
248
267
|
export interface AoIORead {
|
|
249
268
|
getInfo(): Promise<{
|
|
250
269
|
Ticker: string;
|
|
@@ -329,6 +348,7 @@ export interface AoIORead {
|
|
|
329
348
|
getRedelegationFee(params: {
|
|
330
349
|
address: WalletAddress;
|
|
331
350
|
}): Promise<AoRedelegationFeeInfo>;
|
|
351
|
+
getGatewayRegistrySettings(): Promise<AoGatewayRegistrySettings>;
|
|
332
352
|
}
|
|
333
353
|
export interface AoIOWrite extends AoIORead {
|
|
334
354
|
transfer({ target, qty, }: {
|
package/lib/types/version.d.ts
CHANGED