Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6dae739
feat(apis/vara-eth, idea/vara-eth): return back button for uploading …
StackOverflowExcept1on Mar 28, 2026
d66a173
fix kzg-wasm on frontend site
StackOverflowExcept1on Mar 30, 2026
2c152a8
do not upload code on test setup
osipov-mit Mar 30, 2026
dbeb743
fix codec
StackOverflowExcept1on Mar 30, 2026
fe2718d
Merge remote-tracking branch 'origin/main' into av/fix-upload-code
StackOverflowExcept1on Mar 30, 2026
eebc703
fix lint
StackOverflowExcept1on Mar 30, 2026
72acfac
Revert "chore(deps): bump ethexe-common from `933a9b7` to `24b338b` i…
StackOverflowExcept1on Mar 30, 2026
8af6d54
fix serde features
StackOverflowExcept1on Mar 31, 2026
19a820b
switch to gear master
StackOverflowExcept1on Mar 31, 2026
227dfac
fix some nits
StackOverflowExcept1on Mar 31, 2026
83ed58b
update viem dependency
osipov-mit Mar 31, 2026
590c5bd
fix all places with viem fork
StackOverflowExcept1on Mar 31, 2026
2bd77af
Merge remote-tracking branch 'origin/main' into av/fix-upload-code
StackOverflowExcept1on Mar 31, 2026
6e83d01
fix fee
StackOverflowExcept1on Apr 1, 2026
188d803
update viem dependency
osipov-mit Apr 1, 2026
9b1330e
fix undefined
StackOverflowExcept1on Apr 1, 2026
f5ed4b3
console log fee
StackOverflowExcept1on Apr 1, 2026
d670258
fix pkg and feeHistory
StackOverflowExcept1on Apr 1, 2026
9476bda
revert frontend part (will be moved to another PR)
StackOverflowExcept1on Apr 1, 2026
813d827
remove console log
StackOverflowExcept1on Apr 1, 2026
53ae489
bump version, update readme, changelog
osipov-mit Apr 2, 2026
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: 3 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ jobs:

- name: "Install: Foundry"
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-c07d504b4ae67754584f4e05ff0c547a43c50f7b

- name: 'Install dependencies'
run: yarn workspaces focus gear-js @gear-js/api
Expand Down Expand Up @@ -153,7 +155,7 @@ jobs:
if: steps.changed-vara-eth.outputs.any_changed == 'true'
uses: foundry-rs/foundry-toolchain@v1
with:
version: v1.5.0-rc1
version: nightly-c07d504b4ae67754584f4e05ff0c547a43c50f7b

- name: 'Install dependencies'
if: steps.changed-vara-eth.outputs.any_changed == 'true'
Expand Down
15 changes: 15 additions & 0 deletions apis/vara-eth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [0.3.1]

### Added

- `RouterClient.requestCodeValidation()` method (previously private and unimplemented) for uploading Wasm program code as an EIP-7594 blob transaction (https://github.com/gear-tech/gear-js/pull/2405)
- EIP-7594 multi-blob encoding via `simpleSidecarEncode()` — replaces the old single-blob `prepareBlob()` and correctly encodes arbitrary-length data across multiple blobs following the Simple Sidecar Encoding format (https://github.com/gear-tech/gear-js/pull/2405)
- `computeCellsAndKzgProofs` KZG hook required by EIP-7594 (https://github.com/gear-tech/gear-js/pull/2405)

### Changed

- Peer dependency `viem` switched from `^2.39.0` to `@vara-eth/viem@2.47.7-1` — a temporary fork at https://github.com/StackOverflowExcept1on/viem/tree/feat/eip-7594-support-for-blob-txs that adds EIP-7594 blob transaction support not yet available upstream; will revert to the official package once merged (https://github.com/gear-tech/gear-js/pull/2405)
- `requestCodeValidation` blob transactions now use `blobVersion: '7594'` (EIP-7594) instead of the standard EIP-4844 format (https://github.com/gear-tech/gear-js/pull/2405)
- `maxFeePerBlobGas` is now derived dynamically from `getFeeHistory` (3× the latest base fee) instead of the previous hardcoded value (https://github.com/gear-tech/gear-js/pull/2405)
- Gas limit for code validation transactions is now estimated via `estimateGas` instead of a hardcoded value (https://github.com/gear-tech/gear-js/pull/2405)

## [0.3.0]

### Added
Expand Down
35 changes: 23 additions & 12 deletions apis/vara-eth/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/vara-eth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.0.1"
version = "0.1.0"
authors = ["Gear Technologies"]
edition = "2024"
license = "GPL-3.0"
Expand Down
4 changes: 3 additions & 1 deletion apis/vara-eth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ npm install @vara-eth/api
Install required peer dependencies:

```bash
npm install viem@^2.39.0 kzg-wasm@1.0.0
npm install viem@npm:@vara-eth/viem@2.47.7-1 kzg-wasm@1.0.0
```

> **Note:** `@vara-eth/viem` is a temporary fork of [viem](https://viem.sh) that adds support for [EIP-7594](https://eips.ethereum.org/EIPS/eip-7594), which is not yet available in the upstream package. Once EIP-7594 support lands in the official viem release, this library will switch back to the original package.

## Quick Start

```typescript
Expand Down
2 changes: 1 addition & 1 deletion apis/vara-eth/contracts/Counter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ contract CounterCaller is ICounterCallbacks {
_;
}

function _onlyVaraEthProgram() internal {
function _onlyVaraEthProgram() internal view {
if (msg.sender != address(VAR_ETH_PROGRAM)) {
revert UnauthorizedCaller();
}
Expand Down
6 changes: 3 additions & 3 deletions apis/vara-eth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vara-eth/api",
"version": "0.3.0",
"version": "0.3.1",
"description": "Typescript library for interacting with Vara.Eth network",
"repository": {
"type": "git",
Expand Down Expand Up @@ -39,12 +39,12 @@
},
"peerDependencies": {
"kzg-wasm": "1.0.0",
"viem": "^2.39.0"
"viem": "*"
Comment thread
StackOverflowExcept1on marked this conversation as resolved.
},
"devDependencies": {
"@types/ws": "8.18.1",
"kzg-wasm": "1.0.0",
"viem": "2.47.4",
"viem": "npm:@vara-eth/viem@2.47.7-1",
"ws": "8.18.3"
},
"files": [
Expand Down
6 changes: 3 additions & 3 deletions apis/vara-eth/programs/injected/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use ethexe_common::{
ToDigest,
ecdsa::{PrivateKey, Signature, SignedMessage},
gprimitives::{ActorId, H256},
injected::{InjectedTransaction, Promise},
ToDigest,
};
use gear_core::rpc::ReplyInfo;
use gear_core_errors::{ReplyCode, SuccessReplyReason};
Expand All @@ -15,10 +15,10 @@ pub fn main() {

let tx = InjectedTransaction {
destination: ActorId::zero(),
payload: Vec::from([0, 1, 2]).into(),
payload: Vec::from([0, 1, 2]).try_into().unwrap(),
value: 256,
reference_block: H256::zero(),
salt: Vec::from([3, 4, 5]).into(),
salt: Vec::from([3, 4, 5]).try_into().unwrap(),
};

println!("hash: <{:?}>", tx.to_digest());
Expand Down
Loading
Loading