Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/alpha' into update-auth-ap-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnoW committed Jul 27, 2022
2 parents 9a0e9eb + 532234d commit 90e1721
Show file tree
Hide file tree
Showing 104 changed files with 730 additions and 1,262 deletions.
7 changes: 7 additions & 0 deletions .changeset/early-points-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@moralisweb3/core': major
'@moralisweb3/sol-api': major
'@moralisweb3/sol-utils': major
---

Adding solUtils package to codebase.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
id: cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}_C1
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}_C2
- name: Install packages
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
Expand All @@ -55,7 +55,7 @@ jobs:
id: cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}_C1
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}_C2
- name: ESLint
run: yarn lint
continue-on-error: true
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
id: cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}_C1
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}_C2
- name: Prettier
run: yarn format:check

Expand All @@ -111,7 +111,7 @@ jobs:
id: cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}_C1
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}_C2
- name: Build
run: yarn build
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion demos/test-node/src/SolApi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SolNetworkName } from '@moralisweb3/core';
import { SolNetworkName } from '@moralisweb3/sol-utils';
import Moralis from 'moralis';
import { smokeTest } from './Tester';

Expand Down
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ module.exports = {
// Map workspaces to their source code so that Jest can resolve them correctly.
moduleNameMapper: {
'^@moralisweb3/evm-api': '<rootDir>/../evmApi/src',
'^@moralisweb3/sol-utils': '<rootDir>/../solUtils/src',
'^@moralisweb3/evm-utils': '<rootDir>/../evmUtils/src',
'^@moralisweb3/api': '<rootDir>/../api/src',
'^@moralisweb3/api-utils': '<rootDir>/../apiUtils/src',
'^@moralisweb3/core': '<rootDir>/../core/src',
'^@moralisweb3/(.*)$': '<rootDir>/../$1/src',
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@moralisweb3/api",
"name": "@moralisweb3/api-utils",
"author": "Moralis",
"version": "2.0.0-alpha.2",
"license": "MIT",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Module, MoralisCore, MoralisCoreProvider } from '@moralisweb3/core';
import { ApiConfigSetup } from './config/ApiConfigSetup';

export class MoralisApi extends Module {
export class MoralisApiUtils extends Module {
public static readonly moduleName = 'api';

public static create(core?: MoralisCore): MoralisApi {
return new MoralisApi(core ?? MoralisCoreProvider.getDefault());
public static create(core?: MoralisCore): MoralisApiUtils {
return new MoralisApiUtils(core ?? MoralisCoreProvider.getDefault());
}

public constructor(core: MoralisCore) {
super(MoralisApi.moduleName, core);
super(MoralisApiUtils.moduleName, core);
}

public setup() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export * from './ApiResultAdapter';
export * from './PaginatedResolver';
export * from './ApiPaginatedResultAdapter';
export * from './utils';
export * from './MoralisApi';
export * from './MoralisApiUtils';
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { MoralisCoreProvider } from '@moralisweb3/core';
import { MoralisEvmUtils } from '@moralisweb3/evm-utils';
import { MoralisApi } from '@moralisweb3/api';
import { MoralisApiUtils } from '@moralisweb3/api-utils';

export const setupApi = () => {
const core = MoralisCoreProvider.getDefault();
const api = MoralisApi.create();
const apiUtils = MoralisApiUtils.create();
const evmUtils = MoralisEvmUtils.create();

core.registerModules([api, evmUtils]);
core.registerModules([apiUtils, evmUtils]);

return core;
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@moralisweb3/core": "^2.0.0-alpha.2",
"@moralisweb3/api": "^2.0.0-alpha.2",
"@moralisweb3/api-utils": "^2.0.0-alpha.2",
"@moralisweb3/evm-utils": "^2.0.0-alpha.2"
}
}
2 changes: 1 addition & 1 deletion packages/auth/src/resolvers/evmRequestChallenge.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { toCamelCase } from '@moralisweb3/core';
import { operations } from '../generated/types';
import { BASE_URL } from '../MoralisAuth';
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/src/resolvers/evmVerifyChallenge.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { maybe, toCamelCase } from '@moralisweb3/core';
import { EvmAddress, EvmChain } from '@moralisweb3/evm-utils';
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { operations } from '../generated/types';
import { BASE_URL } from '../MoralisAuth';

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Config/MoralisConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SolNetworkish } from '../dataTypes';
import { SolNetworkish } from './interfaces';
import { CoreConfig, EvmAddressFormat, EvmChainIdFormat } from './CoreConfig';
import { EvmChainish } from './interfaces/EvmChainish';

Expand Down
14 changes: 14 additions & 0 deletions packages/core/src/Config/interfaces/SolNetworkish.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Note this is just an interface, used in the core config.
* The implementations are located in the @moralisweb3/sol-utils package.
*/

export const solNetworkNames = ['mainnet', 'devnet'] as const;

export type SolNetworkName = typeof solNetworkNames[number];

export interface SolNetworkable {
network: SolNetworkName;
}

export type SolNetworkish = SolNetworkable | string;
1 change: 1 addition & 0 deletions packages/core/src/Config/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './SolNetworkish';
export * from './EvmChainish';
3 changes: 0 additions & 3 deletions packages/core/src/dataTypes/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export * from './SolNetwork';
export * from './SolAddress';
export * from './SolNative';
export * from './abstract';
2 changes: 1 addition & 1 deletion packages/evmApi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@moralisweb3/api": "^2.0.0-alpha.2",
"@moralisweb3/api-utils": "^2.0.0-alpha.2",
"@moralisweb3/core": "^2.0.0-alpha.2",
"@moralisweb3/evm-utils": "^2.0.0-alpha.2",
"ethers": "^5.6.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/account/getNFTTransfers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNative } from '@moralisweb3/evm-utils';
import { operations } from '../../generated/types';
import { BASE_URL } from '../../EvmApi';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { EvmChainResolver } from '../EvmChainResolver';

type operation = 'getNFTTransfers';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/account/getNFTs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNFT } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNFT } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/account/getNativeBalance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmAddressish, EvmChainish, EvmNative, EvmAddress } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/account/getTokenBalances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Camelize } from '@moralisweb3/core';
import { Erc20Token, Erc20Value, EvmAddressish, EvmChainish, EvmAddress } from '@moralisweb3/evm-utils';
import { operations } from '../../generated/types';
import { BASE_URL } from '../../EvmApi';
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { EvmChainResolver } from '../EvmChainResolver';

