Skip to content

Commit 70a4504

Browse files
authored
Fix include exclude binding for seclection (#52)
* Transform union type to match selection first then filter Previously Either always matched as filter since filter can always have nullable fields. * Upgrade hypersync client rust * Increment version
1 parent fb50a5b commit 70a4504

File tree

11 files changed

+29
-29
lines changed

11 files changed

+29
-29
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ruint = "1"
2626
alloy-primitives = "1.1"
2727
arrayvec = "0.7.6"
2828

29-
hypersync-client = "0.23.0"
29+
hypersync-client = "1.0.0"
3030
strum = "0.27.2"
3131
strum_macros = "0.27.2"
3232

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,19 +503,19 @@ export interface Query {
503503
* List of log selections, these have an or relationship between them, so the query will return logs
504504
* that match any of these selections.
505505
*/
506-
logs?: Array<LogFilter | LogSelection>
506+
logs?: Array<LogSelection | LogFilter>
507507
/**
508508
* List of transaction selections, the query will return transactions that match any of these selections and
509509
* it will return transactions that are related to the returned logs.
510510
*/
511-
transactions?: Array<TransactionFilter | TransactionSelection>
511+
transactions?: Array<TransactionSelection | TransactionFilter>
512512
/**
513513
* List of trace selections, the query will return traces that match any of these selections and
514514
* it will re turn traces that are related to the returned logs.
515515
*/
516-
traces?: Array<TraceFilter | TraceSelection>
516+
traces?: Array<TraceSelection | TraceFilter>
517517
/** List of block selections, the query will return blocks that match any of these selections */
518-
blocks?: Array<BlockFilter | BlockSelection>
518+
blocks?: Array<BlockSelection | BlockFilter>
519519
/**
520520
* Weather to include all blocks regardless of if they are related to a returned transaction or log. Normally
521521
* the server will return only the blocks that are related to the transaction or logs in the response. But if this

npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envio-dev/hypersync-client-darwin-arm64",
3-
"version": "0.7.2",
3+
"version": "1.0.0",
44
"cpu": [
55
"arm64"
66
],

npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envio-dev/hypersync-client-darwin-x64",
3-
"version": "0.7.2",
3+
"version": "1.0.0",
44
"cpu": [
55
"x64"
66
],

npm/linux-arm64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envio-dev/hypersync-client-linux-arm64-gnu",
3-
"version": "0.7.2",
3+
"version": "1.0.0",
44
"cpu": [
55
"arm64"
66
],

npm/linux-x64-gnu/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envio-dev/hypersync-client-linux-x64-gnu",
3-
"version": "0.7.2",
3+
"version": "1.0.0",
44
"cpu": [
55
"x64"
66
],

npm/linux-x64-musl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envio-dev/hypersync-client-linux-x64-musl",
3-
"version": "0.7.2",
3+
"version": "1.0.0",
44
"cpu": [
55
"x64"
66
],

npm/win32-arm64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envio-dev/hypersync-client-win32-arm64-msvc",
3-
"version": "0.7.2",
3+
"version": "1.0.0",
44
"cpu": [
55
"arm64"
66
],

npm/win32-x64-msvc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envio-dev/hypersync-client-win32-x64-msvc",
3-
"version": "0.7.2",
3+
"version": "1.0.0",
44
"cpu": [
55
"x64"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@envio-dev/hypersync-client",
33
"description": "HyperSync Client by Envio",
4-
"version": "0.7.2",
4+
"version": "1.0.0",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"napi": {

0 commit comments

Comments
 (0)