@sentio/cli 3.8.0-rc.4 → 3.9.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import { single_collateral } from './types/sui/testnet/0xebaa2ad3eacc230f309cd93
6
6
 
7
7
  validator.bind({ network: SuiNetwork.TEST_NET }).onEventStakingRequestEvent(
8
8
  (evt, ctx) => {
9
- const amount_original = BigInt((evt.parsedJson as any).amount)
9
+ const amount_original = BigInt((evt.json as any).amount)
10
10
  const amount = evt.data_decoded.amount
11
11
  ctx.meter.Counter('amount').add(amount, { pool: evt.data_decoded.pool_id })
12
12
  },
@@ -1,16 +0,0 @@
1
- import assert from 'assert'
2
- import { before, describe, test } from 'node:test'
3
- import { TestProcessorServer } from '@sentio/sdk/testing'
4
-
5
- describe('Test Processor', () => {
6
- const service = new TestProcessorServer(() => import('./processor.js'))
7
-
8
- before(async () => {
9
- await service.start()
10
- })
11
-
12
- test('has config', async () => {
13
- const config = await service.getConfig({})
14
- assert.ok(config.contractConfigs.length > 0)
15
- })
16
- })
@@ -1,30 +0,0 @@
1
- import assert from 'assert'
2
- import { before, describe, test } from 'node:test'
3
- import { TestProcessorServer, firstCounterValue } from '@sentio/sdk/testing'
4
- import { mockTransferLog } from '@sentio/sdk/eth/builtin/erc20'
5
-
6
- describe('Test Processor', () => {
7
- const service = new TestProcessorServer(() => import('./processor.js'))
8
-
9
- before(async () => {
10
- await service.start()
11
- })
12
-
13
- test('has valid config', async () => {
14
- const config = await service.getConfig({})
15
- assert(config.contractConfigs.length > 0)
16
- })
17
-
18
- test('check transfer event handling', async () => {
19
- const resp = await service.eth.testLog(
20
- mockTransferLog('0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', {
21
- from: '0x0000000000000000000000000000000000000000',
22
- to: '0xb329e39ebefd16f40d38f07643652ce17ca5bac1',
23
- value: 10n ** 18n * 10n
24
- })
25
- )
26
-
27
- const tokenCounter = firstCounterValue(resp.result, 'token')
28
- assert.equal(tokenCounter, 10n)
29
- })
30
- })
@@ -1,16 +0,0 @@
1
- import assert from 'assert'
2
- import { before, describe, test } from 'node:test'
3
- import { TestProcessorServer } from '@sentio/sdk/testing'
4
-
5
- describe('Test Processor', () => {
6
- const service = new TestProcessorServer(async () => await import('./processor.js'))
7
-
8
- before(async () => {
9
- await service.start()
10
- })
11
-
12
- test('has config', async () => {
13
- const config = await service.getConfig({})
14
- assert(config.contractConfigs.length > 0)
15
- })
16
- })
@@ -1,16 +0,0 @@
1
- import assert from 'assert'
2
- import { before, describe, test } from 'node:test'
3
- import { TestProcessorServer } from '@sentio/sdk/testing'
4
-
5
- describe('Test Processor', () => {
6
- const service = new TestProcessorServer(async () => await import('./processor.js'))
7
-
8
- before(async () => {
9
- await service.start()
10
- })
11
-
12
- test('has config', async () => {
13
- const config = await service.getConfig({})
14
- assert(config.contractConfigs.length > 0)
15
- })
16
- })
@@ -1,16 +0,0 @@
1
- import assert from 'assert'
2
- import { before, describe, test } from 'node:test'
3
- import { TestProcessorServer } from '@sentio/sdk/testing'
4
-
5
- describe('Test Processor', () => {
6
- const service = new TestProcessorServer(() => import('./processor.js'))
7
-
8
- before(async () => {
9
- await service.start()
10
- })
11
-
12
- test('has valid config', async () => {
13
- // const config = await service.getConfig({})
14
- // assert(config.contractConfigs.length > 0)
15
- })
16
- })
@@ -1,16 +0,0 @@
1
- import assert from 'assert'
2
- import { before, describe, test } from 'node:test'
3
- import { TestProcessorServer } from '@sentio/sdk/testing'
4
-
5
- describe('Test Processor', () => {
6
- const service = new TestProcessorServer(() => import('./processor.js'))
7
-
8
- before(async () => {
9
- await service.start()
10
- })
11
-
12
- test('has valid config', async () => {
13
- const config = await service.getConfig({})
14
- assert.ok(config.contractConfigs.length > 0)
15
- })
16
- })
@@ -1,16 +0,0 @@
1
- import assert from 'assert'
2
- import { before, describe, test } from 'node:test'
3
- import { TestProcessorServer } from '@sentio/sdk/testing'
4
-
5
- describe('Test Processor', () => {
6
- const service = new TestProcessorServer(async () => await import('./processor.js'))
7
-
8
- before(async () => {
9
- await service.start()
10
- })
11
-
12
- test('has config', async () => {
13
- const config = await service.getConfig({})
14
- assert(config.contractConfigs.length > 0)
15
- })
16
- })