Skip to content

Commit

Permalink
refactor: using default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Aug 25, 2024
1 parent c6ba46e commit edda8d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/hathor-rpc-handler/src/rpcHandler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import { HathorWallet } from '@hathor/wallet-lib';
import {
GetAddressRpcRequest,
GetBalanceRpcRequest,
Expand All @@ -19,12 +20,16 @@ import {
SignOracleDataRpcRequest,
RpcResponse,
} from '../types';
import { signWithAddress } from '../rpcMethods/signWithAddress';
import { HathorWallet } from '@hathor/wallet-lib';
import { getAddress, getBalance, getUtxos, sendNanoContractTx } from '../rpcMethods';
import { getConnectedNetwork } from '../rpcMethods/getConnectedNetwork';
import {
getAddress,
getBalance,
getUtxos,
sendNanoContractTx,
getConnectedNetwork,
signOracleData,
signWithAddress,
} from '../rpcMethods';
import { InvalidRpcMethod } from '../errors';
import { signOracleData } from '../rpcMethods/signOracleData';

export const handleRpcRequest = async (
request: RpcRequest,
Expand Down
1 change: 1 addition & 0 deletions packages/hathor-rpc-handler/src/rpcMethods/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './getUtxos';
export * from './sendNanoContractTx';
export * from './signWithAddress';
export * from './getConnectedNetwork';
export * from './signOracleData';

0 comments on commit edda8d9

Please sign in to comment.