Skip to content

Commit

Permalink
fix: rename shared package to database
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Jun 11, 2024
1 parent 2a74b58 commit 5f93c0b
Show file tree
Hide file tree
Showing 79 changed files with 88 additions and 88 deletions.
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@akashnetwork/akash-api": "^1.3.0",
"@akashnetwork/cloudmos-shared": "*",
"@akashnetwork/database": "*",
"@chain-registry/assets": "^0.7.1",
"@cosmjs/crypto": "^0.28.11",
"@cosmjs/encoding": "^0.28.11",
Expand Down
6 changes: 3 additions & 3 deletions apps/api/src/db/dbConnection.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { chainDefinitions } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { chainModels, getChainModels, userModels } from "@akashnetwork/cloudmos-shared/dbSchemas";
import { Template, TemplateFavorite, UserAddressName, UserSetting } from "@akashnetwork/cloudmos-shared/dbSchemas/user";
import { chainDefinitions } from "@akashnetwork/database/chainDefinitions";
import { chainModels, getChainModels, userModels } from "@akashnetwork/database/dbSchemas";
import { Template, TemplateFavorite, UserAddressName, UserSetting } from "@akashnetwork/database/dbSchemas/user";
import pg from "pg";
import { Transaction as DbTransaction } from "sequelize";
import { Sequelize } from "sequelize-typescript";
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/routers/dashboardRouter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Template, UserSetting } from "@akashnetwork/cloudmos-shared/dbSchemas/user";
import { Template, UserSetting } from "@akashnetwork/database/dbSchemas/user";
import { Hono } from "hono";

import { privateMiddleware } from "@src/middlewares/privateMiddleware";
Expand Down
6 changes: 3 additions & 3 deletions apps/api/src/routes/internal/gpuPrices.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MsgCreateBid } from "@akashnetwork/akash-api/akash/market/v1beta4";
import { Block } from "@akashnetwork/cloudmos-shared/dbSchemas";
import { AkashMessage, Deployment, DeploymentGroup, DeploymentGroupResource } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Day, Transaction } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { Block } from "@akashnetwork/database/dbSchemas";
import { AkashMessage, Deployment, DeploymentGroup, DeploymentGroupResource } from "@akashnetwork/database/dbSchemas/akash";
import { Day, Transaction } from "@akashnetwork/database/dbSchemas/base";
import { createRoute, OpenAPIHono, z } from "@hono/zod-openapi";
import { addDays, sub } from "date-fns";
import { Op, QueryTypes } from "sequelize";
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/routes/internal/leasesDuration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Block } from "@akashnetwork/cloudmos-shared/dbSchemas";
import { Lease } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Block } from "@akashnetwork/database/dbSchemas";
import { Lease } from "@akashnetwork/database/dbSchemas/akash";
import { createRoute, OpenAPIHono, z } from "@hono/zod-openapi";
import { differenceInSeconds } from "date-fns";
import { Op } from "sequelize";
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/services/db/blocksService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AkashBlock as Block, AkashMessage as Message } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Transaction, Validator } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { AkashBlock as Block, AkashMessage as Message } from "@akashnetwork/database/dbSchemas/akash";
import { Transaction, Validator } from "@akashnetwork/database/dbSchemas/base";
import { addSeconds, differenceInSeconds } from "date-fns";

export async function getBlocks(limit: number) {
Expand Down
6 changes: 3 additions & 3 deletions apps/api/src/services/db/deploymentService.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as v2beta2 from "@akashnetwork/akash-api/akash/market/v1beta2";
import * as v1beta1 from "@akashnetwork/akash-api/deprecated/akash/market/v1beta1";
import { Block, Message } from "@akashnetwork/cloudmos-shared/dbSchemas";
import { Deployment, Lease } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Transaction } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { Block, Message } from "@akashnetwork/database/dbSchemas";
import { Deployment, Lease } from "@akashnetwork/database/dbSchemas/akash";
import { Transaction } from "@akashnetwork/database/dbSchemas/base";
import { Op, WhereOptions } from "sequelize";

