Skip to content

Commit

Permalink
feat: new defs for op-services
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 23, 2025
1 parent f932d6b commit 907945e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions core/types/taiko_transaction.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
package types

import (
"math/big"

"github.com/ethereum/go-ethereum/common"
)

// To make taiko-geth compatible with op-service.
const DepositTxType = 0x7E

// To make taiko-geth compatible with op-service.
type DepositTx struct {
// SourceHash uniquely identifies the source of the deposit
SourceHash common.Hash
// From is exposed through the types.Signer, not through TxData
From common.Address
// nil means contract creation
To *common.Address `rlp:"nil"`
// Mint is minted on L2, locked on L1, nil if no minting.
Mint *big.Int `rlp:"nil"`
// Value is transferred from L2 balance, executed after Mint (if any)
Value *big.Int
// gas limit
Gas uint64
// Field indicating if this transaction is exempt from the L2 gas limit.
IsSystemTransaction bool
// Normal Tx data
Data []byte
}

func (tx *Transaction) MarkAsAnchor() error {
return tx.inner.markAsAnchor()
}
Expand Down

0 comments on commit 907945e

Please sign in to comment.