Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeMergeRequestProposalID ¶
func MakeMergeRequestProposalID(id interface{}) string
MakeMergeRequestProposalID returns the full proposal ID of a given merge request ID
Types ¶
type Contract ¶
MergeRequestContract is a system contract that creates a merge request proposal. MergeRequestContract implements core.SystemContract.
func NewContract ¶
NewContract creates a new instance of MergeRequestContract
type Data ¶
type Data struct { // RepoName is the target repo RepoName string // ProposalID is the unique proposal ID ProposalID string // ProposerFee is the amount to pay as proposal fee ProposerFee util.String // Fee is the network fee Fee util.String // CreatorAddress is the address of the proposal creator CreatorAddress identifier.Address // BaseBranch is the destination branch name BaseBranch string // BaseBranchHash is the destination branch current hash BaseBranchHash string // TargetBranch is the name of the source branch TargetBranch string // TargetBranchHash is the hash of the source branch TargetBranchHash string // repo is the target repository state Repo *state.Repository }
Click to show internal directories.
Click to hide internal directories.