import { decodeMsg } from "@src/utils/protobuf";
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/services/db/networkRevenueService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AkashBlock as Block } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Day } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { AkashBlock as Block } from "@akashnetwork/database/dbSchemas/akash";
import { Day } from "@akashnetwork/database/dbSchemas/base";
import { add } from "date-fns";
import { Op } from "sequelize";

Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/services/db/providerDataService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Provider, ProviderAttribute } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Provider, ProviderAttribute } from "@akashnetwork/database/dbSchemas/akash";

import { getProviderAttributesSchema } from "@src/services/external/githubService";

Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/services/db/providerStatusService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
ProviderAttributeSignature,
ProviderSnapshotNode,
ProviderSnapshotNodeGPU
} from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { ProviderSnapshot } from "@akashnetwork/cloudmos-shared/dbSchemas/akash/providerSnapshot";
} from "@akashnetwork/database/dbSchemas/akash";
import { ProviderSnapshot } from "@akashnetwork/database/dbSchemas/akash/providerSnapshot";
import { add, sub } from "date-fns";
import { Op } from "sequelize";

Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/services/db/statsService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AkashBlock as Block } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Day } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { AkashBlock as Block } from "@akashnetwork/database/dbSchemas/akash";
import { Day } from "@akashnetwork/database/dbSchemas/base";
import { subHours } from "date-fns";
import { Op, QueryTypes } from "sequelize";

Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/services/db/templateService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Template, TemplateFavorite, UserSetting } from "@akashnetwork/cloudmos-shared/dbSchemas/user";
import { Template, TemplateFavorite, UserSetting } from "@akashnetwork/database/dbSchemas/user";
import { Op } from "sequelize";
import * as uuid from "uuid";

Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/services/db/transactionsService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AkashBlock as Block, AkashMessage as Message } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { AddressReference, Transaction } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { AkashBlock as Block, AkashMessage as Message } from "@akashnetwork/database/dbSchemas/akash";
import { AddressReference, Transaction } from "@akashnetwork/database/dbSchemas/base";
import { QueryTypes } from "sequelize";

import { chainDb } from "@src/db/dbConnection";
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/services/db/userDataService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UserAddressName, UserSetting } from "@akashnetwork/cloudmos-shared/dbSchemas/user";
import { UserAddressName, UserSetting } from "@akashnetwork/database/dbSchemas/user";
import { Transaction } from "sequelize";

import { getUserPlan } from "../external/stripeService";
Expand Down
6 changes: 3 additions & 3 deletions apps/api/src/services/external/apiNodeService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Block } from "@akashnetwork/cloudmos-shared/dbSchemas";
import { Deployment, Lease, Provider, ProviderAttribute } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Validator } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { Block } from "@akashnetwork/database/dbSchemas";
import { Deployment, Lease, Provider, ProviderAttribute } from "@akashnetwork/database/dbSchemas/akash";
import { Validator } from "@akashnetwork/database/dbSchemas/base";
import axios from "axios";
import fetch from "node-fetch";
import { Op } from "sequelize";
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/services/external/stripeService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UserSetting } from "@akashnetwork/cloudmos-shared/dbSchemas/user";
import { PlanCode } from "@akashnetwork/cloudmos-shared/plans";
import { UserSetting } from "@akashnetwork/database/dbSchemas/user";
import { PlanCode } from "@akashnetwork/database/plans";
import Stripe from "stripe";

import { env } from "@src/utils/env";
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/utils/map/provider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Provider, ProviderSnapshot, ProviderSnapshotNode } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Provider, ProviderSnapshot, ProviderSnapshotNode } from "@akashnetwork/database/dbSchemas/akash";
import semver from "semver";

