chaincode

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchResponseBuilder

type BatchResponseBuilder struct {
	// contains filtered or unexported fields
}

func NewBatchResponseBuilder

func NewBatchResponseBuilder() *BatchResponseBuilder

func (*BatchResponseBuilder) AddTxResponse

func (b *BatchResponseBuilder) AddTxResponse(txResponse *fpb.TxResponse) *BatchResponseBuilder

func (*BatchResponseBuilder) Build

func (*BatchResponseBuilder) Marshal

func (b *BatchResponseBuilder) Marshal() []byte

type ChaincodeActionBuilder

type ChaincodeActionBuilder struct {
	// contains filtered or unexported fields
}

func NewChaincodeActionBuilder

func NewChaincodeActionBuilder() *ChaincodeActionBuilder

func (*ChaincodeActionBuilder) Build

func (*ChaincodeActionBuilder) Marshal

func (b *ChaincodeActionBuilder) Marshal() []byte

func (*ChaincodeActionBuilder) SetChaincodeID

func (b *ChaincodeActionBuilder) SetChaincodeID(chaincodeID *peer.ChaincodeID) *ChaincodeActionBuilder

func (*ChaincodeActionBuilder) SetEvents

func (b *ChaincodeActionBuilder) SetEvents(events []byte) *ChaincodeActionBuilder

func (*ChaincodeActionBuilder) SetResponse

func (b *ChaincodeActionBuilder) SetResponse(response *peer.Response) *ChaincodeActionBuilder

func (*ChaincodeActionBuilder) SetResults

type ChaincodeActionPayloadBuilder

type ChaincodeActionPayloadBuilder struct {
	// contains filtered or unexported fields
}

func NewChaincodeActionPayloadBuilder

func NewChaincodeActionPayloadBuilder() *ChaincodeActionPayloadBuilder

func (*ChaincodeActionPayloadBuilder) Build

func (*ChaincodeActionPayloadBuilder) SetChaincodeProposalPayload

func (b *ChaincodeActionPayloadBuilder) SetChaincodeProposalPayload(inputPayload *peer.ChaincodeProposalPayload) *ChaincodeActionPayloadBuilder

func (*ChaincodeActionPayloadBuilder) SetEndorsedAction

type ChaincodeEndorsedActionBuilder

type ChaincodeEndorsedActionBuilder struct {
	// contains filtered or unexported fields
}

func NewChaincodeEndorsedActionBuilder

func NewChaincodeEndorsedActionBuilder() *ChaincodeEndorsedActionBuilder

func (*ChaincodeEndorsedActionBuilder) AddEndorsement

func (b *ChaincodeEndorsedActionBuilder) AddEndorsement(signature, endorser []byte) *ChaincodeEndorsedActionBuilder

func (*ChaincodeEndorsedActionBuilder) Build

func (*ChaincodeEndorsedActionBuilder) SetProposalResponsePayload

func (b *ChaincodeEndorsedActionBuilder) SetProposalResponsePayload(proposalHash []byte, extension []byte) *ChaincodeEndorsedActionBuilder

type ChaincodeInvocationSpecBuilder

type ChaincodeInvocationSpecBuilder struct {
	// contains filtered or unexported fields
}

func NewChaincodeInvocationSpecBuilder

func NewChaincodeInvocationSpecBuilder() *ChaincodeInvocationSpecBuilder

func (*ChaincodeInvocationSpecBuilder) Build

func (*ChaincodeInvocationSpecBuilder) Marshal

func (b *ChaincodeInvocationSpecBuilder) Marshal() []byte

func (*ChaincodeInvocationSpecBuilder) SetChaincodeSpec

type EnvelopeBuilder

type EnvelopeBuilder struct {
	// contains filtered or unexported fields
}

func NewEnvelopeBuilder

func NewEnvelopeBuilder() *EnvelopeBuilder

func (*EnvelopeBuilder) Build

func (b *EnvelopeBuilder) Build() *common.Envelope

func (*EnvelopeBuilder) SetChannelHeader

func (b *EnvelopeBuilder) SetChannelHeader(channelHeader *common.ChannelHeader) *EnvelopeBuilder

func (*EnvelopeBuilder) SetData

func (b *EnvelopeBuilder) SetData(transaction *peer.Transaction) *EnvelopeBuilder

func (*EnvelopeBuilder) SetSignature

func (b *EnvelopeBuilder) SetSignature(signature []byte) *EnvelopeBuilder

func (*EnvelopeBuilder) SetSignatureHeader

func (b *EnvelopeBuilder) SetSignatureHeader(signatureHeader *common.SignatureHeader) *EnvelopeBuilder

type TransactionBuilder

type TransactionBuilder struct {
	// contains filtered or unexported fields
}

func NewTransactionBuilder

func NewTransactionBuilder() *TransactionBuilder

func (*TransactionBuilder) AddAction

func (b *TransactionBuilder) AddAction(header []byte, payload *peer.ChaincodeActionPayload) *TransactionBuilder

func (*TransactionBuilder) Build

func (b *TransactionBuilder) Build() *peer.Transaction

func (*TransactionBuilder) Marshal

func (b *TransactionBuilder) Marshal() []byte

Jump to

Keyboard shortcuts

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