Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion bindings/dao/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func GetProposalCount(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, e
return (*proposalCount).Uint64(), nil
}

// Proposal details
// GetProposalDAO returns the DAO name associated with a proposal.
func GetProposalDAO(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.CallOpts) (string, error) {
rocketDAOProposal, err := getRocketDAOProposal(rp, opts)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion bindings/dao/protocol/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ func EstimateFinalizeGas(rp *rocketpool.RocketPool, proposalId uint64, opts *bin
return rocketDAOProtocolProposal.GetTransactionGasInfo(opts, "finalise", big.NewInt(int64(proposalId)))
}

// Finalizes a vetoed proposal by burning the proposer's bond
// Finalize burns the proposer's bond for a vetoed proposal.
func Finalize(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.TransactOpts) (common.Hash, error) {
rocketDAOProtocolProposal, err := getRocketDAOProtocolProposal(rp, nil)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions bindings/dao/protocol/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func EstimateCreateChallengeGas(rp *rocketpool.RocketPool, proposalId uint64, in
return rocketDAOProtocolVerifier.GetTransactionGasInfo(opts, "createChallenge", big.NewInt(int64(proposalId)), big.NewInt((int64(index))), node, witness)
}

// Challenge a proposal at a specific tree node index, providing a Merkle proof of the node as well
// CreateChallenge challenges a proposal at a tree node index with a Merkle proof for that node.
func CreateChallenge(rp *rocketpool.RocketPool, proposalId uint64, index uint64, node types.VotingTreeNode, witness []types.VotingTreeNode, opts *bind.TransactOpts) (common.Hash, error) {
rocketDAOProtocolVerifier, err := getRocketDAOProtocolVerifier(rp, nil)
if err != nil {
Expand Down Expand Up @@ -506,7 +506,7 @@ func EstimateDefeatProposalGas(rp *rocketpool.RocketPool, proposalId uint64, ind
return rocketDAOProtocolVerifier.GetTransactionGasInfo(opts, "defeatProposal", big.NewInt(int64(proposalId)), big.NewInt(int64(index)))
}

// Defeat a proposal if it fails to respond to a challenge within the challenge window, providing the node index that wasn't responded to
// DefeatProposal defeats a proposal that failed to respond to a challenge within the challenge window.
func DefeatProposal(rp *rocketpool.RocketPool, proposalId uint64, index uint64, opts *bind.TransactOpts) (common.Hash, error) {
rocketDAOProtocolVerifier, err := getRocketDAOProtocolVerifier(rp, nil)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion bindings/dao/security/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func EstimateCancelProposalGas(rp *rocketpool.RocketPool, proposalId uint64, opt
return rocketDAOSecurityProposals.GetTransactionGasInfo(opts, "cancel", big.NewInt(int64(proposalId)))
}

// Cancel a submitted proposal
// CancelProposal cancels a submitted security DAO proposal.
func CancelProposal(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.TransactOpts) (common.Hash, error) {
rocketDAOSecurityProposals, err := getRocketDAOSecurityProposals(rp, nil)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion bindings/dao/security/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func GetMemberAt(rp *rocketpool.RocketPool, index uint64, opts *bind.CallOpts) (
return *memberAddress, nil
}

// Member details
// GetMemberExists reports whether the address is a security DAO member.
func GetMemberExists(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (bool, error) {
rocketDAOSecurity, err := getRocketDAOSecurity(rp, opts)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion bindings/dao/trustednode/dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func GetMemberAt(rp *rocketpool.RocketPool, index uint64, opts *bind.CallOpts) (
return *memberAddress, nil
}

// Member details
// GetMemberExists reports whether the address is a trusted node DAO member.
func GetMemberExists(rp *rocketpool.RocketPool, memberAddress common.Address, opts *bind.CallOpts) (bool, error) {
rocketDAONodeTrusted, err := getRocketDAONodeTrusted(rp, opts)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion bindings/dao/trustednode/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func EstimateCancelProposalGas(rp *rocketpool.RocketPool, proposalId uint64, opt
return rocketDAONodeTrustedProposals.GetTransactionGasInfo(opts, "cancel", big.NewInt(int64(proposalId)))
}

// Cancel a submitted proposal
// CancelProposal cancels a submitted trusted node DAO proposal.
func CancelProposal(rp *rocketpool.RocketPool, proposalId uint64, opts *bind.TransactOpts) (common.Hash, error) {
rocketDAONodeTrustedProposals, err := getRocketDAONodeTrustedProposals(rp, nil)
if err != nil {
Expand Down