Skip to content

Commit bb97a50

Browse files
authored
release: 0.3.3 (#57)
* feat: overwrite connection functions from web3.js for magic router instead using wrapper * chore: updated versioning * refactor: fixed Connection export * test: fixed Connection import
1 parent b390770 commit bb97a50

File tree

8 files changed

+218
-375
lines changed

8 files changed

+218
-375
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.2"
14+
version = "0.3.3"
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.2" }
26-
ephemeral-rollups-sdk-attribute-ephemeral = { path = "ephemeral", version = "=0.3.2" }
27-
ephemeral-rollups-sdk-attribute-delegate = { path = "delegate", version = "=0.3.2" }
28-
ephemeral-rollups-sdk-attribute-commit = { path = "commit-attribute", version = "=0.3.2" }
25+
ephemeral-rollups-sdk = { path = "sdk", version = "=0.3.3" }
26+
ephemeral-rollups-sdk-attribute-ephemeral = { path = "ephemeral", version = "=0.3.3" }
27+
ephemeral-rollups-sdk-attribute-delegate = { path = "delegate", version = "=0.3.3" }
28+
ephemeral-rollups-sdk-attribute-commit = { path = "commit-attribute", version = "=0.3.3" }
2929

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

ts/jest.lib.config.cjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
2-
testEnvironment: 'node',
3-
roots: ['<rootDir>/lib'],
4-
moduleFileExtensions: ['js', 'json'],
5-
testMatch: ['**/__tests__/**/*.test.js', '**/?(*.)+(spec|test).js'],
6-
transform: {},
7-
setupFilesAfterEnv: ['<rootDir>/jest.setup.lib.cjs'],
2+
testEnvironment: "node",
3+
roots: ["<rootDir>/lib"],
4+
moduleFileExtensions: ["js", "ts", "json"],
5+
testMatch: ["**/__tests__/**/*.test.js", "**/__tests__/**/*.test.ts"],
6+
transform: { "^.+\\.ts$": "ts-jest" },
7+
setupFilesAfterEnv: ["<rootDir>/jest.setup.lib.cjs"],
88
};

ts/jest.setup.lib.cjs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,3 @@
1-
// Ensure @solana/web3.js is mocked before any test files are loaded
2-
const mockPublicKey = (address) => ({
3-
toBase58: () => address,
4-
toString: () => address,
5-
});
6-
7-
jest.mock('@solana/web3.js', () => {
8-
// We cannot call requireActual here because we want to isolate from the real implementation
9-
return {
10-
Connection: jest.fn().mockImplementation(() => ({
11-
rpcEndpoint: 'http://localhost',
12-
sendRawTransaction: jest.fn().mockResolvedValue('mock-signature'),
13-
})),
14-
Transaction: jest.fn().mockImplementation(() => ({
15-
feePayer: mockPublicKey('mock-fee-payer'),
16-
signature: [],
17-
instructions: [
18-
{
19-
keys: [
20-
{ pubkey: mockPublicKey('key1'), isSigner: true, isWritable: true },
21-
{ pubkey: mockPublicKey('key2'), isSigner: false, isWritable: false },
22-
],
23-
},
24-
],
25-
serialize: jest.fn(() => Buffer.from('mock')),
26-
sign: jest.fn(),
27-
})),
28-
Keypair: jest.fn().mockImplementation(() => ({
29-
publicKey: mockPublicKey('mock-public-key'),
30-
sign: jest.fn(),
31-
})),
32-
PublicKey: jest.fn().mockImplementation((address) => mockPublicKey(address)),
33-
};
34-
});
35-
361
// Provide a default fetch mock used across tests
372
if (typeof global.fetch === 'undefined') {
383
// @ts-ignore

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.2",
3+
"version": "0.3.3",
44
"author": "MagicBlock Labs",
55
"license": "MIT",
66
"publishConfig": {

0 commit comments

Comments
 (0)