Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
df33d3a
update
Kukoomomo Jan 30, 2026
f2912a3
update submitter seal bath timming
Kukoomomo Jan 30, 2026
b4c3780
update rollup cache config:
Kukoomomo Feb 3, 2026
685fcd2
update batch
Kukoomomo Feb 3, 2026
78fc928
update submitter batch generate
Kukoomomo Feb 3, 2026
3b4012c
update rollup contract deploy script
Kukoomomo Feb 3, 2026
06733cd
add test for commit batch test
Kukoomomo Feb 3, 2026
52f39ab
fix pending tx check and add batch storage
Kukoomomo Feb 5, 2026
260c081
fix lint
Kukoomomo Feb 5, 2026
86d1ef6
fix lint
Kukoomomo Feb 5, 2026
19fe1f0
fix submitter lint
Kukoomomo Feb 6, 2026
e550fa9
fix batch Seal
Kukoomomo Feb 6, 2026
0c419ba
fix code
Kukoomomo Feb 9, 2026
323f9a1
fix ai comment
Kukoomomo Feb 9, 2026
cef63e5
test without batch
Kukoomomo Feb 9, 2026
1c133aa
Merge branch 'main' into feat/submitter_batch
Kukoomomo Feb 12, 2026
0ece09b
storage batch header bytes
Kukoomomo Feb 12, 2026
8332876
fix some bug
Kukoomomo Feb 12, 2026
42f97ec
fix current block num set and init return
Kukoomomo Feb 12, 2026
98eceb2
add block num check
Kukoomomo Feb 12, 2026
4a2b4f9
sync test
Kukoomomo Feb 25, 2026
9717271
add flag for batch seal
Kukoomomo Feb 25, 2026
f32b889
Merge branch 'main' into feat/submitter_batch
Kukoomomo Feb 25, 2026
89cefeb
fix issues
Kukoomomo Feb 28, 2026
4cd15c8
Merge branch 'main' into feat/submitter_batch
Kukoomomo Feb 28, 2026
b1da6bd
fix lint
Kukoomomo Mar 2, 2026
4b8b8ea
Merge branch 'main' into feat/submitter_batch
Kukoomomo Mar 2, 2026
8e53bb8
fix log batch seal
Kukoomomo Mar 2, 2026
509292f
fix morph tx type
Kukoomomo Mar 4, 2026
2b9e8c6
fix name
Kukoomomo Mar 9, 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
14 changes: 14 additions & 0 deletions contracts/deploy/020-ContractInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,32 @@ export const ContractInit = async (
// submitter and challenger
const submitter: string = config.rollupProposer
const challenger: string = config.rollupChallenger
const rollupDelayPeriod: number = config.rollupDelayPeriod

if (!ethers.utils.isAddress(submitter)
|| !ethers.utils.isAddress(challenger)
) {
console.error('please check your address')
return ''
}
if (rollupDelayPeriod==0){
console.error('rollupDelayPeriod cannot set zero')
return ''
}
let res = await Rollup.importGenesisBatch(batchHeader)
let rec = await res.wait()
console.log(`importGenesisBatch(%s) ${rec.status == 1 ? "success" : "failed"}`, batchHeader)
res = await Rollup.addChallenger(challenger)
rec = await res.wait()
console.log(`addChallenger(%s) ${rec.status == 1 ? "success" : "failed"}`, challenger)

res =await Rollup.initialize2("0x0000000000000000000000000000000000000000000000000000000000000001")
rec = await res.wait()
console.log(`initialize2(%s) ${rec.status == 1 ? "success" : "failed"}`)

res = await Rollup.initialize3(rollupDelayPeriod)
rec = await res.wait()
console.log(`initialize3(%s) ${rec.status == 1 ? "success" : "failed"}`)
}

// ------------------ staking init -----------------
Expand Down
4 changes: 3 additions & 1 deletion contracts/src/deploy-config/l1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ const config = {
finalizationPeriodSeconds: 10,
rollupProofWindow: 86400,
proofRewardPercent: 70,
rollupDelayPeriod: 86400,

// challenge config
rollupProposer: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
rollupChallenger: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65',
// genesis config
batchHeader: '0x0000000000000000000000000000000000000000000000000043a758882ae97327ffcc63373e26fcd144a5a738eac834c167175d69713780c0010657f37554c781402a22917dee2f75def7ab966d7b770905398eba3c444014000000000000000000000000000000000000000000000000000000000000000020cd420e20d610897b8f2c5ac5259ab8b57cce1074212cec2815b2b73ff93d9f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
batchHeader: '0x00000000000000000000000000000000000000000000000000886e14341b355178d11a2c9f985f60a1a195973078b688a11aeaebb0c95db595010657f37554c781402a22917dee2f75def7ab966d7b770905398eba3c44401400000000000000000000000000000000000000000000000000000000000000002d20dde82426d971e398b3cba11ebb60d0d740b799f85e2f95fd12a1faad8e2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',

// staking config
// staking Cross-Chain config
Expand Down
4 changes: 2 additions & 2 deletions node/types/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ func DecodeTxsFromBytes(txsBytes []byte) (eth.Transactions, error) {
return nil, err
}
innerTx = new(eth.SetCodeTx)
case eth.AltFeeTxType:
case eth.MorphTxType:
if err := binary.Read(reader, binary.BigEndian, &firstByte); err != nil {
return nil, err
}
innerTx = new(eth.AltFeeTx)
innerTx = new(eth.MorphTx)
default:
if firstByte <= 0xf7 { // legacy tx first byte must be greater than 0xf7(247)
return nil, fmt.Errorf("not supported tx type: %d", firstByte)
Expand Down
1 change: 1 addition & 0 deletions tx-submitter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ tx-submitter
**/tx-submitter
build/
*debug_bin*
submitter-leveldb

# Config and Environment files
.env*
Expand Down
2 changes: 1 addition & 1 deletion tx-submitter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ clean:
rm tx-submitter

test:
go test -v -race -coverprofile=coverage.txt -covermode=atomic -p 1 ./...
go test -v -race -coverprofile=coverage.txt -covermode=atomic -p 1 $$(go list ./... | grep -v '/batch')

lint:
GOBIN=$(PWD)/build/bin go run ../build/lint.go
Expand Down
Loading
Loading