diff --git a/CHANGELOG.md b/CHANGELOG.md index 2377d627..cc2d1494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [2.0.2](https://github.com/ar-io/ar-io-sdk/compare/v2.0.1...v2.0.2) (2024-07-12) + + +### Bug Fixes + +* **types:** update gateway settings type to only support `observerAddress` ([13e073b](https://github.com/ar-io/ar-io-sdk/commit/13e073ba6d7482028e43d5c8fbab8e769d2c9e01)) + ## [2.0.1](https://github.com/ar-io/ar-io-sdk/compare/v2.0.0...v2.0.1) (2024-07-11) diff --git a/package.json b/package.json index a739923a..04c3e225 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ar.io/sdk", - "version": "2.0.1", + "version": "2.0.2", "repository": { "type": "git", "url": "git+https://github.com/ar-io/ar-io-sdk.git" diff --git a/src/common.ts b/src/common.ts index 5243d94b..79a7ac04 100644 --- a/src/common.ts +++ b/src/common.ts @@ -74,10 +74,7 @@ export type JoinNetworkParams = Overwrite< { minDelegatedStake: number | mIOToken; // TODO: this is for backwards compatibility } -> & { - qty: number | mIOToken; // TODO: this is for backwards compatibility - observerWallet?: WalletAddress; -}; +>; // Original type definition refined with proper field-specific types export type UpdateGatewaySettingsParamsBase = { @@ -91,7 +88,7 @@ export type UpdateGatewaySettingsParamsBase = { properties?: string; protocol?: AllowedProtocols; autoStake?: boolean; - observerWallet?: WalletAddress; + observerAddress?: WalletAddress; }; // Utility type to require at least one of the fields diff --git a/src/common/io.ts b/src/common/io.ts index 9c2c3e6e..0ec31ba8 100644 --- a/src/common/io.ts +++ b/src/common/io.ts @@ -740,9 +740,7 @@ export class IOWriteable extends IOReadable implements AoIOWrite { protocol, autoStake, observerAddress, - }: Omit & { - observerAddress: string; - }, + }: UpdateGatewaySettingsParams, options?: WriteOptions, ): Promise { const { tags = [] } = options || {}; diff --git a/src/io.ts b/src/io.ts index 857b41a1..8d73c15e 100644 --- a/src/io.ts +++ b/src/io.ts @@ -219,9 +219,7 @@ export interface AoIOWrite extends AoIORead { protocol, autoStake, observerAddress, - }: Omit & { - observerAddress?: WalletAddress; - }, + }: UpdateGatewaySettingsParams, options?: WriteOptions, ): Promise; increaseOperatorStake( diff --git a/src/version.ts b/src/version.ts index 20adadc1..fd984ab2 100644 --- a/src/version.ts +++ b/src/version.ts @@ -17,4 +17,4 @@ // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH -export const version = '2.0.1'; +export const version = '2.0.2';