Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ export interface Transaction {
gasUsed?: bigint
contractAddress?: string
logsBloom?: string
type?: number
kind?: number
root?: string
status?: number
l1Fee?: bigint
Expand Down Expand Up @@ -813,7 +813,7 @@ export type TransactionField = 'BlockHash'|
'GasUsed'|
'ContractAddress'|
'LogsBloom'|
'Type'|
'Kind'|
'Root'|
'Status'|
'L1Fee'|
Expand Down
104 changes: 52 additions & 52 deletions index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envio-dev/hypersync-client-darwin-arm64",
"version": "0.7.1",
"version": "0.7.0-hyperindex-v2-compatible",
"cpu": [
"arm64"
],
Expand All @@ -16,4 +16,4 @@
"os": [
"darwin"
]
}
}
4 changes: 2 additions & 2 deletions npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envio-dev/hypersync-client-darwin-x64",
"version": "0.7.1",
"version": "0.7.0-hyperindex-v2-compatible",
"cpu": [
"x64"
],
Expand All @@ -16,4 +16,4 @@
"os": [
"darwin"
]
}
}
4 changes: 2 additions & 2 deletions npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envio-dev/hypersync-client-linux-arm64-gnu",
"version": "0.7.1",
"version": "0.7.0-hyperindex-v2-compatible",
"cpu": [
"arm64"
],
Expand All @@ -19,4 +19,4 @@
"libc": [
"glibc"
]
}
}
4 changes: 2 additions & 2 deletions npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envio-dev/hypersync-client-linux-x64-gnu",
"version": "0.7.1",
"version": "0.7.0-hyperindex-v2-compatible",
"cpu": [
"x64"
],
Expand All @@ -19,4 +19,4 @@
"libc": [
"glibc"
]
}
}
4 changes: 2 additions & 2 deletions npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envio-dev/hypersync-client-linux-x64-musl",
"version": "0.7.1",
"version": "0.7.0-hyperindex-v2-compatible",
"cpu": [
"x64"
],
Expand All @@ -19,4 +19,4 @@
"libc": [
"musl"
]
}
}
4 changes: 2 additions & 2 deletions npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envio-dev/hypersync-client-win32-arm64-msvc",
"version": "0.7.1",
"version": "0.7.0-hyperindex-v2-compatible",
"cpu": [
"arm64"
],
Expand All @@ -16,4 +16,4 @@
"os": [
"win32"
]
}
}
4 changes: 2 additions & 2 deletions npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envio-dev/hypersync-client-win32-x64-msvc",
"version": "0.7.1",
"version": "0.7.0-hyperindex-v2-compatible",
"cpu": [
"x64"
],
Expand All @@ -16,4 +16,4 @@
"os": [
"win32"
]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@envio-dev/hypersync-client",
"description": "HyperSync Client by Envio",
"version": "0.7.1",
"version": "0.7.0-hyperindex-v2-compatible",
"main": "index.js",
"types": "index.d.ts",
"napi": {
Expand Down
7 changes: 4 additions & 3 deletions src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ pub enum TransactionField {
GasUsed,
ContractAddress,
LogsBloom,
Type,
#[strum(serialize = "type")] // just for test
Kind,
Root,
Status,
L1Fee,
Expand Down Expand Up @@ -774,7 +775,7 @@ impl From<TransactionField> for net_types::TransactionField {
TransactionField::GasUsed => net_types::TransactionField::GasUsed,
TransactionField::ContractAddress => net_types::TransactionField::ContractAddress,
TransactionField::LogsBloom => net_types::TransactionField::LogsBloom,
TransactionField::Type => net_types::TransactionField::Type,
TransactionField::Kind => net_types::TransactionField::Type,
TransactionField::Root => net_types::TransactionField::Root,
TransactionField::Status => net_types::TransactionField::Status,
TransactionField::Sighash => net_types::TransactionField::Sighash,
Expand Down Expand Up @@ -1175,7 +1176,7 @@ impl From<net_types::TransactionField> for TransactionField {
net_types::TransactionField::GasUsed => TransactionField::GasUsed,
net_types::TransactionField::ContractAddress => TransactionField::ContractAddress,
net_types::TransactionField::LogsBloom => TransactionField::LogsBloom,
net_types::TransactionField::Type => TransactionField::Type,
net_types::TransactionField::Type => TransactionField::Kind,
net_types::TransactionField::Root => TransactionField::Root,
net_types::TransactionField::Status => TransactionField::Status,
net_types::TransactionField::Sighash => TransactionField::Sighash,
Expand Down
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub struct Transaction {
pub gas_used: Option<BigInt>,
pub contract_address: Option<String>,
pub logs_bloom: Option<String>,
#[napi(js_name = "type")]
#[napi(js_name = "kind")]
pub type_: Option<i64>,
pub root: Option<String>,
pub status: Option<i64>,
Expand Down