import { Auditor, ProviderAttributesSchema, ProviderList } from "@src/types/provider";
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"dependencies": {
"@akashnetwork/akash-api": "^1.3.0",
"@akashnetwork/cloudmos-shared": "*",
"@akashnetwork/database": "*",
"@cosmjs/crypto": "^0.31.1",
"@cosmjs/encoding": "^0.32.3",
"@cosmjs/math": "^0.31.1",
Expand Down
6 changes: 3 additions & 3 deletions apps/indexer/src/chain/chainSync.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { Block, Message } from "@akashnetwork/cloudmos-shared/dbSchemas";
import { Day, Transaction } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import { Block, Message } from "@akashnetwork/database/dbSchemas";
import { Day, Transaction } from "@akashnetwork/database/dbSchemas/base";
import { fromBase64 } from "@cosmjs/encoding";
import { decodeTxRaw } from "@cosmjs/proto-signing";
import { asyncify, eachLimit } from "async";
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/chain/genesisImporter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import fs from "fs";
import { ungzip } from "node-gzip";
import path from "path";
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/chain/nodeAccessor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import fs from "fs";

import { concurrentNodeQuery, dataFolderPath } from "@src/shared/constants";
Expand Down
8 changes: 4 additions & 4 deletions apps/indexer/src/chain/statsProcessor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { Block, Message } from "@akashnetwork/cloudmos-shared/dbSchemas";
import { AkashMessage } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Transaction } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import { Block, Message } from "@akashnetwork/database/dbSchemas";
import { AkashMessage } from "@akashnetwork/database/dbSchemas/akash";
import { Transaction } from "@akashnetwork/database/dbSchemas/base";
import { fromBase64 } from "@cosmjs/encoding";
import { decodeTxRaw } from "@cosmjs/proto-signing";
import { sha256 } from "js-sha256";
Expand Down
8 changes: 4 additions & 4 deletions apps/indexer/src/db/buildDatabase.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { Block, Message } from "@akashnetwork/cloudmos-shared/dbSchemas";
import { Day, Transaction } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { MonitoredValue } from "@akashnetwork/cloudmos-shared/dbSchemas/base/monitoredValue";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import { Block, Message } from "@akashnetwork/database/dbSchemas";
import { Day, Transaction } from "@akashnetwork/database/dbSchemas/base";
import { MonitoredValue } from "@akashnetwork/database/dbSchemas/base/monitoredValue";

import { getGenesis } from "@src/chain/genesisImporter";
import { indexers } from "@src/indexers";
Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/db/dbConnection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { chainModels } from "@akashnetwork/cloudmos-shared/dbSchemas";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import { chainModels } from "@akashnetwork/database/dbSchemas";
import pg from "pg";
import { Transaction as DbTransaction } from "sequelize";
import { Sequelize } from "sequelize-typescript";
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/db/keybaseProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Validator } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { Validator } from "@akashnetwork/database/dbSchemas/base";
import fetch from "node-fetch";
import { Op } from "sequelize";

Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/db/priceHistoryProvider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { Day } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import { Day } from "@akashnetwork/database/dbSchemas/base";
import { isSameDay } from "date-fns";
import fetch from "node-fetch";

Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { activeChain, chainDefinitions } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { activeChain, chainDefinitions } from "@akashnetwork/database/chainDefinitions";
import * as Sentry from "@sentry/node";
import express from "express";

Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/indexers/akashStatsIndexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {
ProviderSnapshotNode,
ProviderSnapshotNodeCPU,
ProviderSnapshotNodeGPU
} from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { AkashBlock as Block, AkashMessage as Message } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
} from "@akashnetwork/database/dbSchemas/akash";
import { AkashBlock as Block, AkashMessage as Message } from "@akashnetwork/database/dbSchemas/akash";
import { Op, Transaction as DbTransaction } from "sequelize";
import * as uuid from "uuid";

Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/indexers/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { activeChain } from "@akashnetwork/database/chainDefinitions";

