Skip to content

Commit e897160

Browse files
feat(rollup): implement rollup module and enhance API functionality
feat(rollup): implement rollup module and enhance API functionality # What does this PR do? This PR introduces several major enhancements to the Varanasi test environment: 1. Adds initial implementation of the rollup module 2. Enables textual sign mode in transaction configuration 3. Enhances query functionality with total staked amount support 4. Updates OpenAPI specification for Tendermint ABCI endpoints 5. Integrates wasmvm with rollup-related API endpoints 6. Updates documentation to reflect new rollup module features # Key Changes - Initial rollup module implementation - Transaction configuration improvements - Enhanced query capabilities - Updated API documentation - WASM VM integration - README updates for new features # Testing Instructions Please verify: 1. Rollup module functionality 2. Transaction signing with new text mode 3. Query endpoints for staked amounts 4. WASM VM integration 5. API endpoint accessibility 6. Documentation accuracy # Related PRs - Builds upon PR #34 from airchains-network/varanasi-test # Note This PR contains 7 commits that significantly enhance the platform's rollup and WASM capabilities.
2 parents 4e7ded5 + 10e48a5 commit e897160

File tree

97 files changed

+46175
-338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+46175
-338
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ docs/tutorial
1919
dist
2020
tools-stamp
2121
docs/node_modules
22+
wasmvm
2223

