builders

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 16 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 Arguments added in v0.7.11

func Arguments(args ...interface{}) (res []*protocol.Argument)

func ArgumentsArray added in v0.7.11

func ArgumentsArray(args ...interface{}) *protocol.ArgumentArray

func ArgumentsBuilders added in v0.7.11

func ArgumentsBuilders(args ...interface{}) (res []*protocol.ArgumentBuilder)

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 ClientAddressForEd25519SignerForTests added in v0.7.11

func ClientAddressForEd25519SignerForTests(setIndex int) primitives.ClientAddress

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() *ethereumCallContractInput

func PackedArgumentArrayDecode added in v0.7.1

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

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 RandomizedBlock added in v0.7.11

func RandomizedBlockChain added in v0.7.11

func RandomizedBlockChain(numBlocks int32, ctrlRand *rand.ControlledRand) []*protocol.BlockPairContainer

func TransactionReceipt

func TransactionReceipt() *receipt

func TransactionRef added in v0.7.11

func TransactionRef() *transactionRef

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 QueryBuilder added in v0.7.11

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

do not create this struct directly although it's exported

func GetBalanceQuery added in v0.7.11

func GetBalanceQuery() *QueryBuilder

func Query added in v0.7.11

func Query() *QueryBuilder

func (*QueryBuilder) Build added in v0.7.11

func (q *QueryBuilder) Build() *protocol.SignedQuery

func (*QueryBuilder) Builder added in v0.7.11

func (*QueryBuilder) WithAmountAndTargetAddress added in v0.7.11

func (q *QueryBuilder) WithAmountAndTargetAddress(amount uint64, targetAddress []byte) *QueryBuilder

func (*QueryBuilder) WithArgs added in v0.7.11

func (q *QueryBuilder) WithArgs(args ...interface{}) *QueryBuilder

func (*QueryBuilder) WithEd25519Signer added in v0.7.11

func (q *QueryBuilder) WithEd25519Signer(keyPair *keys.Ed25519KeyPair) *QueryBuilder

func (*QueryBuilder) WithMethod added in v0.7.11

func (q *QueryBuilder) WithMethod(contractName primitives.ContractName, methodName primitives.MethodName) *QueryBuilder

func (*QueryBuilder) WithTargetAddress added in v0.7.11

func (q *QueryBuilder) WithTargetAddress(targetAddress []byte) *QueryBuilder

func (*QueryBuilder) WithVirtualChainId added in v0.7.11

func (q *QueryBuilder) WithVirtualChainId(virtualChainId primitives.VirtualChainId) *QueryBuilder

type TransactionBuilder

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

do not create this struct directly although it's exported

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