starknet-indexer

所属分类:PostgreSQL
开发工具:HTML
文件大小:1162KB
下载次数:0
上传日期:2023-04-12 06:47:03
上 传 者sh-1993
说明:  用于织机生态系统的StarkNet索引器
(StarkNet Indexer for the Loot ecosystem)

文件列表:
starknet-indexer-develop (0, 2023-04-12)
starknet-indexer-develop\D_-100.jpg (56265, 2023-04-12)
starknet-indexer-develop\app (0, 2023-04-12)
starknet-indexer-develop\app\abis (0, 2023-04-12)
starknet-indexer-develop\app\abis\01_TowerDefence.json (4337, 2023-04-12)
starknet-indexer-develop\app\abis\Exchange_ERC20_1155.json (17254, 2023-04-12)
starknet-indexer-develop\app\abis\LootRealm.json (12287, 2023-04-12)
starknet-indexer-develop\app\abis\Lore.json (6744, 2023-04-12)
starknet-indexer-develop\app\context.ts (365, 2023-04-12)
starknet-indexer-develop\app\db (0, 2023-04-12)
starknet-indexer-develop\app\db\addWheatAndFishResources.ts (810, 2023-04-12)
starknet-indexer-develop\app\db\bastionsGeoData.json (140, 2023-04-12)
starknet-indexer-develop\app\db\loadRealmCoordinates.ts (923, 2023-04-12)
starknet-indexer-develop\app\db\loreInit.ts (1309, 2023-04-12)
starknet-indexer-develop\app\db\realmsGeoData.json (588216, 2023-04-12)
starknet-indexer-develop\app\db\realmsL1DB.json (4006352, 2023-04-12)
starknet-indexer-develop\app\entities (0, 2023-04-12)
starknet-indexer-develop\app\entities\desiege (0, 2023-04-12)
starknet-indexer-develop\app\entities\desiege\Desiege.ts (563, 2023-04-12)
starknet-indexer-develop\app\entities\index.ts (996, 2023-04-12)
starknet-indexer-develop\app\entities\lore (0, 2023-04-12)
starknet-indexer-develop\app\entities\lore\LoreEntitiy.ts (440, 2023-04-12)
starknet-indexer-develop\app\entities\lore\LoreEntityRevision.ts (736, 2023-04-12)
starknet-indexer-develop\app\entities\lore\LorePOI.ts (315, 2023-04-12)
starknet-indexer-develop\app\entities\lore\LorePoisOnEntityRevisions.ts (335, 2023-04-12)
starknet-indexer-develop\app\entities\lore\LoreProp.ts (252, 2023-04-12)
starknet-indexer-develop\app\entities\lore\LorePropsOnEntityRevisions.ts (335, 2023-04-12)
starknet-indexer-develop\app\entities\settling (0, 2023-04-12)
starknet-indexer-develop\app\entities\settling\Army.ts (2237, 2023-04-12)
starknet-indexer-develop\app\entities\settling\BastionHistory.ts (523, 2023-04-12)
starknet-indexer-develop\app\entities\settling\BattalionCost.ts (429, 2023-04-12)
starknet-indexer-develop\app\entities\settling\BattalionStats.ts (501, 2023-04-12)
starknet-indexer-develop\app\entities\settling\Building.ts (2258, 2023-04-12)
starknet-indexer-develop\app\entities\settling\BuildingCost.ts (404, 2023-04-12)
... ...

[![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/uQnjZhZPfu) [![Twitter](https://badgen.net/badge/icon/twitter?icon=twitter&label)](https://twitter.com/LootRealms) ![This is an image](/D_-100.jpg) # StarkNet Indexer _The is in active development and will change rapidly._ This app aims to index all events relevant to the Loot ecosystem running on StarkNet. http://starknet.events/redoc
The Stack - Apollo server - typescript - prisma - postgres
How it works 1. Poll StarkNet for specific events. 2. Pipe events into postgres 3. Exposes a graphql endpoint for the client to consume
Requirements - A recent version of Node.js - prisma cli
Getting Setup ``` yarn // start postgres docker. You will have to terminate a local postgres if it is running. sudo service postgresql stop docker-compose up // run first time then after schema change npx prisma migrate dev // init test DB data. You will need to install ts-node ts-node app/db/mockDB.ts // start server yarn start ``` Visit http://localhost:3333/graphql in your web browser.
Adding New Models 1. Add schema to prisma/schema.prisma 2. Add new resolver 3. Add entitie & types 4. Run migration
Contributing We encourage pull requests. 1. Create an issue to describe the improvement you're making. Provide as much detail as possible in the beginning so the team understands your improvement. 2. Fork the repo so you can make and test changes in your local repository. Test your changes. 3. Create a pull request and describe the changes you made. 4. Include a reference to the Issue you created. Monitor and respond to comments made by the team around code standards and suggestions. Most pull requests will have some back and forth. 5. If you have further questions, visit [#builders-chat](https://discord.com/invite/yP4BCbRjUs) in our discord and make sure to reference your issue number. Thank you for taking the time to make our project better!
Tasks 1. Add schema to prisma/schema.prisma 2. Add new resolver 3. Add entitie & types 4. Run migration
Utils http://starknet.events/docs#/events/get_events_api_v1_get_events_get https://www.prisma.io/docs/concepts/components/prisma-client/crud
# Bibliotheca DAO repos | Content | Repository | Description | | ------------- | --------------------------------------------------------------------------------- | -------------------------------------------------------- | | **contracts** | [realms-contracts](https://github.com/BibliothecaForAdventurers/realms-contracts) | StarkNet/Cairo and Ethereum/solidity contracts. | | **ui, atlas** | [realms-react](https://github.com/BibliothecaForAdventurers/realms-react) | All user-facing react code (website, Atlas, ui library). | | **indexer** | [starknet-indexer](https://github.com/BibliothecaForAdventurers/starknet-indexer) | A graphql endpoint for the Lootverse on StarkNet. | | **bot** | [squire](https://github.com/BibliothecaForAdventurers/squire) | A Twitter/Discord bot for the Lootverse. | | **subgraph** | [loot-subgraph](https://github.com/BibliothecaForAdventurers/loot-subgraph) | A subgraph (TheGraph) for the Lootverse on Eth Mainnet. |

近期下载者

相关文件


收藏者