Skip to content

Commit

Permalink
Update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Sep 1, 2023
1 parent 9af2f28 commit 10ec317
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bindings/nodejs/lib/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ import { HexEncodedString } from '../utils';
import {
IBlockMetadata,
INodeInfo,
INodeInfoProtocol,
IPeer,
UTXOInput,
Response,
OutputId,
ProtocolParameters,
} from '../types';
import { OutputResponse, IOutputsResponse } from '../types/models/api';

Expand Down Expand Up @@ -294,7 +294,7 @@ export class Client {
/**
* Returns the protocol parameters.
*/
async getProtocolParameters(): Promise<INodeInfoProtocol> {
async getProtocolParameters(): Promise<ProtocolParameters> {
const response = await this.methodHandler.callMethod({
name: 'getProtocolParameters',
});
Expand Down
4 changes: 2 additions & 2 deletions bindings/nodejs/lib/types/client/network.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021-2023 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { INodeInfoProtocol } from '../models/info';
import { ProtocolParameters } from '../models/info';

/**
* Network types.
Expand Down Expand Up @@ -45,5 +45,5 @@ export interface INode {
*/
export interface INetworkInfo {
/** Protocol parameters */
protocolParameters: INodeInfoProtocol;
protocolParameters: ProtocolParameters;
}
4 changes: 2 additions & 2 deletions bindings/nodejs/lib/types/utils/bridge/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
TransactionId,
TokenSchemeType,
Output,
IRent,
RentStructure,
} from '../../';
import { AccountId } from '../../block/id';
import { SlotCommitment } from '../../block/slot';
Expand Down Expand Up @@ -65,7 +65,7 @@ export interface __ComputeStorageDepositMethod__ {
name: 'computeStorageDeposit';
data: {
output: Output;
rent: IRent;
rent: RentStructure;
};
}

Expand Down
4 changes: 2 additions & 2 deletions bindings/nodejs/lib/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
TransactionId,
TokenSchemeType,
Output,
IRent,
RentStructure,
OutputId,
hexToBigInt,
u64,
Expand Down Expand Up @@ -127,7 +127,7 @@ export class Utils {
* @param rent Rent cost of objects which take node resources.
* @returns The required storage deposit.
*/
static computeStorageDeposit(output: Output, rent: IRent): u64 {
static computeStorageDeposit(output: Output, rent: RentStructure): u64 {
const depositHex = callUtilsMethod({
name: 'computeStorageDeposit',
data: {
Expand Down

0 comments on commit 10ec317

Please sign in to comment.