Skip to content

Commit

Permalink
[PLA-1509] Add metadata canary-matrix v1003 (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio authored Dec 14, 2023
1 parent 573cab4 commit a7cf197
Show file tree
Hide file tree
Showing 10 changed files with 8,473 additions and 270 deletions.
11 changes: 11 additions & 0 deletions db/migrations/1702414341972-Data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = class Data1702414341972 {
name = 'Data1702414341972'

async up(db) {
await db.query(`CREATE INDEX "IDX_cab3c454b0419a03584a3990ce" ON "token" ("token_id") `)
}

async down(db) {
await db.query(`DROP INDEX "public"."IDX_cab3c454b0419a03584a3990ce"`)
}
}
9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ version: "3.9"
services:
indexer_db:
container_name: indexer_db
image: postgres:14
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- indexer_db:/var/lib/postgresql/data

ports:
- "5432:5432"
# command: ["postgres", "-c", "log_statement=all"]
command: [
"postgres",
"-c", "shared_buffer=256MB",
"-c", "max_connections=200"
]

indexer_redis:
container_name: indexer_redis
Expand Down
1 change: 1 addition & 0 deletions src/mappings/multiTokens/events/token_account_created.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export async function tokenAccountCreated(
if (!token) {
// WARN: this should not happen
// do not create token account if token does not exist
// eslint-disable-next-line no-console
console.warn(
`WARN: token ${data.collectionId}-${data.tokenId} does not exist during token account creation, at block ${block.height}`
)
Expand Down
Loading

0 comments on commit a7cf197

Please sign in to comment.