Skip to content

Commit

Permalink
Merge pull request #167 from ar-io/main
Browse files Browse the repository at this point in the history
chore: main back to alpha
  • Loading branch information
dtfiedler authored Jul 12, 2024
2 parents 134ab5a + 4f07116 commit dd46eff
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
7 changes: 2 additions & 5 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/common/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,7 @@ export class IOWriteable extends IOReadable implements AoIOWrite {
protocol,
autoStake,
observerAddress,
}: Omit<UpdateGatewaySettingsParams, 'observerWallet'> & {
observerAddress: string;
},
}: UpdateGatewaySettingsParams,
options?: WriteOptions,
): Promise<AoMessageResult> {
const { tags = [] } = options || {};
Expand Down
4 changes: 1 addition & 3 deletions src/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,7 @@ export interface AoIOWrite extends AoIORead {
protocol,
autoStake,
observerAddress,
}: Omit<UpdateGatewaySettingsParams, 'observerWallet'> & {
observerAddress?: WalletAddress;
},
}: UpdateGatewaySettingsParams,
options?: WriteOptions,
): Promise<AoMessageResult>;
increaseOperatorStake(
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@

// AUTOMATICALLY GENERATED FILE - DO NOT TOUCH

export const version = '2.0.1';
export const version = '2.0.2';

0 comments on commit dd46eff

Please sign in to comment.