Skip to content

Commit 18e4083

Browse files
committed
Updating Helios version
1 parent d71fcb1 commit 18e4083

File tree

3 files changed

+39
-11
lines changed

3 files changed

+39
-11
lines changed

.scripts/0.3.1.sh

Lines changed: 28 additions & 0 deletions
Large diffs are not rendered by default.

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ let package = Package(
1919
targets: [
2020
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2121
// Targets can depend on other targets in this package, and on products in packages this package depends on.
22-
// .binaryTarget(name: "helios", path: ".build/helios-rs/build/0.3.0/release/helios.xcframework"), // When building the xcframework locally
22+
// .binaryTarget(name: "helios", path: ".build/helios-rs/build/0.3.1/release/helios.xcframework"), // When building the xcframework locally
2323
.binaryTarget(
2424
name: "helios",
25-
url: "https://github.com/rkreutz/HeliosKit/releases/download/0.3.0/helios.xcframework.zip",
26-
checksum: "1105fe56a06f0ea11a0093a4788814fb01c709e7c1cbd820cc8087eac38bd8f4"),
25+
url: "https://github.com/rkreutz/HeliosKit/releases/download/0.3.1/helios.xcframework.zip",
26+
checksum: "02c9950948f40300ace10a298a3a48a88be1c9f1e6478aefdc79a740341c69a5"),
2727
.target(
2828
name: "HeliosKit",
2929
dependencies: ["helios"]),

Tests/HeliosKitTests/HeliosTests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import XCTest
44
final class HeliosTests: XCTestCase {
55

66
override func setUp() async throws {
7-
try await Helios.shared.start(rpcURL: Config.rpcUrl, checkpoint: "0x793da86cdd7aac6f2fbe2dabb81c40ee8ea65752caec3530e13fce23d6ac2804", dataDirectory: nil)
7+
try await Helios.shared.start(rpcURL: Config.rpcUrl)
88
}
99

1010
override func tearDown() async throws {
@@ -154,26 +154,26 @@ final class HeliosTests: XCTestCase {
154154

155155
func test_getLogs() async throws {
156156
let logs = try await Helios.shared.getLogs(
157-
from: .custom(16839546),
158-
to: .custom(16839546),
157+
from: .custom(16971411),
158+
to: .custom(16971411),
159159
address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
160160
topics: [
161161
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", // keccak(Transfer(address,address,uint256))
162-
"0x0000000000000000000000006dfc34609a05bc22319fa4cce1d1e2929548c0d7", // from
163-
"0x00000000000000000000000071992222549b7bc19b4d0d5c1369bd754ca8366e" // to
162+
"0x0000000000000000000000006b267718afb1db89647f229dc6b02c59cf531ed3", // from
163+
"0x000000000000000000000000ef8801eaf234ff82801821ffe2d78d60a0237f97" // to
164164

165165
]
166166
)
167167
print(logs)
168168
XCTAssertEqual(logs.count, 1)
169169

170170
let logsByHash = try await Helios.shared.getLogs(
171-
at: "0xa751c15f0379237f7a8fcb2caed731822bd0a620c52278b06ff04c0b86801505",
171+
at: "0xf06cc88ec0a2a1c0f9175ca619831a4b149b1c7fa6084630d0c6f1f0a841dfb6",
172172
address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
173173
topics: [
174174
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", // keccak(Transfer(address,address,uint256))
175-
"0x0000000000000000000000006dfc34609a05bc22319fa4cce1d1e2929548c0d7", // from
176-
"0x00000000000000000000000071992222549b7bc19b4d0d5c1369bd754ca8366e" // to
175+
"0x0000000000000000000000006b267718afb1db89647f229dc6b02c59cf531ed3", // from
176+
"0x000000000000000000000000ef8801eaf234ff82801821ffe2d78d60a0237f97" // to
177177
]
178178
)
179179
print(logsByHash)

0 commit comments

Comments
 (0)