Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Order for VerifyWithdrawalCallParams #38

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Changes from all commits
Commits
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
20 changes: 10 additions & 10 deletions prove_withdrawal.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,32 @@ import (
type VerifyAndProcessWithdrawalCallParams struct {
OracleTimestamp uint64 `json:"oracleTimestamp"`
StateRootProof *StateRootProof `json:"stateRootProof"`
WithdrawalProofs []*WithdrawalProof `json:"withdrawalProofs"`
ValidatorFieldsProofs []common.Proof `json:"validatorFieldsProofs"`
ValidatorFields [][]Bytes32 `json:"validatorFields"`
ValidatorFieldsProofs []common.Proof `json:"validatorFieldsProofs"`
WithdrawalFields [][]Bytes32 `json:"withdrawalFields"`
WithdrawalProofs []*WithdrawalProof `json:"withdrawalProofs"`
}

type WithdrawalProof struct {
WithdrawalProof common.Proof `json:"withdrawalProof"`
SlotProof common.Proof `json:"slotProof"`
BlockRoot phase0.Root `json:"blockRoot"`
BlockRootIndex uint64 `json:"blockRootIndex"`
ExecutionPayloadProof common.Proof `json:"executionPayloadProof"`
TimestampProof common.Proof `json:"timestampProof"`
ExecutionPayloadRoot phase0.Root `json:"executionPayloadRoot"`
HistoricalSummaryBlockRootProof common.Proof `json:"historicalSummaryBlockRootProof"`
BlockRootIndex uint64 `json:"blockRootIndex"`
HistoricalSummaryIndex uint64 `json:"historicalSummaryIndex"`
WithdrawalIndex uint64 `json:"withdrawalIndex"`
BlockRoot phase0.Root `json:"blockRoot"`
SlotProof common.Proof `json:"slotProof"`
SlotRoot phase0.Root `json:"slotRoot"`
TimestampProof common.Proof `json:"timestampProof"`
TimestampRoot phase0.Root `json:"timestampRoot"`
ExecutionPayloadRoot phase0.Root `json:"executionPayloadRoot"`
WithdrawalIndex uint64 `json:"withdrawalIndex"`
WithdrawalProof common.Proof `json:"withdrawalProof"`
}

type StateRootProof struct {
BeaconStateRoot phase0.Root `json:"beaconStateRoot"`
StateRootProof common.Proof `json:"stateRootProof"`
Slot phase0.Slot `json:"slot"`
SlotRootProof common.Proof `json:"slotRootProof"` //Note: this slot root is oracle block root being used to prove partial withdrawals is after the specified range of blocks requested by the user
StateRootProof common.Proof `json:"stateRootProof"`
}

const FIRST_CAPELLA_SLOT_GOERLI = uint64(5193728)
Expand Down
Loading