Skip to content

Commit

Permalink
Merge branch 'version/bump-1707940881916' into release/arrowsquid
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 14, 2024
2 parents d63b3ba + 72d1ad8 commit f1d1d18
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 9 deletions.
12 changes: 12 additions & 0 deletions evm/evm-processor/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@subsquid/evm-processor",
"entries": [
{
"version": "1.14.1",
"tag": "@subsquid/evm-processor_v1.14.1",
"date": "Wed, 14 Feb 2024 20:01:22 GMT",
"comments": {
"dependency": [
{
"comment": "Updating dependency \"@subsquid/util-internal-validation\" from `^0.1.0` to `^0.2.0`"
}
]
}
},
{
"version": "1.14.0",
"tag": "@subsquid/evm-processor_v1.14.0",
Expand Down
7 changes: 6 additions & 1 deletion evm/evm-processor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @subsquid/evm-processor

This log was last generated on Tue, 23 Jan 2024 16:47:41 GMT and should not be manually modified.
This log was last generated on Wed, 14 Feb 2024 20:01:22 GMT and should not be manually modified.

## 1.14.1
Wed, 14 Feb 2024 20:01:22 GMT

_Version update only_

## 1.14.0
Tue, 23 Jan 2024 16:47:41 GMT
Expand Down
4 changes: 2 additions & 2 deletions evm/evm-processor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subsquid/evm-processor",
"version": "1.14.0",
"version": "1.14.1",
"description": "Data fetcher and mappings executor for EVM-based chains",
"license": "GPL-3.0-or-later",
"repository": "[email protected]:subsquid/squid.git",
Expand All @@ -26,7 +26,7 @@
"@subsquid/util-internal-ingest-tools": "^1.1.0",
"@subsquid/util-internal-processor-tools": "^4.0.1",
"@subsquid/util-internal-range": "^0.1.0",
"@subsquid/util-internal-validation": "^0.1.0",
"@subsquid/util-internal-validation": "^0.2.0",
"@subsquid/util-timeout": "^2.3.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/erc20-transfers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dependencies": {
"@subsquid/graphql-server": "^4.5.0",
"@subsquid/evm-processor": "^1.14.0",
"@subsquid/evm-processor": "^1.14.1",
"@subsquid/typeorm-migration": "^1.3.0",
"@subsquid/typeorm-store": "^1.2.6",
"dotenv": "^16.3.1",
Expand Down
12 changes: 12 additions & 0 deletions util/util-internal-validation/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@subsquid/util-internal-validation",
"entries": [
{
"version": "0.2.0",
"tag": "@subsquid/util-internal-validation_v0.2.0",
"date": "Wed, 14 Feb 2024 20:01:22 GMT",
"comments": {
"minor": [
{
"comment": "transform Bytes values to lowercase"
}
]
}
},
{
"version": "0.1.0",
"tag": "@subsquid/util-internal-validation_v0.1.0",
Expand Down
9 changes: 8 additions & 1 deletion util/util-internal-validation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @subsquid/util-internal-validation

This log was last generated on Sun, 24 Dec 2023 20:05:50 GMT and should not be manually modified.
This log was last generated on Wed, 14 Feb 2024 20:01:22 GMT and should not be manually modified.

## 0.2.0
Wed, 14 Feb 2024 20:01:22 GMT

### Minor changes

- transform Bytes values to lowercase

## 0.1.0
Sun, 24 Dec 2023 20:05:50 GMT
Expand Down
2 changes: 1 addition & 1 deletion util/util-internal-validation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subsquid/util-internal-validation",
"version": "0.1.0",
"version": "0.2.0",
"description": "JSON data validation framework",
"license": "GPL-3.0-or-later",
"repository": "[email protected]:subsquid/squid.git",
Expand Down
6 changes: 3 additions & 3 deletions util/util-internal-validation/src/primitives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Bytes = string


function isBytes(value: unknown): value is Bytes {
return typeof value == 'string' && /^0x[0-9a-f]*$/.test(value)
return typeof value == 'string' && /^0x[0-9a-fA-F]*$/.test(value)
}


Expand Down Expand Up @@ -129,8 +129,8 @@ export const SMALL_QTY: Validator<number, Bytes> = {
* Hex encoded binary string
*/
export const BYTES: Validator<Bytes> = {
cast(value: unknown): string | ValidationFailure {
return this.validate(value) || value as Bytes
cast(value: unknown): Bytes | ValidationFailure {
return this.validate(value) || (value as Bytes).toLowerCase()
},
validate(value: unknown): ValidationFailure | undefined {
if (isBytes(value)) return
Expand Down

0 comments on commit f1d1d18

Please sign in to comment.