@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.
@@ -387,7 +387,7 @@ class AoANTWriteable extends AoANTReadable {
387
387
  tags: [
388
388
  ...(options?.tags ?? []),
389
389
  { name: 'Action', value: 'Set-Keywords' },
390
- { name: 'Description', value: JSON.stringify(keywords) },
390
+ { name: 'Keywords', value: JSON.stringify(keywords) },
391
391
  ],
392
392
  signer: this.signer,
393
393
  });
@@ -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 {
@@ -17,4 +17,4 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.version = void 0;
19
19
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
20
- exports.version = '2.5.5';
20
+ exports.version = '2.6.0-alpha.2';
@@ -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: 'Description', value: JSON.stringify(keywords) },
385
+ { name: 'Keywords', value: JSON.stringify(keywords) },
386
386
  ],
387
387
  signer: this.signer,
388
388
  });
@@ -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;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '2.5.5';
17
+ export const version = '2.6.0-alpha.2';
@@ -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;
@@ -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, }: {
@@ -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 = "2.5.4";
16
+ export declare const version = "2.5.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "2.5.5",
3
+ "version": "2.6.0-alpha.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"