builders

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_TEST_PROTOCOL_VERSION = primitives.ProtocolVersion(1)
View Source
const DEFAULT_TEST_VIRTUAL_CHAIN_ID = primitives.VirtualChainId(42)

Variables

This section is empty.

Functions

func AddressFor

func AddressFor(keyPair *keys.Ed25519KeyPair) primitives.Ripemd160Sha256

func AddressForEd25519SignerForTests

func AddressForEd25519SignerForTests(setIndex int) primitives.Ripemd160Sha256

func BenchmarkConsensusBlockPair

func BenchmarkConsensusBlockPair() *blockPair

func BenchmarkConsensusCommittedMessage

func BenchmarkConsensusCommittedMessage() *committed

func BlockAvailabilityRequestInput

func BlockAvailabilityRequestInput() *blockAvailabilityRequest

func BlockAvailabilityResponseInput

func BlockAvailabilityResponseInput() *availabilityResponse

func BlockPair

func BlockPair() *blockPair

func BlockSyncRequestInput

func BlockSyncRequestInput() *blockSyncRequest

func BlockSyncResponseInput

func BlockSyncResponseInput() *blockChunk

func ClientCallMethodResponseOutputArgumentsPrint

func ClientCallMethodResponseOutputArgumentsPrint(r *client.CallMethodResponse) string

func ContractStateDiff

func ContractStateDiff() *sdiff

func CorruptBlockPair

func CorruptBlockPair() *corruptBlockPair

func EmptyPayloads added in v0.7.1

func EmptyPayloads(num int) [][]byte

func EthereumCallContractInput

func EthereumCallContractInput() *ethereumConnector

func LeanHelixBlockPair

func LeanHelixBlockPair() *blockPair

func MethodArguments

func MethodArguments(args ...interface{}) (res []*protocol.MethodArgument)

func MethodArgumentsArray

func MethodArgumentsArray(args ...interface{}) *protocol.MethodArgumentArray

func MethodArgumentsBuilders

func MethodArgumentsBuilders(args ...interface{}) (res []*protocol.MethodArgumentBuilder)

func PackedArgumentArrayDecode added in v0.7.1

func PackedArgumentArrayDecode(rawArgumentArrayWithHeader []byte) *protocol.MethodArgumentArray

func PackedArgumentArrayEncode added in v0.7.1

func PackedArgumentArrayEncode(args ...interface{}) primitives.PackedArgumentArray

func PackedEventsArrayEncode added in v0.7.1

func PackedEventsArrayEncode(eventBuilders []*protocol.EventBuilder) primitives.PackedEventsArray

func TransactionReceipt

func TransactionReceipt() *receipt

Types

type NonSignedTransactionBuilder

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

func NonSignedTransaction

func NonSignedTransaction() *NonSignedTransactionBuilder

func (*NonSignedTransactionBuilder) Build

func (*NonSignedTransactionBuilder) Builder

func (*NonSignedTransactionBuilder) WithMethod

type TransactionBuilder

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

func GetBalanceTransaction

func GetBalanceTransaction() *TransactionBuilder

func Transaction

func Transaction() *TransactionBuilder

func TransferTransaction

func TransferTransaction() *TransactionBuilder

func (*TransactionBuilder) Build

func (*TransactionBuilder) Builder

func (*TransactionBuilder) WithAmountAndTargetAddress

func (t *TransactionBuilder) WithAmountAndTargetAddress(amount uint64, targetAddress []byte) *TransactionBuilder

func (*TransactionBuilder) WithArgs

func (t *TransactionBuilder) WithArgs(args ...interface{}) *TransactionBuilder

func (*TransactionBuilder) WithContract

func (t *TransactionBuilder) WithContract(name string) *TransactionBuilder

func (*TransactionBuilder) WithEd25519Signer

func (t *TransactionBuilder) WithEd25519Signer(keyPair *keys.Ed25519KeyPair) *TransactionBuilder

func (*TransactionBuilder) WithInvalidAmount

func (t *TransactionBuilder) WithInvalidAmount(targetAddress []byte) *TransactionBuilder

func (*TransactionBuilder) WithInvalidEd25519Signer

func (t *TransactionBuilder) WithInvalidEd25519Signer(keyPair *keys.Ed25519KeyPair) *TransactionBuilder

func (*TransactionBuilder) WithInvalidPublicKey

func (t *TransactionBuilder) WithInvalidPublicKey() *TransactionBuilder

func (*TransactionBuilder) WithInvalidSignerScheme

func (t *TransactionBuilder) WithInvalidSignerScheme() *TransactionBuilder

func (*TransactionBuilder) WithMethod

func (t *TransactionBuilder) WithMethod(contractName primitives.ContractName, methodName primitives.MethodName) *TransactionBuilder

func (*TransactionBuilder) WithProtocolVersion

func (*TransactionBuilder) WithTargetAddress

func (t *TransactionBuilder) WithTargetAddress(targetAddress []byte) *TransactionBuilder

func (*TransactionBuilder) WithTimestamp

func (t *TransactionBuilder) WithTimestamp(timestamp time.Time) *TransactionBuilder

func (*TransactionBuilder) WithTimestampInFarFuture

func (t *TransactionBuilder) WithTimestampInFarFuture() *TransactionBuilder

func (*TransactionBuilder) WithVirtualChainId

func (t *TransactionBuilder) WithVirtualChainId(virtualChainId primitives.VirtualChainId) *TransactionBuilder

Jump to

Keyboard shortcuts

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