Skip to content

Commit 862e96e

Browse files
authored
Merge pull request #48 from bobanetwork/wsdt/chore/chains-v
chore: light-bridge-chains 1.1.5; deposit test
2 parents 8d5b96f + 9279608 commit 862e96e

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@apollo/client": "^3.13.8",
5252
"@bobanetwork/aws-kms": "^1.0.1",
5353
"@bobanetwork/graphql-utils": "^1.1.6",
54-
"@bobanetwork/light-bridge-chains": "1.1.3",
54+
"@bobanetwork/light-bridge-chains": "1.1.5",
5555
"@eth-optimism/common-ts": "0.2.2",
5656
"@openzeppelin/contracts": "4.3.2",
5757
"@openzeppelin/contracts-upgradeable": "4.3.2",

pnpm-lock.yaml

Lines changed: 13 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/graph-tests.integration.spec.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { lightBridgeGraphQLService } from '@bobanetwork/graphql-utils'
2+
import { expect } from './setup'
3+
4+
describe('Single Event fetches', function () {
5+
it('should fetch latest disbursements if only from to and deposit ID is set after db removal', async () => {
6+
const events = await lightBridgeGraphQLService.queryAssetReceivedEvent(
7+
11155111,
8+
28882,
9+
null,
10+
null,
11+
null,
12+
117
13+
)
14+
const ev = events.find((e) => e.depositId === '117')
15+
expect(ev.__typename).to.eq('AssetReceived')
16+
})
17+
18+
it('should fetch latest disbursements if blocks are added', async () => {
19+
const events = await lightBridgeGraphQLService.queryAssetReceivedEvent(
20+
11155111,
21+
28882,
22+
null,
23+
0,
24+
null,
25+
117
26+
)
27+
const ev = events.find((e) => e.depositId === '117')
28+
expect(ev.__typename).to.eq('AssetReceived')
29+
})
30+
})

0 commit comments

Comments
 (0)