Skip to content

Commit 457ae98

Browse files
authored
Merge pull request #55 from magicblock-labs/release/v0.3.1
- updated magic-router sdk to confirm tx from polling to websocket subscription signatureSubscribe - updated getClosestValidator response to return both identity and endpoint url
2 parents d7c050b + 31965ad commit 457ae98

File tree

5 files changed

+41
-223
lines changed

5 files changed

+41
-223
lines changed

rust/Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ members = [
1111
resolver = "2"
1212

1313
[workspace.package]
14-
version = "0.3.0"
14+
version = "0.3.1"
1515
authors = ["Magicblock Labs <[email protected]>"]
1616
edition = "2021"
1717
license = "MIT"
@@ -22,10 +22,10 @@ readme = "README.md"
2222
keywords = ["solana", "crypto", "delegation", "ephemeral-rollups", "magicblock"]
2323

2424
[workspace.dependencies]
25-
ephemeral-rollups-sdk = { path = "sdk", version = "=0.3.0" }
26-
ephemeral-rollups-sdk-attribute-ephemeral = { path = "ephemeral", version = "=0.3.0" }
27-
ephemeral-rollups-sdk-attribute-delegate = { path = "delegate", version = "=0.3.0" }
28-
ephemeral-rollups-sdk-attribute-commit = { path = "commit-attribute", version = "=0.3.0" }
25+
ephemeral-rollups-sdk = { path = "sdk", version = "=0.3.1" }
26+
ephemeral-rollups-sdk-attribute-ephemeral = { path = "ephemeral", version = "=0.3.1" }
27+
ephemeral-rollups-sdk-attribute-delegate = { path = "delegate", version = "=0.3.1" }
28+
ephemeral-rollups-sdk-attribute-commit = { path = "commit-attribute", version = "=0.3.1" }
2929

3030
# Magicblock
3131
magicblock-delegation-program = { version = "1.1.1", features = ["no-entrypoint"] }

ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@magicblock-labs/ephemeral-rollups-sdk",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"author": "MagicBlock Labs",
55
"license": "MIT",
66
"publishConfig": {

ts/src/__tests__/magic-router.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ describe("getClosestValidator", () => {
173173
jest.clearAllMocks();
174174
});
175175

176-
it("fetches and returns the closest validator public key", async () => {
176+
it("fetches and returns the closest validator info", async () => {
177177
const mockIdentityData = {
178178
result: {
179179
identity: "mock-validator-identity",
@@ -198,7 +198,7 @@ describe("getClosestValidator", () => {
198198
}),
199199
});
200200

201-
expect(result.toBase58()).toBe("mock-validator-identity");
201+
expect(result.identity).toBe("mock-validator-identity");
202202
});
203203

204204
it("handles fetch errors gracefully", async () => {

0 commit comments

Comments
 (0)