Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stick v11 #270

Merged
merged 8 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: release-${{ github.event.inputs.squid }}
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: ${{ github.event.inputs.squid }} update
title: ${{ github.event.inputs.squid }} update
body: |
Expand Down
11 changes: 11 additions & 0 deletions db/migrations/1712590816868-Data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = class Data1712590816868 {
name = 'Data1712590816868'

async up(db) {
await db.query(`CREATE INDEX "IDX_f0abf665028feb26e32d4201c5" ON "nft_entity" ("created_at") `)
}

async down(db) {
await db.query(`DROP INDEX "public"."IDX_f0abf665028feb26e32d4201c5"`)
}
}
1,281 changes: 651 additions & 630 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"dependencies": {
"@kodadot1/hyperdata": "^0.0.1-rc.4",
"@kodadot1/metasquid": "^0.3.0-rc.0",
"@kodadot1/minipfs": "^0.4.2-rc.0",
"@subsquid/archive-registry": "3.3.0",
"@kodadot1/minipfs": "^0.4.3-rc.1",
"@subsquid/archive-registry": "3.3.2",
"@subsquid/graphql-server": "4.5.1",
"@subsquid/ss58": "2.0.2",
"@subsquid/substrate-processor": "8.2.2",
Expand All @@ -28,21 +28,21 @@
"dotenv": "^16.4.5",
"md5": "^2.3.0",
"nanoid": "3.3.4",
"pg": "^8.11.3",
"pg": "^8.11.5",
"type-graphql": "^1.2.0-rc.1",
"typeorm": "0.3.17"
},
"devDependencies": {
"@subsquid/substrate-metadata-explorer": "3.1.2",
"@subsquid/substrate-typegen": "8.0.2",
"@subsquid/typeorm-codegen": "1.3.3",
"@types/md5": "^2.3.2",
"@types/md5": "^2.3.5",
"@types/node": "18.11.18",
"@types/pg": "^8.11.2",
"eslint": "^8.38.0",
"@types/pg": "^8.11.4",
"eslint": "^8.57.0",
"eslint-config-unjs": "^0.1.0",
"prettier": "^2.8.8",
"typescript": "~5.0.4",
"vitest": "^1.3.1"
"vitest": "^1.4.0"
}
}
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type NFTEntity @entity {
blockNumber: BigInt @index
burned: Boolean!
collection: CollectionEntity!
createdAt: DateTime!
createdAt: DateTime! @index
currentOwner: String! @index
events: [Event!] @derivedFrom(field: "nft")
hash: String! @index
Expand Down
2 changes: 1 addition & 1 deletion speck.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
manifestVersion: subsquid.io/v0.1
name: speck
version: 11
version: 12
description: 'SubSquid indexer for Uniques and Assets on Statemint'
build:
deploy:
Expand Down
2 changes: 1 addition & 1 deletion squid.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
manifestVersion: subsquid.io/v0.1
name: stick
version: 10
version: 11
description: 'SubSquid indexer for Uniques and Assets on Statemine'
build:
deploy:
Expand Down
1 change: 1 addition & 0 deletions src/model/generated/nftEntity.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class NFTEntity {
@ManyToOne_(() => CollectionEntity, {nullable: true})
collection!: CollectionEntity

@Index_()
@Column_("timestamp with time zone", {nullable: false})
createdAt!: Date

Expand Down