import { AkashStatsIndexer } from "./akashStatsIndexer";
import { Indexer } from "./indexer";
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/indexers/indexer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Block, Message, Transaction } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { Block, Message, Transaction } from "@akashnetwork/database/dbSchemas/base";
import { DecodedTxRaw } from "@cosmjs/proto-signing";
import { Transaction as DbTransaction } from "sequelize";

Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/indexers/messageAddressesIndexer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { AddressReference, Message, Transaction } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import { AddressReference, Message, Transaction } from "@akashnetwork/database/dbSchemas/base";
import { toBech32 } from "@cosmjs/encoding";
import { DecodedTxRaw, decodePubkey } from "@cosmjs/proto-signing";
import { MsgMultiSend, MsgSend } from "cosmjs-types/cosmos/bank/v1beta1/tx";
Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/indexers/validatorIndexer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { Message, Validator } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import { Message, Validator } from "@akashnetwork/database/dbSchemas/base";
import { fromBase64, fromBech32, toBech32, toHex } from "@cosmjs/encoding";
import { MsgCreateValidator, MsgEditValidator } from "cosmjs-types/cosmos/staking/v1beta1/tx";
import { Transaction as DbTransaction } from "sequelize";
Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/monitors/addressBalanceMonitor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { MonitoredValue } from "@akashnetwork/cloudmos-shared/dbSchemas/base/monitoredValue";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import { MonitoredValue } from "@akashnetwork/database/dbSchemas/base/monitoredValue";
import axios from "axios";

export class AddressBalanceMonitor {
Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/monitors/deploymentBalanceMonitor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { MonitoredValue } from "@akashnetwork/cloudmos-shared/dbSchemas/base/monitoredValue";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import { MonitoredValue } from "@akashnetwork/database/dbSchemas/base/monitoredValue";
import * as Sentry from "@sentry/node";
import axios from "axios";

Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/providers/ipLocationProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Provider } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Provider } from "@akashnetwork/database/dbSchemas/akash";
import axios from "axios";
import dns from "dns/promises";

Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/providers/providerStatusProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
ProviderSnapshotNode,
ProviderSnapshotNodeCPU,
ProviderSnapshotNodeGPU
} from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
} from "@akashnetwork/database/dbSchemas/akash";
import { asyncify, eachLimit } from "async";
import axios from "axios";
import { add, differenceInDays, differenceInHours, differenceInMinutes, isSameDay } from "date-fns";
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/providers/statusEndpointHandlers/grpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NodeResources } from "@akashnetwork/akash-api/akash/inventory/v1";
import { ResourcesMetric, Status } from "@akashnetwork/akash-api/akash/provider/v1";
import { ProviderRPCClient } from "@akashnetwork/akash-api/akash/provider/v1/grpc-js";
import { Empty } from "@akashnetwork/akash-api/google/protobuf";
import { Provider } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Provider } from "@akashnetwork/database/dbSchemas/akash";
import memoize from "lodash/memoize";
import { promisify } from "util";

Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/providers/statusEndpointHandlers/rest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Provider } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Provider } from "@akashnetwork/database/dbSchemas/akash";
import axios from "axios";
import https from "https";

Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/shared/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { activeChain } from "@akashnetwork/cloudmos-shared/chainDefinitions";
import { activeChain } from "@akashnetwork/database/chainDefinitions";
import path from "path";

import { env } from "./utils/env";
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/shared/utils/akashPaymentSettle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Deployment, Lease } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Deployment, Lease } from "@akashnetwork/database/dbSchemas/akash";

// This copies the logic of the akash node

Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/src/tasks/providerUptimeTracker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Provider } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Provider } from "@akashnetwork/database/dbSchemas/akash";
import { secondsInDay } from "date-fns";
import { QueryTypes } from "sequelize";

Expand Down
4 changes: 2 additions & 2 deletions apps/indexer/src/tasks/usdSpendingTracker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AkashBlock } from "@akashnetwork/cloudmos-shared/dbSchemas/akash";
import { Day } from "@akashnetwork/cloudmos-shared/dbSchemas/base";
import { AkashBlock } from "@akashnetwork/database/dbSchemas/akash";
import { Day } from "@akashnetwork/database/dbSchemas/base";
import { Op } from "sequelize";

import { sequelize } from "@src/db/dbConnection";
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 5f93c0b

Please sign in to comment.