├── .eslintrc.js ├── .github └── workflows │ └── default.yaml ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── package.json ├── src ├── assets │ └── whiteList.ts ├── collector │ ├── block.ts │ ├── collect.ts │ ├── deleteOldData.ts │ ├── indexer │ │ ├── common.ts │ │ ├── createPairIndexer.ts │ │ ├── createPairUpdater.ts │ │ ├── index.ts │ │ ├── transferIndexer.ts │ │ ├── transferUpdater.ts │ │ ├── txHistoryIndexer.ts │ │ └── txHistoryUpdater.ts │ ├── log-finder │ │ ├── createPairLF.ts │ │ ├── index.ts │ │ ├── log-rules.ts │ │ ├── nativeTransferLF.ts │ │ ├── nonnativeTransferLF.ts │ │ └── txHistoryLF.ts │ └── main.ts ├── config.ts ├── endpoints │ ├── StatisticController.ts │ └── index.ts ├── graphql │ ├── resolvers │ │ ├── BlockResolver.ts │ │ ├── PairResolver.ts │ │ ├── TerraswapResolver.ts │ │ └── TokenResolver.ts │ └── schema │ │ ├── Block.ts │ │ ├── Pair.ts │ │ ├── TerraswapDayData.ts │ │ ├── Token.ts │ │ └── index.ts ├── lib │ ├── error │ │ ├── api.ts │ │ ├── index.ts │ │ └── params.ts │ ├── graphqlLogger.ts │ ├── logger.ts │ ├── num.ts │ ├── response.ts │ ├── terra │ │ ├── block.ts │ │ ├── index.ts │ │ ├── mantle.ts │ │ ├── oracle.ts │ │ └── token.ts │ └── utils.ts ├── loaders │ ├── app.ts │ ├── graphql.ts │ ├── index.ts │ └── server.ts ├── main.ts ├── orm │ ├── connection.ts │ ├── entities │ │ ├── BlockEntity.ts │ │ ├── ExchangeRateEntity.ts │ │ ├── PairDataEntity.ts │ │ ├── PairInfoEntity.ts │ │ ├── Recent24hEntity.ts │ │ ├── TerraswapDayDataEntity.ts │ │ ├── TokenInfoEntity.ts │ │ ├── TxHistoryEntity.ts │ │ └── index.ts │ ├── index.ts │ ├── migrations │ │ ├── 1626863171160-Initial.ts │ │ └── 1627634127821-Index.ts │ └── utils │ │ ├── index.ts │ │ └── namingStrategy.ts ├── services │ ├── BlockService.ts │ ├── PairService.ts │ ├── TerraswapService.ts │ ├── TokenService.ts │ ├── Volume24hService.ts │ └── index.ts └── types │ ├── cycle.ts │ ├── index.ts │ ├── oracle.ts │ ├── transformed.ts │ └── tx.ts └── tsconfig.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/default.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/.github/workflows/default.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/package.json -------------------------------------------------------------------------------- /src/assets/whiteList.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/assets/whiteList.ts -------------------------------------------------------------------------------- /src/collector/block.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/block.ts -------------------------------------------------------------------------------- /src/collector/collect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/collect.ts -------------------------------------------------------------------------------- /src/collector/deleteOldData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/deleteOldData.ts -------------------------------------------------------------------------------- /src/collector/indexer/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/indexer/common.ts -------------------------------------------------------------------------------- /src/collector/indexer/createPairIndexer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/indexer/createPairIndexer.ts -------------------------------------------------------------------------------- /src/collector/indexer/createPairUpdater.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/indexer/createPairUpdater.ts -------------------------------------------------------------------------------- /src/collector/indexer/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/indexer/index.ts -------------------------------------------------------------------------------- /src/collector/indexer/transferIndexer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/indexer/transferIndexer.ts -------------------------------------------------------------------------------- /src/collector/indexer/transferUpdater.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/indexer/transferUpdater.ts -------------------------------------------------------------------------------- /src/collector/indexer/txHistoryIndexer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/indexer/txHistoryIndexer.ts -------------------------------------------------------------------------------- /src/collector/indexer/txHistoryUpdater.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/indexer/txHistoryUpdater.ts -------------------------------------------------------------------------------- /src/collector/log-finder/createPairLF.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/log-finder/createPairLF.ts -------------------------------------------------------------------------------- /src/collector/log-finder/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/log-finder/index.ts -------------------------------------------------------------------------------- /src/collector/log-finder/log-rules.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/log-finder/log-rules.ts -------------------------------------------------------------------------------- /src/collector/log-finder/nativeTransferLF.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/log-finder/nativeTransferLF.ts -------------------------------------------------------------------------------- /src/collector/log-finder/nonnativeTransferLF.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/log-finder/nonnativeTransferLF.ts -------------------------------------------------------------------------------- /src/collector/log-finder/txHistoryLF.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/log-finder/txHistoryLF.ts -------------------------------------------------------------------------------- /src/collector/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/collector/main.ts -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/endpoints/StatisticController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/endpoints/StatisticController.ts -------------------------------------------------------------------------------- /src/endpoints/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/endpoints/index.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/BlockResolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/graphql/resolvers/BlockResolver.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/PairResolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/graphql/resolvers/PairResolver.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/TerraswapResolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/graphql/resolvers/TerraswapResolver.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/TokenResolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/graphql/resolvers/TokenResolver.ts -------------------------------------------------------------------------------- /src/graphql/schema/Block.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/graphql/schema/Block.ts -------------------------------------------------------------------------------- /src/graphql/schema/Pair.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/graphql/schema/Pair.ts -------------------------------------------------------------------------------- /src/graphql/schema/TerraswapDayData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/graphql/schema/TerraswapDayData.ts -------------------------------------------------------------------------------- /src/graphql/schema/Token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/graphql/schema/Token.ts -------------------------------------------------------------------------------- /src/graphql/schema/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/graphql/schema/index.ts -------------------------------------------------------------------------------- /src/lib/error/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/error/api.ts -------------------------------------------------------------------------------- /src/lib/error/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/error/index.ts -------------------------------------------------------------------------------- /src/lib/error/params.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/error/params.ts -------------------------------------------------------------------------------- /src/lib/graphqlLogger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/graphqlLogger.ts -------------------------------------------------------------------------------- /src/lib/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/logger.ts -------------------------------------------------------------------------------- /src/lib/num.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/num.ts -------------------------------------------------------------------------------- /src/lib/response.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/response.ts -------------------------------------------------------------------------------- /src/lib/terra/block.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/terra/block.ts -------------------------------------------------------------------------------- /src/lib/terra/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/terra/index.ts -------------------------------------------------------------------------------- /src/lib/terra/mantle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/terra/mantle.ts -------------------------------------------------------------------------------- /src/lib/terra/oracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/terra/oracle.ts -------------------------------------------------------------------------------- /src/lib/terra/token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/terra/token.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/loaders/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/loaders/app.ts -------------------------------------------------------------------------------- /src/loaders/graphql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/loaders/graphql.ts -------------------------------------------------------------------------------- /src/loaders/index.ts: -------------------------------------------------------------------------------- 1 | export * from './server' 2 | -------------------------------------------------------------------------------- /src/loaders/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/loaders/server.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/orm/connection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/connection.ts -------------------------------------------------------------------------------- /src/orm/entities/BlockEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/entities/BlockEntity.ts -------------------------------------------------------------------------------- /src/orm/entities/ExchangeRateEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/entities/ExchangeRateEntity.ts -------------------------------------------------------------------------------- /src/orm/entities/PairDataEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/entities/PairDataEntity.ts -------------------------------------------------------------------------------- /src/orm/entities/PairInfoEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/entities/PairInfoEntity.ts -------------------------------------------------------------------------------- /src/orm/entities/Recent24hEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/entities/Recent24hEntity.ts -------------------------------------------------------------------------------- /src/orm/entities/TerraswapDayDataEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/entities/TerraswapDayDataEntity.ts -------------------------------------------------------------------------------- /src/orm/entities/TokenInfoEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/entities/TokenInfoEntity.ts -------------------------------------------------------------------------------- /src/orm/entities/TxHistoryEntity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/entities/TxHistoryEntity.ts -------------------------------------------------------------------------------- /src/orm/entities/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/entities/index.ts -------------------------------------------------------------------------------- /src/orm/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/index.ts -------------------------------------------------------------------------------- /src/orm/migrations/1626863171160-Initial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/migrations/1626863171160-Initial.ts -------------------------------------------------------------------------------- /src/orm/migrations/1627634127821-Index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/migrations/1627634127821-Index.ts -------------------------------------------------------------------------------- /src/orm/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './namingStrategy' 2 | -------------------------------------------------------------------------------- /src/orm/utils/namingStrategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/orm/utils/namingStrategy.ts -------------------------------------------------------------------------------- /src/services/BlockService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/services/BlockService.ts -------------------------------------------------------------------------------- /src/services/PairService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/services/PairService.ts -------------------------------------------------------------------------------- /src/services/TerraswapService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/services/TerraswapService.ts -------------------------------------------------------------------------------- /src/services/TokenService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/services/TokenService.ts -------------------------------------------------------------------------------- /src/services/Volume24hService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/services/Volume24hService.ts -------------------------------------------------------------------------------- /src/services/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/services/index.ts -------------------------------------------------------------------------------- /src/types/cycle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/types/cycle.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/types/oracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/types/oracle.ts -------------------------------------------------------------------------------- /src/types/transformed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/types/transformed.ts -------------------------------------------------------------------------------- /src/types/tx.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/src/types/tx.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terra-money/terraswap-graph/HEAD/tsconfig.json --------------------------------------------------------------------------------