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 ( ErrRollupNotFound = errors.New("rollup not found") ErrMethodNotSupported = errors.New("method not supported") )
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 {
WETHToken common.Address `json:"wethToken"`
DepositCount *big.Int `json:"depositCount"`
GasTokenAddress common.Address `json:"gasTokenAddress"`
GasTokenMetadata common.Hash `json:"gasTokenMetadata"`
GasTokenNetwork uint32 `json:"gasTokenNetwork"`
GetRoot common.Hash `json:"getRoot"`
GlobalExitRootManager common.Address `json:"globalExitRootManager"`
IsEmergencyState bool `json:"isEmergencyState"`
LastUpdatedDepositCount uint32 `json:"lastUpdatedDepositCount"`
NetworkID uint32 `json:"networkID"`
PolygonRollupManager common.Address `json:"polygonRollupManager"`
}
type BridgeDumpData ¶
type BridgeDumpData struct {
Data *BridgeData `json:"data"`
}
type CommitteeData ¶ added in v0.1.76
type CommitteeData struct {
CommitteeHash common.Hash `json:"committeeHash"`
AmountOfMembers *big.Int `json:"amountOfMembers"`
ProcotolName string `json:"procotolName"`
Members []CommitteeMemberData
Owner common.Address `json:"owner"`
RequiredAmountOfSignatures *big.Int `json:"requiredAmountOfSignatures"`
}
type CommitteeMemberData ¶ added in v0.1.76
type RollupData ¶
type RollupData struct {
// from rollup manager sc
RollupID uint32 `json:"rollupID"`
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"`
// validium
Validium bool `json:"validium"`
DataAvailabilityProtocol *common.Address `json:"dataAvailabilityProtocol,omitempty"`
IsSequenceWithDataAvailabilityAllowed *bool `json:"isSequenceWithDataAvailabilityAllowed,omitempty"`
}
type RollupDumpData ¶
type RollupDumpData struct {
Data *RollupData `json:"data"`
Type *RollupTypeData `json:"type"`
Committee *CommitteeData `json:"committee,omitempty"`
}
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"`
}
Click to show internal directories.
Click to hide internal directories.