Documentation ¶
Index ¶
- Constants
- func Arguments(args ...interface{}) (res []*protocol.Argument)
- func ArgumentsArray(args ...interface{}) *protocol.ArgumentArray
- func ArgumentsBuilders(args ...interface{}) (res []*protocol.ArgumentBuilder)
- func BenchmarkConsensusBlockPair() *blockPair
- func BenchmarkConsensusCommittedMessage() *committed
- func BlockAvailabilityRequestInput() *blockAvailabilityRequest
- func BlockAvailabilityResponseInput() *availabilityResponse
- func BlockPair() *blockPair
- func BlockSyncRequestInput() *blockSyncRequest
- func BlockSyncResponseInput() *blockChunk
- func ClientAddressForEd25519SignerForTests(setIndex int) primitives.ClientAddress
- func ContractStateDiff() *sdiff
- func CorruptBlockPair() *corruptBlockPair
- func EmptyPayloads(num int) [][]byte
- func EthereumCallContractInput() *ethereumCallContractInput
- func PackedArgumentArrayDecode(rawArgumentArrayWithHeader []byte) *protocol.ArgumentArray
- func PackedArgumentArrayEncode(args ...interface{}) primitives.PackedArgumentArray
- func PackedEventsArrayEncode(eventBuilders []*protocol.EventBuilder) primitives.PackedEventsArray
- func RandomizedBlock(h primitives.BlockHeight, ctrlRand *rand.ControlledRand, ...) *protocol.BlockPairContainer
- func RandomizedBlockChain(numBlocks int32, ctrlRand *rand.ControlledRand) []*protocol.BlockPairContainer
- func TransactionInputArgumentsParse(t *protocol.Transaction) *protocol.ArgumentArrayArgumentsIterator
- func TransactionReceipt() *receipt
- func TransactionRef() *transactionRef
- type NonSignedTransactionBuilder
- type QueryBuilder
- func (q *QueryBuilder) Build() *protocol.SignedQuery
- func (q *QueryBuilder) Builder() *protocol.SignedQueryBuilder
- func (q *QueryBuilder) WithAmountAndTargetAddress(amount uint64, targetAddress []byte) *QueryBuilder
- func (q *QueryBuilder) WithArgs(args ...interface{}) *QueryBuilder
- func (q *QueryBuilder) WithEd25519Signer(keyPair *keys.Ed25519KeyPair) *QueryBuilder
- func (q *QueryBuilder) WithMethod(contractName primitives.ContractName, methodName primitives.MethodName) *QueryBuilder
- func (q *QueryBuilder) WithTargetAddress(targetAddress []byte) *QueryBuilder
- func (q *QueryBuilder) WithVirtualChainId(virtualChainId primitives.VirtualChainId) *QueryBuilder
- type TransactionBuilder
- func (t *TransactionBuilder) Build() *protocol.SignedTransaction
- func (t *TransactionBuilder) Builder() *protocol.SignedTransactionBuilder
- func (t *TransactionBuilder) WithAmountAndTargetAddress(amount uint64, targetAddress []byte) *TransactionBuilder
- func (t *TransactionBuilder) WithArgs(args ...interface{}) *TransactionBuilder
- func (t *TransactionBuilder) WithContract(name string) *TransactionBuilder
- func (t *TransactionBuilder) WithEd25519Signer(keyPair *keys.Ed25519KeyPair) *TransactionBuilder
- func (t *TransactionBuilder) WithInvalidAmount(targetAddress []byte) *TransactionBuilder
- func (t *TransactionBuilder) WithInvalidEd25519Signer(keyPair *keys.Ed25519KeyPair) *TransactionBuilder
- func (t *TransactionBuilder) WithInvalidPublicKey() *TransactionBuilder
- func (t *TransactionBuilder) WithInvalidSignerScheme() *TransactionBuilder
- func (t *TransactionBuilder) WithMethod(contractName primitives.ContractName, methodName primitives.MethodName) *TransactionBuilder
- func (t *TransactionBuilder) WithProtocolVersion(v primitives.ProtocolVersion) *TransactionBuilder
- func (t *TransactionBuilder) WithTargetAddress(targetAddress []byte) *TransactionBuilder
- func (t *TransactionBuilder) WithTimestamp(timestamp time.Time) *TransactionBuilder
- func (t *TransactionBuilder) WithTimestampInFarFuture() *TransactionBuilder
- func (t *TransactionBuilder) WithVirtualChainId(virtualChainId primitives.VirtualChainId) *TransactionBuilder
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 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 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 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 RandomizedBlock(h primitives.BlockHeight, ctrlRand *rand.ControlledRand, prev *protocol.BlockPairContainer) *protocol.BlockPairContainer
func RandomizedBlockChain ¶ added in v0.7.11
func RandomizedBlockChain(numBlocks int32, ctrlRand *rand.ControlledRand) []*protocol.BlockPairContainer
func TransactionInputArgumentsParse ¶
func TransactionInputArgumentsParse(t *protocol.Transaction) *protocol.ArgumentArrayArgumentsIterator
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 (t *NonSignedTransactionBuilder) Build() *protocol.Transaction
func (*NonSignedTransactionBuilder) Builder ¶
func (t *NonSignedTransactionBuilder) Builder() *protocol.TransactionBuilder
func (*NonSignedTransactionBuilder) WithMethod ¶
func (t *NonSignedTransactionBuilder) WithMethod(contractName primitives.ContractName, methodName primitives.MethodName) *NonSignedTransactionBuilder
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 (q *QueryBuilder) Builder() *protocol.SignedQueryBuilder
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 (t *TransactionBuilder) Build() *protocol.SignedTransaction
func (*TransactionBuilder) Builder ¶
func (t *TransactionBuilder) Builder() *protocol.SignedTransactionBuilder
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 (t *TransactionBuilder) WithProtocolVersion(v primitives.ProtocolVersion) *TransactionBuilder
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
Click to show internal directories.
Click to hide internal directories.