cdk

package
v0.1.74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2025 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgRpcURL = "rpc-url"
	ArgForkID = "fork-id"

	ArgRollupManagerAddress = "rollup-manager-address"

	ArgRollupChainID = "rollup-chain-id"
	ArgRollupID      = "rollup-id"
	ArgRollupAddress = "rollup-address"
	ArgBridgeAddress = "bridge-address"
	ArgGERAddress    = "ger-address"
)

Variables

View Source
var CDKCmd = &cobra.Command{
	Use:   "cdk",
	Short: "Utilities for interacting with CDK networks",
	Long:  "Basic utility commands for interacting with the cdk contracts",
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		cdkInputArgs.rpcURL = flag_loader.GetRpcUrlFlagValue(cmd)
	},
	Args: cobra.NoArgs,
}

Functions

This section is empty.

Types

type BridgeData

type BridgeData struct {
	NetworkID               uint32         `json:"networkID"`
	DepositCount            *big.Int       `json:"depositCount"`
	IsEmergencyState        bool           `json:"isEmergencyState"`
	LastUpdatedDepositCount uint32         `json:"lastUpdatedDepositCount"`
	GlobalExitRootManager   common.Address `json:"globalExitRootManager"`
}

type BridgeDumpData

type BridgeDumpData struct {
	Data *BridgeData `json:"data"`
}

type RollupData

type RollupData struct {
	// from rollup manager sc
	RollupContract                 common.Address `json:"rollupContract"`
	ChainID                        uint64         `json:"chainID"`
	Verifier                       common.Address `json:"verifier"`
	ForkID                         uint64         `json:"forkID"`
	LastLocalExitRoot              common.Hash    `json:"lastLocalExitRoot"`
	LastBatchSequenced             uint64         `json:"lastBatchSequenced"`
	LastVerifiedBatch              uint64         `json:"lastVerifiedBatch"`
	LastPendingState               uint64         `json:"lastPendingState"`
	LastPendingStateConsolidated   uint64         `json:"lastPendingStateConsolidated"`
	LastVerifiedBatchBeforeUpgrade uint64         `json:"lastVerifiedBatchBeforeUpgrade"`
	RollupTypeID                   uint64         `json:"rollupTypeID"`
	RollupCompatibilityID          uint8          `json:"rollupCompatibilityID"`

	// from rollup sc
	Admin               common.Address `json:"admin"`
	GasTokenAddress     common.Address `json:"gasTokenAddress"`
	GasTokenNetwork     uint32         `json:"gasTokenNetwork"`
	LastAccInputHash    common.Hash    `json:"lastAccInputHash"`
	NetworkName         string         `json:"networkName"`
	TrustedSequencer    common.Address `json:"trustedSequencer"`
	TrustedSequencerURL string         `json:"trustedSequencerURL"`
}

type RollupDumpData

type RollupDumpData struct {
	Data *RollupData     `json:"data"`
	Type *RollupTypeData `json:"type"`
}

type RollupManagerData

type RollupManagerData struct {
	Pol                                    common.Address `json:"pol"`
	BridgeAddress                          common.Address `json:"bridgeAddress"`
	RollupCount                            uint32         `json:"rollupCount"`
	BatchFee                               *big.Int       `json:"batchFee"`
	TotalSequencedBatches                  uint64         `json:"totalSequencedBatches"`
	TotalVerifiedBatches                   uint64         `json:"totalVerifiedBatches"`
	LastAggregationTimestamp               uint64         `json:"lastAggregationTimestamp"`
	LastDeactivatedEmergencyStateTimestamp uint64         `json:"lastDeactivatedEmergencyStateTimestamp"`
}

type RollupManagerDumpData

type RollupManagerDumpData struct {
	Data        *RollupManagerData `json:"data"`
	Rollups     []RollupData       `json:"rollups"`
	RollupTypes []RollupTypeData   `json:"rollupTypes"`
}

type RollupTypeData

type RollupTypeData struct {
	ConsensusImplementation common.Address `json:"consensusImplementation"`
	Verifier                common.Address `json:"verifier"`
	ForkID                  uint64         `json:"forkID"`
	RollupCompatibilityID   uint8          `json:"rollupCompatibilityID"`
	Obsolete                bool           `json:"obsolete"`
	Genesis                 common.Hash    `json:"genesis"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL