Documentation ¶
Index ¶
- Constants
- func AddressFor(keyPair *keys.Ed25519KeyPair) primitives.Ripemd160Sha256
- func AddressForEd25519SignerForTests(setIndex int) primitives.Ripemd160Sha256
- func BenchmarkConsensusBlockPair() *blockPair
- func BenchmarkConsensusCommittedMessage() *committed
- func BlockAvailabilityRequestInput() *blockAvailabilityRequest
- func BlockAvailabilityResponseInput() *availabilityResponse
- func BlockPair() *blockPair
- func BlockSyncRequestInput() *blockSyncRequest
- func BlockSyncResponseInput() *blockChunk
- func ClientCallMethodResponseOutputArgumentsDecode(r *client.CallMethodResponse) *protocol.MethodArgumentArrayArgumentsIterator
- func ClientCallMethodResponseOutputArgumentsPrint(r *client.CallMethodResponse) string
- func ContractStateDiff() *sdiff
- func CorruptBlockPair() *corruptBlockPair
- func EmptyPayloads(num int) [][]byte
- func EthereumCallContractInput() *ethereumConnector
- func LeanHelixBlockPair() *blockPair
- func MethodArguments(args ...interface{}) (res []*protocol.MethodArgument)
- func MethodArgumentsArray(args ...interface{}) *protocol.MethodArgumentArray
- func MethodArgumentsBuilders(args ...interface{}) (res []*protocol.MethodArgumentBuilder)
- func PackedArgumentArrayDecode(rawArgumentArrayWithHeader []byte) *protocol.MethodArgumentArray
- func PackedArgumentArrayEncode(args ...interface{}) primitives.PackedArgumentArray
- func PackedEventsArrayEncode(eventBuilders []*protocol.EventBuilder) primitives.PackedEventsArray
- func TransactionInputArgumentsParse(t *protocol.Transaction) *protocol.MethodArgumentArrayArgumentsIterator
- func TransactionReceipt() *receipt
- func TransactionReceiptOutputArgumentsParse(r *protocol.TransactionReceipt) *protocol.MethodArgumentArrayArgumentsIterator
- type NonSignedTransactionBuilder
- 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 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 BlockSyncRequestInput ¶
func BlockSyncRequestInput() *blockSyncRequest
func BlockSyncResponseInput ¶
func BlockSyncResponseInput() *blockChunk
func ClientCallMethodResponseOutputArgumentsDecode ¶
func ClientCallMethodResponseOutputArgumentsDecode(r *client.CallMethodResponse) *protocol.MethodArgumentArrayArgumentsIterator
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 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 TransactionInputArgumentsParse ¶
func TransactionInputArgumentsParse(t *protocol.Transaction) *protocol.MethodArgumentArrayArgumentsIterator
func TransactionReceipt ¶
func TransactionReceipt() *receipt
func TransactionReceiptOutputArgumentsParse ¶
func TransactionReceiptOutputArgumentsParse(r *protocol.TransactionReceipt) *protocol.MethodArgumentArrayArgumentsIterator
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 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 (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.