2324
# Data - ideally these don't exist
2425
baseapp/data/*

Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ LEDGER_ENABLED ?= true
77
SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g')
88
BINDIR ?= $(GOPATH)/bin
99
SIMAPP = ./app
10+
WASMVM_VERSION := $(shell go list -m github.com/CosmWasm/wasmvm/v2 | awk '{print $$2}')
11+
UNAME_OS := $(shell uname -s)
12+
UNAME_ARCH := $(shell uname -m)
13+
1014

1115
# for dockerized protobuf tools
1216
DOCKER := $(shell which docker)
@@ -55,7 +59,7 @@ build_tags_comma_sep := $(subst $(empty),$(comma),$(build_tags))
5559

5660
# process linker flags
5761

58-
WASMVM_LIB_PATH := $(CURDIR)/wasmvm/libwasmvm/target/release
62+
WASMVM_LIB_PATH := $(CURDIR)/wasmvm
5963

6064

6165
ifeq ($(MAKECMDGOALS),build-static)
@@ -104,6 +108,13 @@ clone-wasmvm:
104108
cp libwasmvm.a libwasmvm.x86_64.a; \
105109
fi
106110

111+
wasmvm:
112+
mkdir wasmvm && \
113+
cd wasmvm && \
114+
wget https://github.com/CosmWasm/wasmvm/releases/download/$(WASMVM_VERSION)/libwasmvm_muslc.x86_64.a -O libwasmvm.x86_64.a && \
115+
cp libwasmvm.x86_64.a libwasmvm.a
116+
117+
107118
build: go.sum
108119
ifeq ($(OS),Windows_NT)
109120
$(error junctiond server not supported. Use "make build-windows-client" for client)
@@ -112,7 +123,7 @@ else
112123
go build -mod=readonly $(BUILD_FLAGS) -o build/junctiond ./cmd/junctiond
113124
endif
114125

115-
build-static: clone-wasmvm go.sum
126+
build-static: wasmvm go.sum
116127
ifeq ($(OS),Windows_NT)
117128
$(error junctiond server not supported. Use "make build-windows-client" for client)
118129
exit 1

README.md

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,38 @@
11
# Junction
22

3-
Welcome to **Junction**, a cutting-edge settlement layer designed to coordinate transaction flow and ensure efficient settlement across decentralized ecosystems. This latest update introduces powerful new modules: **`wasm`**, **`vrf`** (Verifiable Random Function), and **`cipher-ledger`**, significantly enhancing transaction security, confidentiality, and execution efficiency.
3+
Welcome to **Junction**, a cutting-edge settlement layer designed to coordinate transaction flow and ensure efficient settlement across decentralized ecosystems. This latest update introduces powerful modules: **`wasm`** and **`rollup`**, significantly enhancing smart contract execution and scalability capabilities.
44

55
## 🚀 Key Enhancements in This Update
66

7-
### **New Modules Introduced**
8-
- **`wasm` Module**: Brings full support for WebAssembly (WASM), enabling efficient smart contract execution.
9-
- **`vrf` Module**: Introduces Verifiable Random Functions, enhancing randomness-based selection processes.
10-
- **`cipher-ledger` Module**: Manages Fully Homomorphic Encryption (FHE) functionalities, ensuring private and secure on-chain computations.
7+
### **Core Modules**
8+
9+
- **`wasm` Module**: Brings full support for WebAssembly (WASM), enabling efficient smart contract execution and customizable blockchain logic.
10+
- **`rollup` Module**: Coordinates Layer 2 scaling solutions with advanced batch processing and verification capabilities.
11+
12+
### **Rollup Module Features**
13+
14+
- **Rollup Management**: Seamless registration and lifecycle management of Layer 2 rollups
15+
- **Batch Processing**: Efficient handling and verification of transaction batches
16+
- **IBC Integration**: Native support for Inter-Blockchain Communication
17+
- **Prover Integration**: Flexible integration with various proving systems
18+
- **Economic Model**: Built-in staking mechanism for rollup security
1119

1220
### **Improved Query & Transaction Processing**
13-
- Optimized verification key management.
14-
- Enhanced query functionalities for seamless blockchain interactions.
15-
- Robust batch handling for large-scale transaction processing.
21+
22+
- Optimized verification key management
23+
- Enhanced query functionalities for seamless blockchain interactions
24+
- Robust batch handling for large-scale transaction processing
25+
- Advanced rollup state management and coordination
1626

1727
## 📥 Installation & Setup
1828

1929
### Download the Binary
30+
2031
Ensure you download the appropriate binary for your operating system:
2132

22-
- **Visit the [release page](https://github.com/airchains-network/junction/releases/tag/v0.3.0-rc2)** and select the correct binary:
33+
- **Visit the [release page](https://github.com/airchains-network/junction/releases/tag/v0.3.2)** and select the correct binary:
34+
2335
- **Linux**: `junctiond-linux-amd64`
24-
- **macOS**: `junctiond-darwin-amd64`
25-
- **Windows**: `junctiond-windows-amd64`
2636

2737
- Rename the downloaded file for convenience:
2838

@@ -36,7 +46,7 @@ Ensure you download the appropriate binary for your operating system:
3646
chmod +x junctiond
3747
```
3848

39-
- Move it to your systems binary path:
49+
- Move it to your system's binary path:
4050

4151
```shell
4252
sudo mv junctiond /usr/local/bin
@@ -47,7 +57,7 @@ Ensure you download the appropriate binary for your operating system:
4757
To set up **Junction**, run the following command:
4858

4959
```shell
50-
junctiond init <moniker> --chain-id junction --default-denom amf
60+
junctiond init <moniker> --chain-id varanasi-1 --default-denom uamf
5161
```
5262

5363
This initializes a node with your chosen moniker and configures it for the **Junction** network.
@@ -69,4 +79,5 @@ For comprehensive setup guides, configuration details, and troubleshooting steps
6979
Stay engaged with our **community** for real-time discussions, updates, and support.
7080

7181
## 🎯 Vision & Future Roadmap
72-
The integration of `wasm`, `vrf` and `cipher-ledger` modules marks a significant milestone in our journey toward an advanced, privacy-preserving, and high-performance settlement layer. With these upgrades, **Junction** is poised to deliver enhanced security, scalability, and seamless transaction coordination across the Airchains ecosystem.
82+
83+
The integration of `wasm` and `rollup` modules marks a significant milestone in our journey toward an advanced and high-performance settlement layer. With these core modules, **Junction** is poised to deliver enhanced security, scalability, and seamless transaction coordination across the Airchains ecosystem. The combination of WebAssembly support and Layer 2 scaling solutions provides a robust foundation for building sophisticated decentralized applications while maintaining high performance and security.

0 commit comments

Comments
 (0)