type operation = 'getTokenBalances';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/account/getTokenTransfers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress } from '@moralisweb3/evm-utils';
import { operations } from '../../generated/types';
import { BigNumber } from 'ethers';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { BASE_URL } from '../../EvmApi';
import { EvmChainResolver } from '../EvmChainResolver';

Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/account/getTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BigNumber } from 'ethers';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmTransactionReceipt, EvmAddress } from '@moralisweb3/evm-utils';
import { operations } from '../../generated/types';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { BASE_URL } from '../../EvmApi';
import { EvmChainResolver } from '../EvmChainResolver';

Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/defi/getPairAddress.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { Erc20Token, EvmAddress, EvmAddressish, EvmChainish } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/defi/getPairReserves.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmAddress, EvmAddressish, EvmChainish } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/info/endpointWeights.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { BASE_URL } from '../../EvmApi';
import { operations } from '../../generated/types';

Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/info/web3ApiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { BASE_URL } from '../../EvmApi';
import { operations } from '../../generated/types';

Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/native/getBlock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmAddress, EvmChainish, EvmTransactionReceipt } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/native/getContractEvents.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver, BodyType, ApiPaginatedResponse } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver, BodyType, ApiPaginatedResponse } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmAddress, EvmAddressish } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/native/getDateToBlock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { EvmChainish } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
import { operations } from '../../generated/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/native/getLogsByAddress.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmTransactionLog } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmAddress, EvmNative, EvmNFT } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/native/getTransaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmTransactionReceipt } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { EvmChainish, EvmAddress, EvmAddressish } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
import { operations } from '../../generated/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/resolve/resolveAddress.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmAddress, EvmAddressish } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/resolve/resolveDomain.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { EvmAddress } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
import { operations } from '../../generated/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/storage/uploadFolder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver, BodyType } from '@moralisweb3/api';
import { ApiResolver, BodyType } from '@moralisweb3/api-utils';
import { BASE_URL } from '../../EvmApi';
import { operations } from '../../generated/types';

Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getAllTokenIds.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedResolver, ApiPaginatedOptions } from '@moralisweb3/api';
import { ApiPaginatedResolver, ApiPaginatedOptions } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNFT } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNative } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getNFTLowestPrice.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNative } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getNFTMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { toCamelCase } from '@moralisweb3/core';
import { EvmAddress, EvmAddressish, EvmChain, EvmChainish } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getNFTOwners.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNFT } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getNFTTrades.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNative } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmChainish, EvmAddress, EvmNative } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, Erc20Value } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getTokenAllowance.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BigNumber } from 'ethers';
import { Camelize } from '@moralisweb3/core';
import { EvmAddress, EvmAddressish, EvmChainish } from '@moralisweb3/evm-utils';
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { operations } from '../../generated/types';
import { BASE_URL } from '../../EvmApi';
import { EvmChainResolver } from '../EvmChainResolver';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getTokenIdMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNFT } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getTokenIdOwners.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api';
import { ApiPaginatedOptions, ApiPaginatedResolver } from '@moralisweb3/api-utils';
import { Camelize } from '@moralisweb3/core';
import { EvmChainish, EvmAddressish, EvmAddress, EvmNFT } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getTokenMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { Erc20Token, EvmChainish, EvmAddressish, EvmAddress } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { Erc20Token, EvmChainish } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
2 changes: 1 addition & 1 deletion packages/evmApi/src/resolvers/token/getTokenPrice.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiResolver } from '@moralisweb3/api';
import { ApiResolver } from '@moralisweb3/api-utils';
import { Camelize, toCamelCase } from '@moralisweb3/core';
import { EvmNative, EvmAddress, EvmChainish, EvmAddressish } from '@moralisweb3/evm-utils';
import { BASE_URL } from '../../EvmApi';
Expand Down
Loading

0 comments on commit 90e1721

Please sign in to comment.