proposal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSuccessfulResponse

func CheckSuccessfulResponse(proposalResponse *peer.ProposalResponse) error

func NewProposal

func NewProposal(
	id identity.Identity,
	chaincodeName string,
	transactionName string,
	options ...Option,
) (*peer.Proposal, error)

func NewSignedProposal

func NewSignedProposal(proposal *peer.Proposal, signer identity.Signer) (*peer.SignedProposal, error)

Types

type Option

type Option = func(*builder) error

Option implements an option for a transaction proposal.

func WithArguments

func WithArguments(args ...[]byte) Option

WithArguments appends to the transaction function arguments associated with a transaction proposal.

func WithChannel

func WithChannel(channelName string) Option

WithChannel specifies the name of the channel to which the transaction proposal is directed.

func WithTransient

func WithTransient(transient map[string][]byte) Option

WithTransient specifies the transient data associated with a transaction proposal. This is usually used in combination with WithEndorsingOrganizations for private data scenarios

func WithType

func WithType(headerType common.HeaderType) Option

Jump to

Keyboard shortcuts

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