Skip to content

Commit 8587748

Browse files
authored
add sync module (#13)
* add sync module * delete comments
1 parent 973488b commit 8587748

17 files changed

Lines changed: 486 additions & 221 deletions

mocks/sync-mock.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export const syncingSyncMock = {
2+
id: 1,
3+
lastSynced: 100,
4+
status: 'syncing',
5+
timestamp: '1669232778144',
6+
}
7+
8+
export const finishedSyncMock = {
9+
id: 1,
10+
lastSynced: 1427336,
11+
status: 'synced',
12+
timestamp: '1669232778144',
13+
}

mocks/transactions-mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { stringToHex } from '@polkadot/util'
2-
import { Transaction } from 'src/transactions/entity/transaction.entity'
2+
import { Transaction } from '../src/transactions/entity/transaction.entity'
33

44
export const mockTransaction = {
55
hash: '0x055878018de242a21b7bd4b9512f4c24217da75ab2b9bf4eb93e95247b1a8f43',

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@
9393
"@nestjs/mapped-types": "^1.2.0",
9494
"@nestjs/platform-fastify": "^8.4.7",
9595
"@nestjs/typeorm": "^9.0.1",
96-
"@polkadot/api": "9.8.2",
97-
"@polkadot/api-augment": "9.8.2",
98-
"@polkadot/api-contract": "9.8.2",
99-
"@polkadot/types": "9.8.2",
100-
"@polkadot/types-codec": "9.8.2",
101-
"@polkadot/types-create": "9.8.2",
102-
"@polkadot/util": "10.1.12",
96+
"@polkadot/api": "9.9.1",
97+
"@polkadot/api-augment": "9.9.1",
98+
"@polkadot/api-contract": "9.9.1",
99+
"@polkadot/types": "9.9.1",
100+
"@polkadot/types-codec": "9.9.1",
101+
"@polkadot/types-create": "9.9.1",
102+
"@polkadot/util": "10.1.13",
103103
"apollo-server-fastify": "^3.11.1",
104104
"async-await-retry": "^2.0.0",
105105
"class-transformer": "^0.5.1",

0 commit comments

Comments
 (0)