Skip to content

Commit

Permalink
add sync module
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenguc committed Nov 25, 2022
1 parent 973488b commit 56516b2
Show file tree
Hide file tree
Showing 17 changed files with 488 additions and 221 deletions.
13 changes: 13 additions & 0 deletions mocks/sync-mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export const syncingSyncMock = {
id: 1,
lastSynced: 100,
status: 'syncing',
timestamp: '1669232778144',
}

export const finishedSyncMock = {
id: 1,
lastSynced: 1427336,
status: 'synced',
timestamp: '1669232778144',
}
2 changes: 1 addition & 1 deletion mocks/transactions-mock.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { stringToHex } from '@polkadot/util'
import { Transaction } from 'src/transactions/entity/transaction.entity'
import { Transaction } from '../src/transactions/entity/transaction.entity'

export const mockTransaction = {
hash: '0x055878018de242a21b7bd4b9512f4c24217da75ab2b9bf4eb93e95247b1a8f43',
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@
"@nestjs/mapped-types": "^1.2.0",
"@nestjs/platform-fastify": "^8.4.7",
"@nestjs/typeorm": "^9.0.1",
"@polkadot/api": "9.8.2",
"@polkadot/api-augment": "9.8.2",
"@polkadot/api-contract": "9.8.2",
"@polkadot/types": "9.8.2",
"@polkadot/types-codec": "9.8.2",
"@polkadot/types-create": "9.8.2",
"@polkadot/util": "10.1.12",
"@polkadot/api": "9.9.1",
"@polkadot/api-augment": "9.9.1",
"@polkadot/api-contract": "9.9.1",
"@polkadot/types": "9.9.1",
"@polkadot/types-codec": "9.9.1",
"@polkadot/types-create": "9.9.1",
"@polkadot/util": "10.1.13",
"apollo-server-fastify": "^3.11.1",
"async-await-retry": "^2.0.0",
"class-transformer": "^0.5.1",
Expand Down
Loading

0 comments on commit 56516b2

Please sign in to comment.