Skip to content

Commit

Permalink
tnp: more logs from frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Nov 25, 2023
1 parent bbf5867 commit 20d7269
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 7 deletions.
7 changes: 7 additions & 0 deletions examples/event-processor-bleeps/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# event-processor-bleeps

## 0.0.50

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.24

## 0.0.49

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/event-processor-bleeps/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "event-processor-bleeps",
"private": true,
"version": "0.0.49",
"version": "0.0.50",
"description": "",
"type": "module",
"main": "dist/index.cjs",
Expand Down
7 changes: 7 additions & 0 deletions examples/event-processor-conquest-eth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# event-processor-conquest-eth

## 0.0.50

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.24

## 0.0.49

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/event-processor-conquest-eth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "event-processor-conquest-eth",
"private": true,
"version": "0.0.49",
"version": "0.0.50",
"description": "",
"type": "module",
"main": "dist/index.cjs",
Expand Down
7 changes: 7 additions & 0 deletions examples/event-processor-conquest-fplay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# event-processor-conquest-fplay

## 0.0.50

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.24

## 0.0.49

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/event-processor-conquest-fplay/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "event-processor-conquest-fplay",
"private": true,
"version": "0.0.49",
"version": "0.0.50",
"description": "",
"type": "module",
"main": "dist/index.cjs",
Expand Down
7 changes: 7 additions & 0 deletions examples/event-processor-nfts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# event-processor-nfts

## 0.0.50

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.24

## 0.0.49

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/event-processor-nfts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "event-processor-nfts",
"private": true,
"version": "0.0.49",
"version": "0.0.50",
"description": "",
"type": "module",
"main": "dist/index.cjs",
Expand Down
10 changes: 10 additions & 0 deletions examples/mud/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# web-demo

## 0.1.51

### Patch Changes

- Updated dependencies
- ethereum-indexer-js-processor@0.6.24
- event-processor-bleeps@0.0.50
- event-processor-conquest-eth@0.0.50
- event-processor-nfts@0.0.50

## 0.1.50

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/mud/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mud-demo",
"private": true,
"version": "0.1.50",
"version": "0.1.51",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
8 changes: 8 additions & 0 deletions examples/web-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# web-demo

## 0.1.51

### Patch Changes

- event-processor-bleeps@0.0.50
- event-processor-conquest-eth@0.0.50
- event-processor-nfts@0.0.50

## 0.1.50

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/web-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web-demo",
"private": true,
"version": "0.1.50",
"version": "0.1.51",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
6 changes: 6 additions & 0 deletions packages/ethereum-indexer-js-processor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ethereum-indexer-js-processor

## 0.6.24

### Patch Changes

- tmp: more logs for frozen state

## 0.6.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ethereum-indexer-js-processor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum-indexer-js-processor",
"version": "0.6.23",
"version": "0.6.24",
"description": "",
"keywords": [],
"author": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export class JSObjectEventProcessor<ABI extends Abi, ProcessResultType extends J
constructor(private singleEventProcessor: SingleEventJSONProcessor<ABI, ProcessResultType, ProcessorConfig>) {
this.version = singleEventProcessor.version;
const state = singleEventProcessor.createInitialState();
const initial_frozen = Object.isFrozen(state);
console.log({initial_frozen});
const history = {
blockHashes: {},
reversals: {},
Expand All @@ -55,6 +57,9 @@ export class JSObjectEventProcessor<ABI extends Abi, ProcessResultType extends J
history,
};
this.history = new History(history);

const constructor_frozen = Object.isFrozen(this._json.state);
console.log({constructor_frozen});
}

copyFrom(otherProcessor: JSObjectEventProcessor<ABI, ProcessResultType, ProcessorConfig>) {
Expand Down Expand Up @@ -144,6 +149,9 @@ export class JSObjectEventProcessor<ABI extends Abi, ProcessResultType extends J

this._json.state = state;
this._json.lastSync = lastSyncFromExistingState;

const fetched_frozen = Object.isFrozen(this._json.state);
console.log({fetched_frozen});
}
}
}
Expand Down

0 comments on commit 20d7269

Please sign in to comment.