Documentation
¶
Index ¶
- Constants
- Variables
- func AppendHeaderBytesToTransactions(headerBytes, transactions []byte) ([]byte, error)
- func BlockGetSignature(data []byte) (crypto.Signature, error)
- func Bool(buf []byte) (bool, error)
- func BytesWithUInt16Len(buf []byte) ([]byte, error)
- func BytesWithUInt32Len(buf []byte) ([]byte, error)
- func DecodeFromHexString(s string) ([]byte, error)
- func DigestTail(digest crypto.Digest) [AssetIDTailSize]byte
- func EncodeToHexString(b []byte) string
- func EndorsementMessage(finalizedBlockID BlockID, endorsedBlockID BlockID, finalizedBlockHeight Height) ([]byte, error)
- func EthereumWeiToWavelet(weiAmount *big.Int) (int64, error)
- func GenerateIssueScriptActionID(name, description string, decimals, quantity int64, reissuable bool, ...) crypto.Digest
- func GenerateLeaseScriptActionID(recipient Recipient, amount int64, nonce int64, txID crypto.Digest) crypto.Digest
- func IsProtobufTx(tx Transaction) bool
- func IsValidAliasString(a string) (bool, error)
- func MarshalOrderBody(scheme Scheme, o Order) (data []byte, err error)
- func MarshalSignedTxDeterministic(tx Transaction, scheme Scheme) ([]byte, error)
- func MarshalToProtobufDeterministic(pb vtStrictMarshaler) ([]byte, error)
- func MarshalTx(scheme Scheme, tx Transaction) ([]byte, error)
- func MarshalTxBody(scheme Scheme, tx Transaction) ([]byte, error)
- func MarshalTxDeterministic(tx Transaction, scheme Scheme) ([]byte, error)
- func NetworkStrFromScheme(scheme Scheme) string
- func NewInfoMsg(err error) error
- func NewScriptResult(actions []ScriptAction, msg ScriptErrorMessage) (*ScriptResult, []*AttachedPaymentScriptAction, error)
- func NewTimestampFromTime(t time.Time) uint64
- func NewTimestampFromUnixNano(nano int64) uint64
- func ParseMessage(data []byte, contentID PeerMessageID, name string, ...) error
- func PutBool(buf []byte, b bool)
- func PutBytesWithUInt16Len(buf []byte, data []byte) error
- func PutBytesWithUInt32Len(buf []byte, data []byte) error
- func PutStringWithUInt8Len(buf []byte, s string)
- func PutStringWithUInt16Len(buf []byte, s string)
- func PutStringWithUInt32Len(buf []byte, s string)
- func ReadMessage(r io.Reader, contentID PeerMessageID, name string, payload Payload) (int64, error)
- func ReconstructDigest(id AssetID, tail [AssetIDTailSize]byte) crypto.Digest
- func StringWithUInt8Len(buf []byte) (string, error)
- func StringWithUInt16Len(buf []byte) (string, error)
- func StringWithUInt32Len(buf []byte) (string, error)
- func TransactionToProtobufCommon(scheme Scheme, senderPublicKey []byte, tx Transaction) *g.Transaction
- func UnmarshalTransactionFromJSON(data []byte, scheme Scheme, tx Transaction) (err error)
- func ValidateActions(actions []ScriptAction, restrictions ActionsValidationRestrictions, ...) error
- func ValidateAttachedPaymentScriptAction(action *AttachedPaymentScriptAction, ...) error
- func ValidateBurnScriptAction(action *BurnScriptAction) error
- func ValidateDataEntryScriptAction(action *DataEntryScriptAction, restrictions ActionsValidationRestrictions, ...) (int, error)
- func ValidateEthereumSignatureValues(v byte, r, s *big.Int) bool
- func ValidateIssueScriptAction(action *IssueScriptAction) error
- func ValidateLeaseScriptAction(action *LeaseScriptAction, restrictions ActionsValidationRestrictions) error
- func ValidateNonNegativeAmount(amount int64, of string) error
- func ValidatePositiveAmount(amount int64, of string) error
- func ValidateReissueScriptAction(action *ReissueScriptAction) error
- func ValidateSponsorshipScriptAction(action *SponsorshipScriptAction) error
- func ValidateTransferScriptAction(action *TransferScriptAction, restrictions ActionsValidationRestrictions) error
- func VerifyEthereumSignature(pubKey *EthereumPublicKey, rBig, sBig *big.Int, hash []byte) bool
- func VersionFromScriptBytes(scriptBytes []byte) (int32, error)
- func WaveletToEthereumWei(waveletAmount uint64) *big.Int
- func WriteBool(w io.Writer, b bool) error
- func WriteByte(w io.Writer, c byte) error
- func WriteBytesWithUInt16Len(w io.Writer, data []byte) error
- func WriteMessage(w io.Writer, contentID PeerMessageID, name string, payload io.WriterTo) (int64, error)
- func WriteStringWithUInt16Len(w io.Writer, data string) error
- type AccountScriptSnapshot
- func (s AccountScriptSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s AccountScriptSnapshot) Apply(a SnapshotApplier) error
- func (s *AccountScriptSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_AccountScript) error
- func (s AccountScriptSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AccountScript, error)
- type ActionsCountValidator
- type ActionsValidationRestrictions
- type Address
- type AddressID
- type Alias
- func (a Alias) BinarySize() int
- func (a *Alias) Bytes() []byte
- func (a *Alias) MarshalBinary() ([]byte, error)
- func (a Alias) MarshalJSON() ([]byte, error)
- func (a *Alias) Serialize(s *serializer.Serializer) error
- func (a Alias) String() string
- func (a *Alias) UnmarshalBinary(data []byte) error
- func (a *Alias) UnmarshalJSON(value []byte) error
- func (a Alias) Valid(scheme Scheme) (bool, error)
- func (a *Alias) WriteTo(w io.Writer) (int64, error)
- type AliasSnapshot
- func (s AliasSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s AliasSnapshot) Apply(a SnapshotApplier) error
- func (s *AliasSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_Alias) error
- func (s AliasSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_Alias, error)
- func (s *AliasSnapshot) UnmarshalJSON(bytes []byte) error
- type Argument
- type ArgumentType
- type ArgumentValueType
- type Arguments
- type AssetBalanceSnapshot
- func (s AssetBalanceSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s AssetBalanceSnapshot) Apply(a SnapshotApplier) error
- func (s *AssetBalanceSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_Balance) error
- func (s AssetBalanceSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_Balance, error)
- type AssetConstInfo
- type AssetDescriptionSnapshot
- func (s AssetDescriptionSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s AssetDescriptionSnapshot) Apply(a SnapshotApplier) error
- func (s *AssetDescriptionSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_AssetNameAndDescription) error
- func (s AssetDescriptionSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AssetNameAndDescription, error)
- type AssetID
- type AssetInfo
- type AssetPair
- type AssetScriptSnapshot
- func (s AssetScriptSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s AssetScriptSnapshot) Apply(a SnapshotApplier) error
- func (s *AssetScriptSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_AssetScript) error
- func (s AssetScriptSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AssetScript, error)
- type AssetVolumeSnapshot
- func (s AssetVolumeSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s AssetVolumeSnapshot) Apply(a SnapshotApplier) error
- func (s *AssetVolumeSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_AssetVolume) error
- func (s AssetVolumeSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AssetVolume, error)
- type AtomicSnapshot
- type AttachedPaymentScriptAction
- type Attachment
- type B58Bytes
- type B64Bytes
- type BUpdatesInfo
- type BinaryArgument
- func (a *BinaryArgument) BinarySize() int
- func (a *BinaryArgument) GetValueType() ArgumentValueType
- func (a *BinaryArgument) MarshalBinary() ([]byte, error)
- func (a *BinaryArgument) MarshalJSON() ([]byte, error)
- func (a *BinaryArgument) Serialize(s *serializer.Serializer) error
- func (a *BinaryArgument) UnmarshalBinary(data []byte) error
- func (a *BinaryArgument) UnmarshalJSON(value []byte) error
- type BinaryDataEntry
- func (e BinaryDataEntry) BinarySize() int
- func (e BinaryDataEntry) GetKey() string
- func (e BinaryDataEntry) GetValueType() DataValueType
- func (e BinaryDataEntry) MarshalBinary() ([]byte, error)
- func (e BinaryDataEntry) MarshalJSON() ([]byte, error)
- func (e BinaryDataEntry) MarshalValue() ([]byte, error)
- func (e *BinaryDataEntry) MarshaledValueSize() int
- func (e BinaryDataEntry) PayloadSize() int
- func (e *BinaryDataEntry) SetKey(key string)
- func (e BinaryDataEntry) ToProtobuf() *g.DataEntry
- func (e *BinaryDataEntry) UnmarshalBinary(data []byte) error
- func (e *BinaryDataEntry) UnmarshalJSON(value []byte) error
- func (e *BinaryDataEntry) UnmarshalValue(data []byte) error
- func (e BinaryDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
- func (e *BinaryDataEntry) WriteValueTo(w io.Writer) error
- type Block
- func (b *Block) Clone() *Block
- func (b *Block) Marshal(scheme Scheme) ([]byte, error)
- func (b *Block) MarshalBinary(scheme Scheme) ([]byte, error)
- func (b *Block) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (b *Block) Marshaller() Marshaller
- func (b *Block) SetTransactionsRoot(scheme Scheme) error
- func (b *Block) SetTransactionsRootIfPossible(scheme Scheme) error
- func (b *Block) Sign(scheme Scheme, secret crypto.SecretKey) error
- func (b *Block) ToProtobuf(scheme Scheme) (*g.Block, error)
- func (b *Block) ToProtobufWithHeight(currentScheme Scheme, height Height, vrf []byte, rewards Rewards) (*pb.BlockWithHeight, error)
- func (b *Block) UnmarshalBinary(data []byte, scheme Scheme) (err error)
- func (b *Block) UnmarshalFromProtobuf(data []byte) error
- func (b *Block) VerifySignature(scheme Scheme) (bool, error)
- func (b *Block) VerifyTransactionsRoot(scheme Scheme) (bool, error)
- func (b *Block) WriteTo(w io.Writer, scheme Scheme) (int64, error)
- func (b *Block) WriteToWithoutSignature(w io.Writer, scheme Scheme) (int64, error)
- type BlockHeader
- func (b *BlockHeader) BlockID() BlockID
- func (b *BlockHeader) GenerateBlockID(scheme Scheme) error
- func (b *BlockHeader) GetChallengedHeader() (ChallengedHeader, bool)
- func (b *BlockHeader) GetFinalizationVoting() (FinalizationVoting, bool)
- func (b *BlockHeader) GetStateHash() (crypto.Digest, bool)
- func (b *BlockHeader) HeaderToProtobuf(scheme Scheme) (*g.Block, error)
- func (b *BlockHeader) HeaderToProtobufHeader(scheme Scheme) (*g.Block_Header, error)
- func (b *BlockHeader) HeaderToProtobufWithHeight(scheme Scheme, height uint64, vrf []byte, rewards Rewards) (*pb.BlockWithHeight, error)
- func (b *BlockHeader) MarshalHeader(scheme Scheme) ([]byte, error)
- func (b *BlockHeader) MarshalHeaderToBinary() ([]byte, error)
- func (b *BlockHeader) MarshalHeaderToProtobuf(scheme Scheme) ([]byte, error)
- func (b *BlockHeader) MarshalHeaderToProtobufWithoutSignature(scheme Scheme) ([]byte, error)
- func (b *BlockHeader) UnmarshalHeaderFromBinary(data []byte, scheme Scheme) (err error)
- type BlockID
- func (id BlockID) Bytes() []byte
- func (id *BlockID) IsPayload()
- func (id BlockID) IsSignature() bool
- func (id BlockID) IsValid(version BlockVersion) bool
- func (id BlockID) Len() int
- func (id BlockID) MarshalJSON() ([]byte, error)
- func (id *BlockID) ReadFrom(r io.Reader) (int64, error)
- func (id BlockID) ShortString() string
- func (id BlockID) Signature() crypto.Signature
- func (id BlockID) String() string
- func (id *BlockID) UnmarshalJSON(value []byte) error
- func (id BlockID) WriteTo(w io.Writer) (int64, error)
- type BlockIDType
- type BlockIDsMessage
- func (m *BlockIDsMessage) IsMessage()
- func (m *BlockIDsMessage) MarshalBinary() ([]byte, error)
- func (m *BlockIDsMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *BlockIDsMessage) SetPayload(payload Payload) (Message, error)
- func (m *BlockIDsMessage) UnmarshalBinary(data []byte) error
- func (m *BlockIDsMessage) WriteTo(w io.Writer) (int64, error)
- type BlockIDsPayload
- type BlockInfo
- type BlockMarshaller
- type BlockMessage
- func (m *BlockMessage) IsMessage()
- func (m *BlockMessage) MarshalBinary() ([]byte, error)
- func (m *BlockMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *BlockMessage) SetPayload(payload Payload) (Message, error)
- func (m *BlockMessage) UnmarshalBinary(data []byte) error
- func (m *BlockMessage) WriteTo(w io.Writer) (int64, error)
- type BlockSnapshot
- func (bs *BlockSnapshot) AppendTxSnapshot(txSnapshot []AtomicSnapshot)
- func (bs *BlockSnapshot) AppendTxSnapshots(txSnapshots [][]AtomicSnapshot)
- func (bs BlockSnapshot) MarshalJSON() ([]byte, error)
- func (bs BlockSnapshot) MarshallBinary() ([]byte, error)
- func (bs BlockSnapshot) ToProtobuf() ([]*g.TransactionStateSnapshot, error)
- func (bs *BlockSnapshot) UnmarshalBinary(data []byte, scheme Scheme) error
- func (bs *BlockSnapshot) UnmarshalBinaryImport(data []byte, scheme Scheme) error
- func (bs *BlockSnapshot) UnmarshalJSON(bytes []byte) error
- type BlockSnapshotMessage
- func (m *BlockSnapshotMessage) IsMessage()
- func (m *BlockSnapshotMessage) MarshalBinary() ([]byte, error)
- func (m *BlockSnapshotMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *BlockSnapshotMessage) SetPayload(payload Payload) (Message, error)
- func (m *BlockSnapshotMessage) UnmarshalBinary(data []byte) error
- func (m *BlockSnapshotMessage) WriteTo(w io.Writer) (int64, error)
- type BlockUpdatesInfo
- type BlockVersion
- type BlockchainUpdatesPluginInfo
- func (e *BlockchainUpdatesPluginInfo) Close()
- func (e *BlockchainUpdatesPluginInfo) IsBlockchainUpdatesEnabled() bool
- func (e *BlockchainUpdatesPluginInfo) IsReady() bool
- func (e *BlockchainUpdatesPluginInfo) L2ContractAddress() WavesAddress
- func (e *BlockchainUpdatesPluginInfo) MakeExtensionReady()
- func (e *BlockchainUpdatesPluginInfo) WriteBUpdates(bUpdates BUpdatesInfo)
- type BooleanArgument
- func (a *BooleanArgument) BinarySize() int
- func (a *BooleanArgument) GetValueType() ArgumentValueType
- func (a *BooleanArgument) MarshalBinary() ([]byte, error)
- func (a *BooleanArgument) MarshalJSON() ([]byte, error)
- func (a *BooleanArgument) Serialize(s *serializer.Serializer) error
- func (a *BooleanArgument) UnmarshalBinary(data []byte) error
- func (a *BooleanArgument) UnmarshalJSON(value []byte) error
- type BooleanDataEntry
- func (e BooleanDataEntry) BinarySize() int
- func (e BooleanDataEntry) GetKey() string
- func (e BooleanDataEntry) GetValueType() DataValueType
- func (e BooleanDataEntry) MarshalBinary() ([]byte, error)
- func (e BooleanDataEntry) MarshalJSON() ([]byte, error)
- func (e BooleanDataEntry) MarshalValue() ([]byte, error)
- func (e *BooleanDataEntry) MarshaledValueSize() int
- func (e BooleanDataEntry) PayloadSize() int
- func (e *BooleanDataEntry) SetKey(key string)
- func (e BooleanDataEntry) ToProtobuf() *g.DataEntry
- func (e *BooleanDataEntry) UnmarshalBinary(data []byte) error
- func (e *BooleanDataEntry) UnmarshalJSON(value []byte) error
- func (e *BooleanDataEntry) UnmarshalValue(data []byte) error
- func (e BooleanDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
- func (e *BooleanDataEntry) WriteValueTo(w io.Writer) error
- type Burn
- func (b Burn) BinarySize() int
- func (b Burn) GetFee() uint64
- func (b Burn) GetFeeAsset() OptionalAsset
- func (b Burn) GetSender(scheme Scheme) (Address, error)
- func (b Burn) GetSenderPK() crypto.PublicKey
- func (b Burn) GetTimestamp() uint64
- func (b Burn) ToProtobuf() *g.Transaction_Burn
- func (b *Burn) UnmarshalBinary(data []byte) error
- func (b Burn) Valid() (bool, error)
- type BurnScriptAction
- type BurnWithProofs
- func (tx BurnWithProofs) BinarySize() int
- func (tx *BurnWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *BurnWithProofs) Clone() *BurnWithProofs
- func (tx *BurnWithProofs) GenerateID(scheme Scheme) error
- func (tx *BurnWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx BurnWithProofs) GetType() TransactionType
- func (tx BurnWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx BurnWithProofs) GetVersion() byte
- func (tx *BurnWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *BurnWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *BurnWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *BurnWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *BurnWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *BurnWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *BurnWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *BurnWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *BurnWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *BurnWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *BurnWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *BurnWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type BurnWithSig
- func (tx BurnWithSig) BinarySize() int
- func (tx *BurnWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *BurnWithSig) Clone() *BurnWithSig
- func (tx *BurnWithSig) GenerateID(scheme Scheme) error
- func (tx *BurnWithSig) GetID(scheme Scheme) ([]byte, error)
- func (tx BurnWithSig) GetType() TransactionType
- func (tx BurnWithSig) GetTypeInfo() TransactionTypeInfo
- func (tx BurnWithSig) GetVersion() byte
- func (tx *BurnWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *BurnWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *BurnWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *BurnWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *BurnWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *BurnWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *BurnWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *BurnWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *BurnWithSig) UnmarshalFromProtobuf(data []byte) error
- func (tx *BurnWithSig) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *BurnWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
- func (tx *BurnWithSig) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type ByVersion
- type ByteVector
- type Bytes
- type BytesPayload
- type CancelledLeaseSnapshot
- func (s CancelledLeaseSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s CancelledLeaseSnapshot) Apply(a SnapshotApplier) error
- func (s *CancelledLeaseSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_CancelledLease) error
- func (s CancelledLeaseSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_CancelledLease, error)
- type ChallengedHeader
- type ChecksumReader
- type CommitToGenerationWithProofs
- func (tx *CommitToGenerationWithProofs) BinarySize() int
- func (tx *CommitToGenerationWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *CommitToGenerationWithProofs) GenerateID(scheme Scheme) error
- func (tx CommitToGenerationWithProofs) GetFee() uint64
- func (tx CommitToGenerationWithProofs) GetFeeAsset() OptionalAsset
- func (tx *CommitToGenerationWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx CommitToGenerationWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx CommitToGenerationWithProofs) GetSenderPK() crypto.PublicKey
- func (tx CommitToGenerationWithProofs) GetTimestamp() uint64
- func (tx CommitToGenerationWithProofs) GetType() TransactionType
- func (tx CommitToGenerationWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx CommitToGenerationWithProofs) GetVersion() byte
- func (tx *CommitToGenerationWithProofs) MarshalBinary(Scheme) ([]byte, error)
- func (tx *CommitToGenerationWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *CommitToGenerationWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *CommitToGenerationWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *CommitToGenerationWithProofs) Sign(scheme Scheme, sk crypto.SecretKey) error
- func (tx *CommitToGenerationWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *CommitToGenerationWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *CommitToGenerationWithProofs) UnmarshalBinary([]byte, Scheme) error
- func (tx *CommitToGenerationWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *CommitToGenerationWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *CommitToGenerationWithProofs) Validate(_ TransactionValidationParams) (Transaction, error)
- func (tx *CommitToGenerationWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type CreateAlias
- func (ca CreateAlias) BinarySize() int
- func (ca CreateAlias) GetFee() uint64
- func (ca CreateAlias) GetFeeAsset() OptionalAsset
- func (ca CreateAlias) GetSender(scheme Scheme) (Address, error)
- func (ca CreateAlias) GetSenderPK() crypto.PublicKey
- func (ca CreateAlias) GetTimestamp() uint64
- func (ca CreateAlias) ToProtobuf() *g.Transaction_CreateAlias
- func (ca *CreateAlias) UnmarshalBinary(data []byte) error
- func (ca CreateAlias) Valid(scheme Scheme) (bool, error)
- type CreateAliasWithProofs
- func (tx CreateAliasWithProofs) BinarySize() int
- func (tx *CreateAliasWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *CreateAliasWithProofs) Clone() *CreateAliasWithProofs
- func (tx *CreateAliasWithProofs) GenerateID(scheme Scheme) error
- func (tx *CreateAliasWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx CreateAliasWithProofs) GetType() TransactionType
- func (tx CreateAliasWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx CreateAliasWithProofs) GetVersion() byte
- func (tx *CreateAliasWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *CreateAliasWithProofs) MarshalJSON() ([]byte, error)
- func (tx *CreateAliasWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *CreateAliasWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *CreateAliasWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *CreateAliasWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *CreateAliasWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *CreateAliasWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *CreateAliasWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *CreateAliasWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *CreateAliasWithProofs) UnmarshalJSON(data []byte) errordeprecated
- func (tx *CreateAliasWithProofs) UnmarshalJSONWithScheme(data []byte, scheme Scheme) error
- func (tx *CreateAliasWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *CreateAliasWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *CreateAliasWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type CreateAliasWithSig
- func (tx CreateAliasWithSig) BinarySize() int
- func (tx *CreateAliasWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *CreateAliasWithSig) Clone() *CreateAliasWithSig
- func (tx *CreateAliasWithSig) GenerateID(scheme Scheme) error
- func (tx *CreateAliasWithSig) GetID(scheme Scheme) ([]byte, error)
- func (tx CreateAliasWithSig) GetType() TransactionType
- func (tx CreateAliasWithSig) GetTypeInfo() TransactionTypeInfo
- func (tx CreateAliasWithSig) GetVersion() byte
- func (tx *CreateAliasWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *CreateAliasWithSig) MarshalJSON() ([]byte, error)
- func (tx *CreateAliasWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *CreateAliasWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *CreateAliasWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *CreateAliasWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *CreateAliasWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *CreateAliasWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *CreateAliasWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *CreateAliasWithSig) UnmarshalFromProtobuf(data []byte) error
- func (tx *CreateAliasWithSig) UnmarshalJSON(data []byte) errordeprecated
- func (tx *CreateAliasWithSig) UnmarshalJSONWithScheme(data []byte, scheme Scheme) error
- func (tx *CreateAliasWithSig) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *CreateAliasWithSig) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *CreateAliasWithSig) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type DataEntries
- func (e DataEntries) BinarySize() int
- func (e DataEntries) Len() int
- func (e DataEntries) Less(i int, j int) bool
- func (e DataEntries) PayloadSize() int
- func (e DataEntries) Swap(i int, j int)
- func (e *DataEntries) UnmarshalJSON(data []byte) error
- func (e DataEntries) Valid(forbidEmptyKey, utf16KeyLen bool) error
- type DataEntriesSnapshot
- func (s DataEntriesSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s DataEntriesSnapshot) Apply(a SnapshotApplier) error
- func (s *DataEntriesSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_AccountData) error
- func (s DataEntriesSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AccountData, error)
- type DataEntry
- type DataEntryScriptAction
- type DataValueType
- type DataWithProofs
- func (tx *DataWithProofs) AppendEntry(entry DataEntry) error
- func (tx DataWithProofs) BinarySize() int
- func (tx *DataWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *DataWithProofs) Clone() *DataWithProofs
- func (tx *DataWithProofs) GenerateID(scheme Scheme) error
- func (tx DataWithProofs) GetFee() uint64
- func (tx DataWithProofs) GetFeeAsset() OptionalAsset
- func (tx *DataWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx DataWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx DataWithProofs) GetSenderPK() crypto.PublicKey
- func (tx DataWithProofs) GetTimestamp() uint64
- func (tx DataWithProofs) GetType() TransactionType
- func (tx DataWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx DataWithProofs) GetVersion() byte
- func (tx *DataWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *DataWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *DataWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *DataWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *DataWithProofs) ProtoPayload() *g.DataTransactionData
- func (tx *DataWithProofs) ProtoPayloadSize() int
- func (tx *DataWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *DataWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *DataWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *DataWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *DataWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *DataWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *DataWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *DataWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type DeleteDataEntry
- func (e DeleteDataEntry) BinarySize() int
- func (e DeleteDataEntry) GetKey() string
- func (e DeleteDataEntry) GetValueType() DataValueType
- func (e DeleteDataEntry) MarshalBinary() ([]byte, error)
- func (e DeleteDataEntry) MarshalJSON() ([]byte, error)
- func (e DeleteDataEntry) MarshalValue() ([]byte, error)
- func (e *DeleteDataEntry) MarshaledValueSize() int
- func (e DeleteDataEntry) PayloadSize() int
- func (e *DeleteDataEntry) SetKey(key string)
- func (e DeleteDataEntry) ToProtobuf() *g.DataEntry
- func (e *DeleteDataEntry) UnmarshalBinary(data []byte) error
- func (e *DeleteDataEntry) UnmarshalJSON(value []byte) error
- func (e *DeleteDataEntry) UnmarshalValue(data []byte) error
- func (e DeleteDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
- func (e *DeleteDataEntry) WriteValueTo(w io.Writer) error
- type DigestWrapped
- type EmptyPayload
- type EndorseBlock
- type EndorseBlockMessage
- func (m *EndorseBlockMessage) IsMessage()
- func (m *EndorseBlockMessage) MarshalBinary() ([]byte, error)
- func (m *EndorseBlockMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *EndorseBlockMessage) SetPayload(payload Payload) (Message, error)
- func (m *EndorseBlockMessage) UnmarshalBinary(data []byte) error
- func (m *EndorseBlockMessage) WriteTo(w io.Writer) (int64, error)
- type EnrichedFullAssetInfo
- type EthereumAccessList
- type EthereumAccessListTx
- type EthereumAccessTuple
- type EthereumAddress
- func (ea EthereumAddress) Bytes() []byte
- func (ea EthereumAddress) Equal(address Address) bool
- func (ea EthereumAddress) Hash() EthereumHash
- func (ea EthereumAddress) Hex() string
- func (ea EthereumAddress) ID() AddressID
- func (ea EthereumAddress) MarshalJSON() ([]byte, error)
- func (ea EthereumAddress) String() string
- func (ea EthereumAddress) ToWavesAddress(scheme Scheme) (WavesAddress, error)
- func (ea *EthereumAddress) UnmarshalJSON(bytes []byte) error
- type EthereumDynamicFeeTx
- type EthereumHash
- type EthereumInvokeScriptTxKind
- type EthereumLegacyTx
- type EthereumOrderV4
- func (o *EthereumOrderV4) BodyMarshalBinary(scheme Scheme) ([]byte, error)
- func (o *EthereumOrderV4) EthereumSign(scheme Scheme, sk *EthereumPrivateKey) (err error)
- func (o *EthereumOrderV4) GenerateID(scheme Scheme) error
- func (o *EthereumOrderV4) GenerateSenderPK(scheme Scheme) error
- func (o *EthereumOrderV4) GetSender(_ Scheme) (Address, error)
- func (o *EthereumOrderV4) GetSenderPKBytes() []byte
- func (o *EthereumOrderV4) Sign(_ Scheme, _ crypto.SecretKey) error
- func (o *EthereumOrderV4) ToProtobuf(scheme Scheme) *g.Order
- func (o *EthereumOrderV4) ToProtobufSigned(scheme Scheme) *g.Order
- func (o *EthereumOrderV4) Valid() (bool, error)
- func (o *EthereumOrderV4) Verify(scheme Scheme) (bool, error)
- type EthereumPrivateKey
- type EthereumPublicKey
- func (epk *EthereumPublicKey) EthereumAddress() EthereumAddress
- func (epk *EthereumPublicKey) MarshalBinary() (data []byte, err error)
- func (epk *EthereumPublicKey) MarshalJSON() ([]byte, error)
- func (epk *EthereumPublicKey) SerializeCompressed() []byte
- func (epk *EthereumPublicKey) SerializeUncompressed() []byte
- func (epk *EthereumPublicKey) SerializeXYCoordinates() []byte
- func (epk *EthereumPublicKey) String() string
- func (epk *EthereumPublicKey) ToECDSA() *ecdsa.PublicKey
- func (epk *EthereumPublicKey) UnmarshalBinary(data []byte) error
- func (epk *EthereumPublicKey) UnmarshalJSON(bytes []byte) error
- type EthereumSignature
- func (es *EthereumSignature) AsVRS() (v byte, r, s *big.Int)
- func (es *EthereumSignature) Bytes() []byte
- func (es *EthereumSignature) MarshalBinary() (data []byte, err error)
- func (es *EthereumSignature) MarshalJSON() ([]byte, error)
- func (es *EthereumSignature) R() *big.Int
- func (es *EthereumSignature) RecoverEthereumPublicKey(digest []byte) (*EthereumPublicKey, error)
- func (es *EthereumSignature) S() *big.Int
- func (es *EthereumSignature) String() string
- func (es *EthereumSignature) UnmarshalBinary(data []byte) error
- func (es *EthereumSignature) UnmarshalJSON(bytes []byte) error
- func (es *EthereumSignature) V() byte
- type EthereumSigner
- type EthereumTransaction
- func (tx *EthereumTransaction) AccessList() EthereumAccessList
- func (tx *EthereumTransaction) BinarySize() int
- func (tx *EthereumTransaction) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *EthereumTransaction) ChainId() *big.Int
- func (tx *EthereumTransaction) Data() []byte
- func (tx *EthereumTransaction) DecodeCanonical(canonicalData []byte) error
- func (tx *EthereumTransaction) EncodeCanonical() ([]byte, error)
- func (tx *EthereumTransaction) EthereumTxType() EthereumTxType
- func (tx *EthereumTransaction) From() (EthereumAddress, error)
- func (tx *EthereumTransaction) FromPK() (*EthereumPublicKey, error)
- func (tx *EthereumTransaction) Gas() uint64
- func (tx *EthereumTransaction) GasFeeCap() *big.Int
- func (tx *EthereumTransaction) GasPrice() *big.Int
- func (tx *EthereumTransaction) GasTipCap() *big.Int
- func (tx *EthereumTransaction) GenerateID(_ Scheme) error
- func (tx *EthereumTransaction) GetFee() uint64
- func (tx *EthereumTransaction) GetFeeAsset() OptionalAsset
- func (tx *EthereumTransaction) GetID(scheme Scheme) ([]byte, error)
- func (tx *EthereumTransaction) GetSender(_ Scheme) (Address, error)
- func (tx *EthereumTransaction) GetTimestamp() uint64
- func (tx *EthereumTransaction) GetType() TransactionType
- func (tx *EthereumTransaction) GetTypeInfo() TransactionTypeInfo
- func (tx *EthereumTransaction) GetVersion() byte
- func (tx *EthereumTransaction) MarshalBinary(Scheme) ([]byte, error)
- func (tx *EthereumTransaction) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *EthereumTransaction) MarshalToProtobuf(_ Scheme) ([]byte, error)
- func (tx *EthereumTransaction) MerkleBytes(_ Scheme) ([]byte, error)
- func (tx *EthereumTransaction) Nonce() uint64
- func (tx *EthereumTransaction) Protected() bool
- func (tx *EthereumTransaction) RawSignatureValues() (v, r, s *big.Int)
- func (tx *EthereumTransaction) Sign(_ Scheme, _ crypto.SecretKey) error
- func (tx *EthereumTransaction) To() *EthereumAddress
- func (tx *EthereumTransaction) ToProtobuf(_ Scheme) (*g.Transaction, error)
- func (tx *EthereumTransaction) ToProtobufSigned(_ Scheme) (*g.SignedTransaction, error)
- func (tx *EthereumTransaction) UnmarshalBinary(_ []byte, _ Scheme) error
- func (tx *EthereumTransaction) UnmarshalFromProtobuf(_ []byte) error
- func (tx *EthereumTransaction) UnmarshalJSON(data []byte) error
- func (tx *EthereumTransaction) UnmarshalSignedFromProtobuf(bytes []byte) error
- func (tx *EthereumTransaction) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *EthereumTransaction) Value() *big.Int
- func (tx *EthereumTransaction) Verify() (*EthereumPublicKey, error)
- func (tx *EthereumTransaction) WavesAddressFrom(scheme byte) (WavesAddress, error)
- func (tx *EthereumTransaction) WavesAddressTo(scheme byte) (WavesAddress, error)
- type EthereumTransactionKind
- type EthereumTransactionKindResolver
- type EthereumTransactionKindType
- type EthereumTransferAssetsErc20TxKind
- type EthereumTransferWavesTxKind
- type EthereumTxData
- type EthereumTxType
- type Exchange
- type ExchangeWithProofs
- func (tx ExchangeWithProofs) BinarySize() int
- func (tx *ExchangeWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *ExchangeWithProofs) Clone() *ExchangeWithProofs
- func (tx *ExchangeWithProofs) GenerateID(scheme Scheme) error
- func (tx ExchangeWithProofs) GetAmount() uint64
- func (tx ExchangeWithProofs) GetBuyMatcherFee() uint64
- func (tx ExchangeWithProofs) GetBuyOrder() (Order, error)
- func (tx ExchangeWithProofs) GetFee() uint64
- func (tx ExchangeWithProofs) GetFeeAsset() OptionalAsset
- func (tx *ExchangeWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx ExchangeWithProofs) GetOrder1() Order
- func (tx ExchangeWithProofs) GetOrder2() Order
- func (tx ExchangeWithProofs) GetPrice() uint64
- func (tx ExchangeWithProofs) GetSellMatcherFee() uint64
- func (tx ExchangeWithProofs) GetSellOrder() (Order, error)
- func (tx ExchangeWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx ExchangeWithProofs) GetSenderPK() crypto.PublicKey
- func (tx ExchangeWithProofs) GetTimestamp() uint64
- func (tx ExchangeWithProofs) GetType() TransactionType
- func (tx ExchangeWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx ExchangeWithProofs) GetVersion() byte
- func (tx *ExchangeWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *ExchangeWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *ExchangeWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *ExchangeWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *ExchangeWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *ExchangeWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *ExchangeWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *ExchangeWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *ExchangeWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *ExchangeWithProofs) UnmarshalJSON(data []byte) (err error)
- func (tx *ExchangeWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *ExchangeWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *ExchangeWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type ExchangeWithSig
- func (tx ExchangeWithSig) BinarySize() int
- func (tx *ExchangeWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *ExchangeWithSig) BodySerialize(s *serializer.Serializer) error
- func (tx *ExchangeWithSig) Clone() *ExchangeWithSig
- func (tx *ExchangeWithSig) GenerateID(scheme Scheme) error
- func (tx ExchangeWithSig) GetAmount() uint64
- func (tx ExchangeWithSig) GetBuyMatcherFee() uint64
- func (tx ExchangeWithSig) GetBuyOrder() (Order, error)
- func (tx ExchangeWithSig) GetFee() uint64
- func (tx ExchangeWithSig) GetFeeAsset() OptionalAsset
- func (tx *ExchangeWithSig) GetID(scheme Scheme) ([]byte, error)
- func (tx ExchangeWithSig) GetOrder1() Order
- func (tx ExchangeWithSig) GetOrder2() Order
- func (tx ExchangeWithSig) GetPrice() uint64
- func (tx ExchangeWithSig) GetSellMatcherFee() uint64
- func (tx ExchangeWithSig) GetSellOrder() (Order, error)
- func (tx ExchangeWithSig) GetSender(scheme Scheme) (Address, error)
- func (tx ExchangeWithSig) GetSenderPK() crypto.PublicKey
- func (tx ExchangeWithSig) GetTimestamp() uint64
- func (tx ExchangeWithSig) GetType() TransactionType
- func (tx ExchangeWithSig) GetTypeInfo() TransactionTypeInfo
- func (tx ExchangeWithSig) GetVersion() byte
- func (tx *ExchangeWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *ExchangeWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *ExchangeWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *ExchangeWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *ExchangeWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *ExchangeWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *ExchangeWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *ExchangeWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *ExchangeWithSig) UnmarshalFromProtobuf(data []byte) error
- func (tx *ExchangeWithSig) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *ExchangeWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
- func (tx *ExchangeWithSig) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type FieldsHashesV1
- type FieldsHashesV2
- type FilledVolumeFeeSnapshot
- func (s FilledVolumeFeeSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s FilledVolumeFeeSnapshot) Apply(a SnapshotApplier) error
- func (s *FilledVolumeFeeSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_OrderFill) error
- func (s FilledVolumeFeeSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_OrderFill, error)
- type FinalizationVoting
- type FrontierSigner
- func (fs FrontierSigner) ChainID() *big.Int
- func (fs FrontierSigner) Equal(s2 EthereumSigner) bool
- func (fs FrontierSigner) Hash(tx *EthereumTransaction) EthereumHash
- func (fs FrontierSigner) Sender(tx *EthereumTransaction) (EthereumAddress, error)
- func (fs FrontierSigner) SenderPK(tx *EthereumTransaction) (*EthereumPublicKey, error)
- func (fs FrontierSigner) SignatureValues(tx *EthereumTransaction, sig []byte) (r, s, v *big.Int, err error)
- type FullAssetInfo
- type FullScriptTransfer
- type FullWavesBalance
- type FunctionCall
- func (c FunctionCall) Arguments() Arguments
- func (c *FunctionCall) BinarySize() int
- func (c FunctionCall) Default() bool
- func (c FunctionCall) MarshalBinary() ([]byte, error)
- func (c FunctionCall) MarshalJSON() ([]byte, error)
- func (c FunctionCall) Name() string
- func (c FunctionCall) Serialize(s *serializer.Serializer) error
- func (c *FunctionCall) UnmarshalBinary(data []byte) error
- func (c *FunctionCall) UnmarshalJSON(value []byte) error
- func (c FunctionCall) Valid() error
- type GenerationCommitmentSnapshot
- func (s *GenerationCommitmentSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s GenerationCommitmentSnapshot) Apply(a SnapshotApplier) error
- func (s *GenerationCommitmentSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_GenerationCommitment) error
- func (s GenerationCommitmentSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_GenerationCommitment, error)
- type Genesis
- func (tx Genesis) BinarySize() int
- func (tx *Genesis) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *Genesis) GenerateID(scheme Scheme) error
- func (tx *Genesis) GenerateSig(scheme Scheme) error
- func (tx *Genesis) GenerateSigID(scheme Scheme) error
- func (tx Genesis) GetFee() uint64
- func (tx Genesis) GetFeeAsset() OptionalAsset
- func (tx *Genesis) GetID(scheme Scheme) ([]byte, error)
- func (tx Genesis) GetSender(scheme Scheme) (Address, error)
- func (tx Genesis) GetSenderPK() crypto.PublicKey
- func (tx Genesis) GetTimestamp() uint64
- func (tx Genesis) GetType() TransactionType
- func (tx Genesis) GetTypeInfo() TransactionTypeInfo
- func (tx Genesis) GetVersion() byte
- func (tx *Genesis) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *Genesis) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *Genesis) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx Genesis) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *Genesis) Sign(scheme Scheme, _ crypto.SecretKey) error
- func (tx *Genesis) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *Genesis) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *Genesis) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *Genesis) UnmarshalFromProtobuf(data []byte) error
- func (tx *Genesis) UnmarshalJSON(data []byte) error
- func (tx *Genesis) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *Genesis) Validate(params TransactionValidationParams) (Transaction, error)
- type GetBlockIDsMessage
- func (m *GetBlockIDsMessage) IsMessage()
- func (m *GetBlockIDsMessage) MarshalBinary() ([]byte, error)
- func (m *GetBlockIDsMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *GetBlockIDsMessage) SetPayload(payload Payload) (Message, error)
- func (m *GetBlockIDsMessage) UnmarshalBinary(data []byte) error
- func (m *GetBlockIDsMessage) WriteTo(w io.Writer) (int64, error)
- type GetBlockMessage
- func (m *GetBlockMessage) IsMessage()
- func (m *GetBlockMessage) MarshalBinary() ([]byte, error)
- func (m *GetBlockMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *GetBlockMessage) SetPayload(payload Payload) (Message, error)
- func (m *GetBlockMessage) UnmarshalBinary(data []byte) error
- func (m *GetBlockMessage) WriteTo(w io.Writer) (int64, error)
- type GetBlockSnapshotMessage
- func (m *GetBlockSnapshotMessage) IsMessage()
- func (m *GetBlockSnapshotMessage) MarshalBinary() ([]byte, error)
- func (m *GetBlockSnapshotMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *GetBlockSnapshotMessage) SetPayload(payload Payload) (Message, error)
- func (m *GetBlockSnapshotMessage) UnmarshalBinary(data []byte) error
- func (m *GetBlockSnapshotMessage) WriteTo(w io.Writer) (int64, error)
- type GetPeersMessage
- func (m *GetPeersMessage) IsMessage()
- func (m *GetPeersMessage) MarshalBinary() ([]byte, error)
- func (m *GetPeersMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *GetPeersMessage) SetPayload(Payload) (Message, error)
- func (m *GetPeersMessage) UnmarshalBinary(b []byte) error
- func (m *GetPeersMessage) WriteTo(w io.Writer) (int64, error)
- type GetSignaturesMessage
- func (m *GetSignaturesMessage) IsMessage()
- func (m *GetSignaturesMessage) MarshalBinary() ([]byte, error)
- func (m *GetSignaturesMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *GetSignaturesMessage) SetPayload(payload Payload) (Message, error)
- func (m *GetSignaturesMessage) UnmarshalBinary(data []byte) error
- func (m *GetSignaturesMessage) WriteTo(w io.Writer) (int64, error)
- type Handshake
- type HandshakeTCPAddr
- type Header
- func (h *Header) Copy(data []byte) (int, error)
- func (h *Header) HeaderLength() uint32
- func (h *Header) MarshalBinary() ([]byte, error)
- func (h *Header) PayloadLength() uint32
- func (h *Header) ReadFrom(r io.Reader) (int64, error)
- func (h *Header) UnmarshalBinary(data []byte) error
- func (h *Header) Validate(contentID PeerMessageID) error
- func (h *Header) WriteTo(w io.Writer) (int64, error)
- type Height
- type HexBytes
- type HomesteadSigner
- func (hs HomesteadSigner) ChainID() *big.Int
- func (hs HomesteadSigner) Equal(s2 EthereumSigner) bool
- func (hs HomesteadSigner) Sender(tx *EthereumTransaction) (EthereumAddress, error)
- func (hs HomesteadSigner) SenderPK(tx *EthereumTransaction) (*EthereumPublicKey, error)
- func (hs HomesteadSigner) SignatureValues(tx *EthereumTransaction, sig []byte) (r, s, v *big.Int, err error)
- type InfoMsg
- type IntegerArgument
- func (a *IntegerArgument) BinarySize() int
- func (a *IntegerArgument) GetValueType() ArgumentValueType
- func (a *IntegerArgument) MarshalBinary() ([]byte, error)
- func (a *IntegerArgument) MarshalJSON() ([]byte, error)
- func (a *IntegerArgument) Serialize(s *serializer.Serializer) error
- func (a *IntegerArgument) UnmarshalBinary(data []byte) error
- func (a *IntegerArgument) UnmarshalJSON(value []byte) error
- type IntegerDataEntry
- func (e IntegerDataEntry) BinarySize() int
- func (e IntegerDataEntry) GetKey() string
- func (e IntegerDataEntry) GetValueType() DataValueType
- func (e IntegerDataEntry) MarshalBinary() ([]byte, error)
- func (e IntegerDataEntry) MarshalJSON() ([]byte, error)
- func (e IntegerDataEntry) MarshalValue() ([]byte, error)
- func (e *IntegerDataEntry) MarshaledValueSize() int
- func (e IntegerDataEntry) PayloadSize() int
- func (e *IntegerDataEntry) SetKey(key string)
- func (e IntegerDataEntry) ToProtobuf() *g.DataEntry
- func (e *IntegerDataEntry) UnmarshalBinary(data []byte) error
- func (e *IntegerDataEntry) UnmarshalJSON(value []byte) error
- func (e *IntegerDataEntry) UnmarshalValue(data []byte) error
- func (e IntegerDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
- func (e *IntegerDataEntry) WriteValueTo(w io.Writer) error
- type InvokeExpressionTransactionWithProofs
- func (tx *InvokeExpressionTransactionWithProofs) BinarySize() int
- func (tx *InvokeExpressionTransactionWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *InvokeExpressionTransactionWithProofs) GenerateID(scheme Scheme) error
- func (tx InvokeExpressionTransactionWithProofs) GetFee() uint64
- func (tx InvokeExpressionTransactionWithProofs) GetFeeAsset() OptionalAsset
- func (tx *InvokeExpressionTransactionWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx InvokeExpressionTransactionWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx InvokeExpressionTransactionWithProofs) GetSenderPK() crypto.PublicKey
- func (tx InvokeExpressionTransactionWithProofs) GetTimestamp() uint64
- func (tx InvokeExpressionTransactionWithProofs) GetType() TransactionType
- func (tx InvokeExpressionTransactionWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx InvokeExpressionTransactionWithProofs) GetVersion() byte
- func (tx *InvokeExpressionTransactionWithProofs) MarshalBinary(Scheme) ([]byte, error)
- func (tx *InvokeExpressionTransactionWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *InvokeExpressionTransactionWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *InvokeExpressionTransactionWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *InvokeExpressionTransactionWithProofs) Sign(scheme Scheme, sk crypto.SecretKey) error
- func (tx *InvokeExpressionTransactionWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *InvokeExpressionTransactionWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *InvokeExpressionTransactionWithProofs) UnmarshalBinary([]byte, Scheme) error
- func (tx *InvokeExpressionTransactionWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *InvokeExpressionTransactionWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *InvokeExpressionTransactionWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *InvokeExpressionTransactionWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type InvokeScriptWithProofs
- func (tx *InvokeScriptWithProofs) BinarySize() int
- func (tx *InvokeScriptWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *InvokeScriptWithProofs) Clone() *InvokeScriptWithProofs
- func (tx *InvokeScriptWithProofs) GenerateID(scheme Scheme) error
- func (tx InvokeScriptWithProofs) GetFee() uint64
- func (tx InvokeScriptWithProofs) GetFeeAsset() OptionalAsset
- func (tx *InvokeScriptWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx InvokeScriptWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx InvokeScriptWithProofs) GetSenderPK() crypto.PublicKey
- func (tx InvokeScriptWithProofs) GetTimestamp() uint64
- func (tx InvokeScriptWithProofs) GetType() TransactionType
- func (tx InvokeScriptWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx InvokeScriptWithProofs) GetVersion() byte
- func (tx *InvokeScriptWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *InvokeScriptWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *InvokeScriptWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *InvokeScriptWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *InvokeScriptWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *InvokeScriptWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *InvokeScriptWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *InvokeScriptWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *InvokeScriptWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *InvokeScriptWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *InvokeScriptWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *InvokeScriptWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type IpPort
- type Issue
- func (i Issue) BinarySize() int
- func (i Issue) GetFee() uint64
- func (i Issue) GetFeeAsset() OptionalAsset
- func (i Issue) GetSender(scheme Scheme) (Address, error)
- func (i Issue) GetSenderPK() crypto.PublicKey
- func (i Issue) GetTimestamp() uint64
- func (i *Issue) ToProtobuf() *g.Transaction_Issue
- func (i *Issue) UnmarshalBinary(data []byte) error
- func (i Issue) Valid() (bool, error)
- type IssueScriptAction
- type IssueWithProofs
- func (tx IssueWithProofs) BinarySize() int
- func (tx *IssueWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *IssueWithProofs) Clone() *IssueWithProofs
- func (tx *IssueWithProofs) GenerateID(scheme Scheme) error
- func (tx *IssueWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx IssueWithProofs) GetType() TransactionType
- func (tx IssueWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx IssueWithProofs) GetVersion() byte
- func (tx *IssueWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *IssueWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *IssueWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *IssueWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *IssueWithProofs) NonEmptyScript() bool
- func (tx *IssueWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *IssueWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *IssueWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *IssueWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *IssueWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *IssueWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *IssueWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *IssueWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type IssueWithSig
- func (tx IssueWithSig) BinarySize() int
- func (tx *IssueWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *IssueWithSig) Clone() *IssueWithSig
- func (tx *IssueWithSig) GenerateID(scheme Scheme) error
- func (tx *IssueWithSig) GetID(scheme Scheme) ([]byte, error)
- func (tx IssueWithSig) GetType() TransactionType
- func (tx IssueWithSig) GetTypeInfo() TransactionTypeInfo
- func (tx IssueWithSig) GetVersion() byte
- func (tx *IssueWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *IssueWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *IssueWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *IssueWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *IssueWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *IssueWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *IssueWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *IssueWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *IssueWithSig) UnmarshalFromProtobuf(data []byte) error
- func (tx *IssueWithSig) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *IssueWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
- func (tx *IssueWithSig) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type KeyPair
- type L2ContractDataEntries
- type Lease
- func (l Lease) BinarySize() int
- func (l Lease) GetFee() uint64
- func (l Lease) GetFeeAsset() OptionalAsset
- func (l Lease) GetSender(scheme Scheme) (Address, error)
- func (l Lease) GetSenderPK() crypto.PublicKey
- func (l Lease) GetTimestamp() uint64
- func (l Lease) ToProtobuf() (*g.Transaction_Lease, error)
- func (l *Lease) UnmarshalBinary(data []byte) error
- func (l Lease) Valid(scheme Scheme) (bool, error)
- type LeaseBalanceSnapshot
- func (s LeaseBalanceSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s LeaseBalanceSnapshot) Apply(a SnapshotApplier) error
- func (s *LeaseBalanceSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_LeaseBalance) error
- func (s *LeaseBalanceSnapshot) LeaseInAsInt64() int64
- func (s *LeaseBalanceSnapshot) LeaseOutAsInt64() int64
- func (s LeaseBalanceSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_LeaseBalance, error)
- type LeaseCancel
- func (lc LeaseCancel) BinarySize() int
- func (lc LeaseCancel) GetFee() uint64
- func (lc LeaseCancel) GetFeeAsset() OptionalAsset
- func (lc LeaseCancel) GetSender(scheme Scheme) (Address, error)
- func (lc LeaseCancel) GetSenderPK() crypto.PublicKey
- func (lc LeaseCancel) GetTimestamp() uint64
- func (lc LeaseCancel) ToProtobuf() *g.Transaction_LeaseCancel
- func (lc *LeaseCancel) UnmarshalBinary(data []byte) error
- func (lc LeaseCancel) Valid() (bool, error)
- type LeaseCancelScriptAction
- type LeaseCancelWithProofs
- func (tx LeaseCancelWithProofs) BinarySize() int
- func (tx *LeaseCancelWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *LeaseCancelWithProofs) Clone() *LeaseCancelWithProofs
- func (tx *LeaseCancelWithProofs) GenerateID(scheme Scheme) error
- func (tx *LeaseCancelWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx LeaseCancelWithProofs) GetType() TransactionType
- func (tx LeaseCancelWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx LeaseCancelWithProofs) GetVersion() byte
- func (tx *LeaseCancelWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *LeaseCancelWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *LeaseCancelWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *LeaseCancelWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *LeaseCancelWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *LeaseCancelWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *LeaseCancelWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *LeaseCancelWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *LeaseCancelWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *LeaseCancelWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *LeaseCancelWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *LeaseCancelWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type LeaseCancelWithSig
- func (tx LeaseCancelWithSig) BinarySize() int
- func (tx *LeaseCancelWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *LeaseCancelWithSig) Clone() *LeaseCancelWithSig
- func (tx *LeaseCancelWithSig) GenerateID(scheme Scheme) error
- func (tx *LeaseCancelWithSig) GetID(scheme Scheme) ([]byte, error)
- func (tx LeaseCancelWithSig) GetType() TransactionType
- func (tx LeaseCancelWithSig) GetTypeInfo() TransactionTypeInfo
- func (tx LeaseCancelWithSig) GetVersion() byte
- func (tx *LeaseCancelWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *LeaseCancelWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *LeaseCancelWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *LeaseCancelWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *LeaseCancelWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *LeaseCancelWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *LeaseCancelWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *LeaseCancelWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *LeaseCancelWithSig) UnmarshalFromProtobuf(data []byte) error
- func (tx *LeaseCancelWithSig) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *LeaseCancelWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
- func (tx *LeaseCancelWithSig) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type LeaseInfo
- type LeaseScriptAction
- type LeaseWithProofs
- func (tx LeaseWithProofs) BinarySize() int
- func (tx *LeaseWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *LeaseWithProofs) Clone() *LeaseWithProofs
- func (tx *LeaseWithProofs) GenerateID(scheme Scheme) error
- func (tx *LeaseWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx LeaseWithProofs) GetType() TransactionType
- func (tx LeaseWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx LeaseWithProofs) GetVersion() byte
- func (tx *LeaseWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *LeaseWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *LeaseWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *LeaseWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *LeaseWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *LeaseWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *LeaseWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *LeaseWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *LeaseWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *LeaseWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *LeaseWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *LeaseWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type LeaseWithSig
- func (tx LeaseWithSig) BinarySize() int
- func (tx *LeaseWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *LeaseWithSig) Clone() *LeaseWithSig
- func (tx *LeaseWithSig) GenerateID(scheme Scheme) error
- func (tx *LeaseWithSig) GetID(scheme Scheme) ([]byte, error)
- func (tx LeaseWithSig) GetType() TransactionType
- func (tx LeaseWithSig) GetTypeInfo() TransactionTypeInfo
- func (tx LeaseWithSig) GetVersion() byte
- func (tx *LeaseWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *LeaseWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *LeaseWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *LeaseWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *LeaseWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *LeaseWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *LeaseWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *LeaseWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *LeaseWithSig) UnmarshalFromProtobuf(data []byte) error
- func (tx *LeaseWithSig) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *LeaseWithSig) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *LeaseWithSig) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type LegacyStateHashFeatureActivated
- type LegacyStateHashOption
- type LegacyStateHashParams
- type ListArgument
- func (a *ListArgument) BinarySize() int
- func (a *ListArgument) GetValueType() ArgumentValueType
- func (a *ListArgument) MarshalBinary() ([]byte, error)
- func (a *ListArgument) MarshalJSON() ([]byte, error)
- func (a *ListArgument) Serialize(s *serializer.Serializer) error
- func (a *ListArgument) UnmarshalBinary(data []byte) error
- func (a *ListArgument) UnmarshalJSON(value []byte) error
- type Marshaller
- type MassTransferEntry
- type MassTransferWithProofs
- func (tx MassTransferWithProofs) BinarySize() int
- func (tx *MassTransferWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *MassTransferWithProofs) Clone() *MassTransferWithProofs
- func (tx *MassTransferWithProofs) GenerateID(scheme Scheme) error
- func (tx MassTransferWithProofs) GetFee() uint64
- func (tx MassTransferWithProofs) GetFeeAsset() OptionalAsset
- func (tx *MassTransferWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx MassTransferWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx MassTransferWithProofs) GetSenderPK() crypto.PublicKey
- func (tx MassTransferWithProofs) GetTimestamp() uint64
- func (tx MassTransferWithProofs) GetType() TransactionType
- func (tx MassTransferWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx MassTransferWithProofs) GetVersion() byte
- func (tx MassTransferWithProofs) HasRecipient(rcp Recipient) bool
- func (tx *MassTransferWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *MassTransferWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *MassTransferWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *MassTransferWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *MassTransferWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *MassTransferWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *MassTransferWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *MassTransferWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *MassTransferWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *MassTransferWithProofs) UnmarshalJSON(data []byte) error
- func (tx *MassTransferWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *MassTransferWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *MassTransferWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type Message
- func CreateMessageByContentID(contentID PeerMessageID) (Message, error)
- func MessageByBlock(block *Block, scheme Scheme) (Message, error)
- func ReadMessageFrom(r io.Reader) (Message, int64, error)
- func ReadMessageFromWith(r io.Reader, pp PayloadProducer, mp MessageProducer) (Message, int64, error)
- func UnmarshalMessage(b []byte) (Message, error)
- func UnmarshalMessageWith(b []byte, mp MessageProducer) (Message, error)
- type MessageProducer
- type MicroBlock
- func (a *MicroBlock) GetPartialFinalization() (FinalizationVoting, bool)
- func (a *MicroBlock) GetStateHash() (crypto.Digest, bool)
- func (a *MicroBlock) MarshalBinary(scheme Scheme) ([]byte, error)
- func (a *MicroBlock) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (a *MicroBlock) Sign(scheme Scheme, secret crypto.SecretKey) error
- func (a *MicroBlock) ToProtobuf(scheme Scheme) (*g.SignedMicroBlock, error)
- func (a *MicroBlock) UnmarshalBinary(b []byte, scheme Scheme) error
- func (a *MicroBlock) UnmarshalFromProtobuf(b []byte) error
- func (a *MicroBlock) VerifySignature(scheme Scheme) (bool, error)
- func (a *MicroBlock) WriteTo(scheme Scheme, w io.Writer) (int64, error)
- func (a *MicroBlock) WriteWithoutSignature(scheme Scheme, w io.Writer) (int64, error)
- type MicroBlockInv
- func (a *MicroBlockInv) MarshalBinary() ([]byte, error)
- func (a *MicroBlockInv) Sign(key crypto.SecretKey, schema Scheme) error
- func (a *MicroBlockInv) UnmarshalBinary(data []byte) error
- func (a *MicroBlockInv) Verify(schema Scheme) (bool, error)
- func (a *MicroBlockInv) WriteTo(w io.Writer) (int64, error)
- type MicroBlockInvMessage
- func (m *MicroBlockInvMessage) IsMessage()
- func (m *MicroBlockInvMessage) MarshalBinary() ([]byte, error)
- func (m *MicroBlockInvMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *MicroBlockInvMessage) SetPayload(payload Payload) (Message, error)
- func (m *MicroBlockInvMessage) UnmarshalBinary(data []byte) error
- func (m *MicroBlockInvMessage) WriteTo(w io.Writer) (int64, error)
- type MicroBlockMessage
- func (m *MicroBlockMessage) IsMessage()
- func (m *MicroBlockMessage) MarshalBinary() ([]byte, error)
- func (m *MicroBlockMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *MicroBlockMessage) SetPayload(payload Payload) (Message, error)
- func (m *MicroBlockMessage) UnmarshalBinary(data []byte) error
- func (m *MicroBlockMessage) WriteTo(w io.Writer) (int64, error)
- type MicroBlockRequestMessage
- func (m *MicroBlockRequestMessage) IsMessage()
- func (m *MicroBlockRequestMessage) MarshalBinary() ([]byte, error)
- func (m *MicroBlockRequestMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *MicroBlockRequestMessage) SetPayload(payload Payload) (Message, error)
- func (m *MicroBlockRequestMessage) UnmarshalBinary(data []byte) error
- func (m *MicroBlockRequestMessage) WriteTo(w io.Writer) (int64, error)
- type MicroBlockSnapshotMessage
- func (m *MicroBlockSnapshotMessage) IsMessage()
- func (m *MicroBlockSnapshotMessage) MarshalBinary() ([]byte, error)
- func (m *MicroBlockSnapshotMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *MicroBlockSnapshotMessage) SetPayload(payload Payload) (Message, error)
- func (m *MicroBlockSnapshotMessage) UnmarshalBinary(data []byte) error
- func (m *MicroBlockSnapshotMessage) WriteTo(w io.Writer) (int64, error)
- type MicroBlockSnapshotRequestMessage
- func (m *MicroBlockSnapshotRequestMessage) IsMessage()
- func (m *MicroBlockSnapshotRequestMessage) MarshalBinary() ([]byte, error)
- func (m *MicroBlockSnapshotRequestMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *MicroBlockSnapshotRequestMessage) SetPayload(payload Payload) (Message, error)
- func (m *MicroBlockSnapshotRequestMessage) UnmarshalBinary(data []byte) error
- func (m *MicroBlockSnapshotRequestMessage) WriteTo(w io.Writer) (int64, error)
- type MicroblockTotalSig
- type MiningLimits
- type NewAssetSnapshot
- func (s NewAssetSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s NewAssetSnapshot) Apply(a SnapshotApplier) error
- func (s *NewAssetSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_NewAsset) error
- func (s NewAssetSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_NewAsset, error)
- type NewLeaseSnapshot
- func (s NewLeaseSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s NewLeaseSnapshot) Apply(a SnapshotApplier) error
- func (s *NewLeaseSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_NewLease) error
- func (s NewLeaseSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_NewLease, error)
- type NonNullableSlice
- type NxtConsensus
- type OptionalAsset
- func NewOptionalAsset(present bool, id crypto.Digest) OptionalAsset
- func NewOptionalAssetFromBytes(b []byte) (*OptionalAsset, error)
- func NewOptionalAssetFromDigest(d crypto.Digest) *OptionalAsset
- func NewOptionalAssetFromString(s string) (*OptionalAsset, error)
- func NewOptionalAssetWaves() OptionalAsset
- func (a OptionalAsset) BinarySize() int
- func (a OptionalAsset) Eq(b OptionalAsset) bool
- func (a OptionalAsset) MarshalBinary() ([]byte, error)
- func (a OptionalAsset) MarshalJSON() ([]byte, error)
- func (a OptionalAsset) Serialize(s *serializer.Serializer) error
- func (a OptionalAsset) String() string
- func (a *OptionalAsset) ToDigest() *crypto.Digest
- func (a *OptionalAsset) ToID() []byte
- func (a *OptionalAsset) UnmarshalBinary(data []byte) error
- func (a *OptionalAsset) UnmarshalJSON(value []byte) error
- func (a OptionalAsset) WriteTo(w io.Writer) (int64, error)
- type Order
- type OrderBody
- func (o OrderBody) BinarySize() int
- func (o OrderBody) GetSender(scheme Scheme) (Address, error)
- func (o OrderBody) GetSenderPKBytes() []byte
- func (o *OrderBody) Serialize(s *serializer.Serializer) error
- func (o *OrderBody) SpendAsset() OptionalAsset
- func (o OrderBody) ToProtobuf(scheme Scheme) *g.Order
- func (o *OrderBody) UnmarshalBinary(data []byte) error
- func (o OrderBody) Valid() (bool, error)
- type OrderPriceMode
- func (m *OrderPriceMode) FromProtobuf(gm g.Order_PriceMode) error
- func (m OrderPriceMode) MarshalJSON() ([]byte, error)
- func (m OrderPriceMode) String() string
- func (m OrderPriceMode) ToProtobuf() g.Order_PriceMode
- func (m *OrderPriceMode) UnmarshalJSON(val []byte) error
- func (m OrderPriceMode) Valid(orderVersion OrderVersion) (bool, error)
- type OrderType
- type OrderV1
- func (o OrderV1) BinarySize() int
- func (o OrderV1) BodyMarshalBinary() ([]byte, error)
- func (o OrderV1) BodySerialize(s *serializer.Serializer) error
- func (o *OrderV1) GenerateID(_ Scheme) error
- func (o OrderV1) GetAmount() uint64
- func (o *OrderV1) GetAssetPair() AssetPair
- func (o *OrderV1) GetAttachment() Attachment
- func (o *OrderV1) GetExpiration() uint64
- func (o OrderV1) GetID() ([]byte, error)
- func (o OrderV1) GetMatcherFee() uint64
- func (o OrderV1) GetMatcherFeeAsset() OptionalAsset
- func (o *OrderV1) GetMatcherPK() crypto.PublicKey
- func (o *OrderV1) GetOrderType() OrderType
- func (o *OrderV1) GetPrice() uint64
- func (o *OrderV1) GetPriceMode() OrderPriceMode
- func (o OrderV1) GetProofs() (*ProofsV1, error)
- func (o OrderV1) GetTimestamp() uint64
- func (o *OrderV1) GetVersion() OrderVersion
- func (o *OrderV1) MarshalBinary() ([]byte, error)
- func (o *OrderV1) Serialize(s *serializer.Serializer) error
- func (o *OrderV1) Sign(_ Scheme, secretKey crypto.SecretKey) error
- func (o OrderV1) ToProtobuf(scheme Scheme) *g.Order
- func (o OrderV1) ToProtobufSigned(scheme Scheme) *g.Order
- func (o *OrderV1) UnmarshalBinary(data []byte) error
- func (o *OrderV1) Verify(_ Scheme) (bool, error)
- type OrderV2
- func (o OrderV2) BinarySize() int
- func (o OrderV2) BodyMarshalBinary() ([]byte, error)
- func (o *OrderV2) GenerateID(_ Scheme) error
- func (o OrderV2) GetAmount() uint64
- func (o *OrderV2) GetAssetPair() AssetPair
- func (o *OrderV2) GetAttachment() Attachment
- func (o *OrderV2) GetExpiration() uint64
- func (o OrderV2) GetID() ([]byte, error)
- func (o OrderV2) GetMatcherFee() uint64
- func (o OrderV2) GetMatcherFeeAsset() OptionalAsset
- func (o *OrderV2) GetMatcherPK() crypto.PublicKey
- func (o *OrderV2) GetOrderType() OrderType
- func (o *OrderV2) GetPrice() uint64
- func (o *OrderV2) GetPriceMode() OrderPriceMode
- func (o OrderV2) GetProofs() (*ProofsV1, error)
- func (o OrderV2) GetTimestamp() uint64
- func (o *OrderV2) GetVersion() OrderVersion
- func (o *OrderV2) MarshalBinary() ([]byte, error)
- func (o *OrderV2) Sign(_ Scheme, secretKey crypto.SecretKey) error
- func (o OrderV2) ToProtobuf(scheme Scheme) *g.Order
- func (o OrderV2) ToProtobufSigned(scheme Scheme) *g.Order
- func (o *OrderV2) UnmarshalBinary(data []byte) error
- func (o *OrderV2) Verify(_ Scheme) (bool, error)
- type OrderV3
- func (o OrderV3) BinarySize() int
- func (o *OrderV3) BodyMarshalBinary() ([]byte, error)
- func (o *OrderV3) GenerateID(_ Scheme) error
- func (o OrderV3) GetAmount() uint64
- func (o *OrderV3) GetAssetPair() AssetPair
- func (o *OrderV3) GetAttachment() Attachment
- func (o *OrderV3) GetExpiration() uint64
- func (o *OrderV3) GetID() ([]byte, error)
- func (o OrderV3) GetMatcherFee() uint64
- func (o OrderV3) GetMatcherFeeAsset() OptionalAsset
- func (o *OrderV3) GetMatcherPK() crypto.PublicKey
- func (o *OrderV3) GetOrderType() OrderType
- func (o *OrderV3) GetPrice() uint64
- func (o *OrderV3) GetPriceMode() OrderPriceMode
- func (o OrderV3) GetProofs() (*ProofsV1, error)
- func (o OrderV3) GetTimestamp() uint64
- func (o *OrderV3) GetVersion() OrderVersion
- func (o *OrderV3) MarshalBinary() ([]byte, error)
- func (o *OrderV3) Sign(_ Scheme, secretKey crypto.SecretKey) error
- func (o OrderV3) ToProtobuf(scheme Scheme) *g.Order
- func (o OrderV3) ToProtobufSigned(scheme Scheme) *g.Order
- func (o *OrderV3) UnmarshalBinary(data []byte) error
- func (o *OrderV3) Verify(_ Scheme) (bool, error)
- type OrderV4
- func (o OrderV4) BinarySize() int
- func (o *OrderV4) BodyMarshalBinary(scheme Scheme) ([]byte, error)
- func (o *OrderV4) GenerateID(scheme Scheme) error
- func (o OrderV4) GetAmount() uint64
- func (o *OrderV4) GetAssetPair() AssetPair
- func (o *OrderV4) GetAttachment() Attachment
- func (o *OrderV4) GetExpiration() uint64
- func (o *OrderV4) GetID() ([]byte, error)
- func (o OrderV4) GetMatcherFee() uint64
- func (o OrderV4) GetMatcherFeeAsset() OptionalAsset
- func (o *OrderV4) GetMatcherPK() crypto.PublicKey
- func (o *OrderV4) GetOrderType() OrderType
- func (o *OrderV4) GetPrice() uint64
- func (o *OrderV4) GetPriceMode() OrderPriceMode
- func (o OrderV4) GetProofs() (*ProofsV1, error)
- func (o OrderV4) GetTimestamp() uint64
- func (o *OrderV4) GetVersion() OrderVersion
- func (o *OrderV4) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (o OrderV4) ToProtobuf(scheme Scheme) *g.Order
- func (o OrderV4) ToProtobufSigned(scheme Scheme) *g.Order
- func (o *OrderV4) Valid() (bool, error)
- func (o *OrderV4) Verify(scheme Scheme) (bool, error)
- type OrderVersion
- type PBBlockMessage
- func (m *PBBlockMessage) IsMessage()
- func (m *PBBlockMessage) MarshalBinary() ([]byte, error)
- func (m *PBBlockMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *PBBlockMessage) SetPayload(payload Payload) (Message, error)
- func (m *PBBlockMessage) UnmarshalBinary(data []byte) error
- func (m *PBBlockMessage) WriteTo(w io.Writer) (int64, error)
- type PBMicroBlockMessage
- func (m *PBMicroBlockMessage) IsMessage()
- func (m *PBMicroBlockMessage) MarshalBinary() ([]byte, error)
- func (m *PBMicroBlockMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *PBMicroBlockMessage) SetPayload(payload Payload) (Message, error)
- func (m *PBMicroBlockMessage) UnmarshalBinary(data []byte) error
- func (m *PBMicroBlockMessage) WriteTo(w io.Writer) (int64, error)
- type PBTransactionMessage
- func (m *PBTransactionMessage) IsMessage()
- func (m *PBTransactionMessage) MarshalBinary() ([]byte, error)
- func (m *PBTransactionMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *PBTransactionMessage) SetPayload(payload Payload) (Message, error)
- func (m *PBTransactionMessage) UnmarshalBinary(data []byte) error
- func (m *PBTransactionMessage) WriteTo(w io.Writer) (int64, error)
- type Payload
- type PayloadProducer
- type Payment
- func (tx Payment) BinarySize() int
- func (tx *Payment) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *Payment) GenerateID(_ Scheme) error
- func (tx Payment) GetFee() uint64
- func (tx Payment) GetFeeAsset() OptionalAsset
- func (tx *Payment) GetID(scheme Scheme) ([]byte, error)
- func (tx Payment) GetSender(scheme Scheme) (Address, error)
- func (tx Payment) GetSenderPK() crypto.PublicKey
- func (tx Payment) GetTimestamp() uint64
- func (tx Payment) GetType() TransactionType
- func (tx Payment) GetTypeInfo() TransactionTypeInfo
- func (tx Payment) GetVersion() byte
- func (tx *Payment) MarshalBinary(Scheme) ([]byte, error)
- func (tx *Payment) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *Payment) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx Payment) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *Payment) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *Payment) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *Payment) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *Payment) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *Payment) UnmarshalFromProtobuf(data []byte) error
- func (tx *Payment) UnmarshalJSON(data []byte) error
- func (tx *Payment) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *Payment) Validate(_ TransactionValidationParams) (Transaction, error)
- func (tx *Payment) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type PeerInfo
- func (p *PeerInfo) Empty() bool
- func (p *PeerInfo) MarshalBinary() ([]byte, error)
- func (p PeerInfo) MarshalJSON() ([]byte, error)
- func (p *PeerInfo) ReadFrom(r io.Reader) (int64, error)
- func (p PeerInfo) String() string
- func (p *PeerInfo) UnmarshalBinary(data []byte) error
- func (p *PeerInfo) UnmarshalJSON(value []byte) error
- func (p PeerInfo) WriteTo(w io.Writer) (int64, error)
- type PeerInfos
- type PeerMessageID
- type PeerMessageIDs
- type PeersMessage
- func (m *PeersMessage) IsMessage()
- func (m *PeersMessage) MarshalBinary() ([]byte, error)
- func (m *PeersMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *PeersMessage) SetPayload(payload Payload) (Message, error)
- func (m *PeersMessage) UnmarshalBinary(data []byte) error
- func (m *PeersMessage) WriteTo(w io.Writer) (int64, error)
- type ProofsV1
- func (p *ProofsV1) BinarySize() int
- func (p ProofsV1) Bytes() [][]byte
- func (p *ProofsV1) ExtractSignature() (crypto.Signature, error)
- func (p *ProofsV1) IsSimpleSigned() bool
- func (p *ProofsV1) Len() int
- func (p *ProofsV1) MarshalBinary() ([]byte, error)
- func (p ProofsV1) MarshalJSON() ([]byte, error)
- func (p *ProofsV1) Serialize(s *serializer.Serializer) error
- func (p *ProofsV1) Sign(key crypto.SecretKey, data []byte) error
- func (p ProofsV1) String() string
- func (p *ProofsV1) UnmarshalBinary(data []byte) error
- func (p *ProofsV1) UnmarshalJSON(value []byte) error
- func (p *ProofsV1) Valid() error
- func (p *ProofsV1) Verify(key crypto.PublicKey, data []byte) (bool, error)
- type ProtobufConverter
- func (c *ProtobufConverter) Address(scheme byte, addr []byte) (WavesAddress, error)
- func (c *ProtobufConverter) Block(block *g.Block) (Block, error)
- func (c *ProtobufConverter) BlockHeader(block *g.Block) (BlockHeader, error)
- func (c *ProtobufConverter) BurnScriptActions(burns []*g.InvokeScriptResult_Burn) ([]*BurnScriptAction, error)
- func (c *ProtobufConverter) EndorseBlock(endorsement *g.EndorseBlock) (EndorseBlock, error)
- func (c *ProtobufConverter) Entry(entry *g.DataEntry) (DataEntry, error)
- func (c *ProtobufConverter) ErrorMessage(msg *g.InvokeScriptResult_ErrorMessage) (ScriptErrorMessage, error)
- func (c *ProtobufConverter) FinalizationVoting(finalizationVoting *g.FinalizationVoting) (FinalizationVoting, error)
- func (c *ProtobufConverter) IssueScriptActions(issues []*g.InvokeScriptResult_Issue) ([]*IssueScriptAction, error)
- func (c *ProtobufConverter) LeaseCancelScriptActions(cancels []*g.InvokeScriptResult_LeaseCancel) ([]*LeaseCancelScriptAction, error)
- func (c *ProtobufConverter) LeaseScriptActions(scheme byte, leases []*g.InvokeScriptResult_Lease) ([]*LeaseScriptAction, error)
- func (c *ProtobufConverter) MicroBlock(mb *g.SignedMicroBlock) (MicroBlock, error)
- func (c *ProtobufConverter) PartialBlockHeader(pbHeader *g.Block_Header) (BlockHeader, error)
- func (c *ProtobufConverter) Recipient(scheme byte, recipient *g.Recipient) (Recipient, error)
- func (c *ProtobufConverter) ReissueScriptActions(reissues []*g.InvokeScriptResult_Reissue) ([]*ReissueScriptAction, error)
- func (c *ProtobufConverter) SignedTransaction(stx *g.SignedTransaction) (Transaction, error)
- func (c *ProtobufConverter) SignedTransactions(txs []*g.SignedTransaction) ([]Transaction, error)
- func (c *ProtobufConverter) SponsorshipScriptActions(sponsorships []*g.InvokeScriptResult_SponsorFee) ([]*SponsorshipScriptAction, error)
- func (c *ProtobufConverter) Transaction(tx *g.Transaction) (Transaction, error)
- func (c *ProtobufConverter) TransferScriptActions(scheme byte, payments []*g.InvokeScriptResult_Payment) ([]*TransferScriptAction, error)
- type RLPDecoder
- type RLPEncoder
- type Recipient
- func (r Recipient) Address() *WavesAddress
- func (r Recipient) Alias() *Alias
- func (r *Recipient) BinarySize() int
- func (r Recipient) Eq(r2 Recipient) bool
- func (r Recipient) EqAddr(addr WavesAddress) (bool, error)
- func (r Recipient) EqAlias(alias Alias) (bool, error)
- func (r *Recipient) MarshalBinary() ([]byte, error)
- func (r Recipient) MarshalJSON() ([]byte, error)
- func (r *Recipient) Serialize(s *serializer.Serializer) error
- func (r *Recipient) String() string
- func (r Recipient) ToProtobuf() (*g.Recipient, error)
- func (r *Recipient) UnmarshalBinary(data []byte) error
- func (r *Recipient) UnmarshalJSON(value []byte) error
- func (r Recipient) Valid(scheme Scheme) (bool, error)
- func (r *Recipient) WriteTo(w io.Writer) (int64, error)
- type Reissue
- func (r Reissue) BinarySize() int
- func (r Reissue) GetFee() uint64
- func (r Reissue) GetFeeAsset() OptionalAsset
- func (r Reissue) GetSender(scheme Scheme) (Address, error)
- func (r Reissue) GetSenderPK() crypto.PublicKey
- func (r Reissue) GetTimestamp() uint64
- func (r Reissue) ToProtobuf() *g.Transaction_Reissue
- func (r *Reissue) UnmarshalBinary(data []byte) error
- func (r Reissue) Valid() (bool, error)
- type ReissueScriptAction
- type ReissueWithProofs
- func (tx ReissueWithProofs) BinarySize() int
- func (tx *ReissueWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *ReissueWithProofs) Clone() *ReissueWithProofs
- func (tx *ReissueWithProofs) GenerateID(scheme Scheme) error
- func (tx *ReissueWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx ReissueWithProofs) GetType() TransactionType
- func (tx ReissueWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx ReissueWithProofs) GetVersion() byte
- func (tx *ReissueWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *ReissueWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *ReissueWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *ReissueWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *ReissueWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *ReissueWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *ReissueWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *ReissueWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *ReissueWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *ReissueWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *ReissueWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *ReissueWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type ReissueWithSig
- func (tx ReissueWithSig) BinarySize() int
- func (tx *ReissueWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *ReissueWithSig) Clone() *ReissueWithSig
- func (tx *ReissueWithSig) GenerateID(scheme Scheme) error
- func (tx *ReissueWithSig) GetID(scheme Scheme) ([]byte, error)
- func (tx ReissueWithSig) GetType() TransactionType
- func (tx ReissueWithSig) GetTypeInfo() TransactionTypeInfo
- func (tx ReissueWithSig) GetVersion() byte
- func (tx *ReissueWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *ReissueWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *ReissueWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *ReissueWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *ReissueWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *ReissueWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *ReissueWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *ReissueWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *ReissueWithSig) UnmarshalFromProtobuf(data []byte) error
- func (tx *ReissueWithSig) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *ReissueWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
- func (tx *ReissueWithSig) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type Reward
- type RewardVotes
- type Rewards
- type Scheme
- type Score
- type ScoreMessage
- func (m *ScoreMessage) IsMessage()
- func (m *ScoreMessage) MarshalBinary() ([]byte, error)
- func (m *ScoreMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *ScoreMessage) SetPayload(payload Payload) (Message, error)
- func (m *ScoreMessage) UnmarshalBinary(data []byte) error
- func (m *ScoreMessage) WriteTo(w io.Writer) (int64, error)
- type Script
- type ScriptAction
- type ScriptActionGroupType
- type ScriptBasicInfo
- type ScriptErrorMessage
- type ScriptInfo
- type ScriptPayment
- type ScriptPayments
- type ScriptResult
- type SetAssetScriptWithProofs
- func (tx SetAssetScriptWithProofs) BinarySize() int
- func (tx *SetAssetScriptWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *SetAssetScriptWithProofs) Clone() *SetAssetScriptWithProofs
- func (tx *SetAssetScriptWithProofs) GenerateID(scheme Scheme) error
- func (tx SetAssetScriptWithProofs) GetFee() uint64
- func (tx SetAssetScriptWithProofs) GetFeeAsset() OptionalAsset
- func (tx *SetAssetScriptWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx SetAssetScriptWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx SetAssetScriptWithProofs) GetSenderPK() crypto.PublicKey
- func (tx SetAssetScriptWithProofs) GetTimestamp() uint64
- func (tx SetAssetScriptWithProofs) GetType() TransactionType
- func (tx SetAssetScriptWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx SetAssetScriptWithProofs) GetVersion() byte
- func (tx *SetAssetScriptWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *SetAssetScriptWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *SetAssetScriptWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *SetAssetScriptWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *SetAssetScriptWithProofs) NonEmptyScript() bool
- func (tx *SetAssetScriptWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *SetAssetScriptWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *SetAssetScriptWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *SetAssetScriptWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *SetAssetScriptWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *SetAssetScriptWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *SetAssetScriptWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *SetAssetScriptWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type SetScriptWithProofs
- func (tx SetScriptWithProofs) BinarySize() int
- func (tx *SetScriptWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *SetScriptWithProofs) GenerateID(scheme Scheme) error
- func (tx SetScriptWithProofs) GetFee() uint64
- func (tx SetScriptWithProofs) GetFeeAsset() OptionalAsset
- func (tx *SetScriptWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx SetScriptWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx SetScriptWithProofs) GetSenderPK() crypto.PublicKey
- func (tx SetScriptWithProofs) GetTimestamp() uint64
- func (tx SetScriptWithProofs) GetType() TransactionType
- func (tx SetScriptWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx SetScriptWithProofs) GetVersion() byte
- func (tx *SetScriptWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *SetScriptWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *SetScriptWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *SetScriptWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *SetScriptWithProofs) NonEmptyScript() bool
- func (tx *SetScriptWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *SetScriptWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *SetScriptWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *SetScriptWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *SetScriptWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *SetScriptWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *SetScriptWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *SetScriptWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type Signatures
- type SignaturesMessage
- func (m *SignaturesMessage) IsMessage()
- func (m *SignaturesMessage) MarshalBinary() ([]byte, error)
- func (m *SignaturesMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *SignaturesMessage) SetPayload(payload Payload) (Message, error)
- func (m *SignaturesMessage) UnmarshalBinary(data []byte) error
- func (m *SignaturesMessage) WriteTo(w io.Writer) (int64, error)
- type SizedBlockID
- type SnapshotApplier
- type SponsorshipScriptAction
- type SponsorshipSnapshot
- func (s SponsorshipSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s SponsorshipSnapshot) Apply(a SnapshotApplier) error
- func (s *SponsorshipSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_Sponsorship) error
- func (s SponsorshipSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_Sponsorship, error)
- type SponsorshipWithProofs
- func (tx SponsorshipWithProofs) BinarySize() int
- func (tx *SponsorshipWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *SponsorshipWithProofs) Clone() *SponsorshipWithProofs
- func (tx *SponsorshipWithProofs) GenerateID(scheme Scheme) error
- func (tx SponsorshipWithProofs) GetFee() uint64
- func (tx SponsorshipWithProofs) GetFeeAsset() OptionalAsset
- func (tx *SponsorshipWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx SponsorshipWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx SponsorshipWithProofs) GetSenderPK() crypto.PublicKey
- func (tx SponsorshipWithProofs) GetTimestamp() uint64
- func (tx SponsorshipWithProofs) GetType() TransactionType
- func (tx SponsorshipWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx SponsorshipWithProofs) GetVersion() byte
- func (tx *SponsorshipWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *SponsorshipWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *SponsorshipWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *SponsorshipWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *SponsorshipWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *SponsorshipWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *SponsorshipWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *SponsorshipWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *SponsorshipWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *SponsorshipWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *SponsorshipWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *SponsorshipWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type StateActionsCounter
- type StateHash
- type StateHashDebug
- type StateHashDebugV1
- type StateHashDebugV2
- type StateHashV1
- func (s *StateHashV1) Equal(other StateHash) bool
- func (s *StateHashV1) GenerateSumHash(prevSumHash []byte) error
- func (s *StateHashV1) GetBlockID() BlockID
- func (s *StateHashV1) GetFieldsHashes() json.Marshaler
- func (s *StateHashV1) GetSumHash() crypto.Digest
- func (s *StateHashV1) MarshalBinary() ([]byte, error)
- func (s StateHashV1) MarshalJSON() ([]byte, error)
- func (s *StateHashV1) UnmarshalBinary(data []byte) error
- func (s *StateHashV1) UnmarshalJSON(value []byte) error
- type StateHashV2
- func (s *StateHashV2) Equal(other StateHash) bool
- func (s *StateHashV2) GenerateSumHash(prevSumHash []byte) error
- func (s *StateHashV2) GetBlockID() BlockID
- func (s *StateHashV2) GetFieldsHashes() json.Marshaler
- func (s *StateHashV2) GetSumHash() crypto.Digest
- func (s *StateHashV2) MarshalBinary() ([]byte, error)
- func (s StateHashV2) MarshalJSON() ([]byte, error)
- func (s *StateHashV2) UnmarshalBinary(data []byte) error
- func (s *StateHashV2) UnmarshalJSON(value []byte) error
- type StringArgument
- func (a *StringArgument) BinarySize() int
- func (a *StringArgument) GetValueType() ArgumentValueType
- func (a *StringArgument) MarshalBinary() ([]byte, error)
- func (a *StringArgument) MarshalJSON() ([]byte, error)
- func (a *StringArgument) Serialize(s *serializer.Serializer) error
- func (a *StringArgument) UnmarshalBinary(data []byte) error
- func (a *StringArgument) UnmarshalJSON(value []byte) error
- type StringDataEntry
- func (e StringDataEntry) BinarySize() int
- func (e StringDataEntry) GetKey() string
- func (e StringDataEntry) GetValueType() DataValueType
- func (e StringDataEntry) MarshalBinary() ([]byte, error)
- func (e StringDataEntry) MarshalJSON() ([]byte, error)
- func (e StringDataEntry) MarshalValue() ([]byte, error)
- func (e *StringDataEntry) MarshaledValueSize() int
- func (e StringDataEntry) PayloadSize() int
- func (e *StringDataEntry) SetKey(key string)
- func (e StringDataEntry) ToProtobuf() *g.DataEntry
- func (e *StringDataEntry) UnmarshalBinary(data []byte) error
- func (e *StringDataEntry) UnmarshalJSON(value []byte) error
- func (e *StringDataEntry) UnmarshalValue(data []byte) error
- func (e StringDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
- func (e *StringDataEntry) WriteValueTo(w io.Writer) error
- type TCPAddr
- type Timestamp
- type Transaction
- func BytesToTransaction(tx []byte, scheme Scheme) (Transaction, error)
- func BytesToTransactions(count int, txs []byte, scheme Scheme) ([]Transaction, error)
- func GuessTransactionType(t *TransactionTypeVersion) (Transaction, error)
- func SignedTxFromProtobuf(data []byte) (Transaction, error)
- func TxFromProtobuf(data []byte) (Transaction, error)
- type TransactionMessage
- func (m *TransactionMessage) IsMessage()
- func (m *TransactionMessage) MarshalBinary() ([]byte, error)
- func (m *TransactionMessage) ReadFrom(r io.Reader) (int64, error)
- func (m *TransactionMessage) SetPayload(payload Payload) (Message, error)
- func (m *TransactionMessage) UnmarshalBinary(data []byte) error
- func (m *TransactionMessage) WriteTo(w io.Writer) (int64, error)
- type TransactionProofVersion
- type TransactionStatus
- type TransactionStatusSnapshot
- type TransactionType
- type TransactionTypeInfo
- type TransactionTypeVersion
- type TransactionValidationParams
- type Transactions
- func (a Transactions) BinarySize() int
- func (a Transactions) Count() int
- func (a Transactions) Join(other Transactions) Transactions
- func (a Transactions) MarshalBinary(scheme Scheme) ([]byte, error)
- func (a Transactions) MarshalJSON() ([]byte, error)
- func (a Transactions) ToProtobuf(scheme Scheme) ([]*g.SignedTransaction, error)
- func (a *Transactions) UnmarshalFromProtobuf(data []byte) error
- func (a *Transactions) UnmarshalJSON(data []byte) error
- func (a Transactions) WriteTo(proto bool, scheme Scheme, w io.Writer) (int64, error)
- func (a Transactions) WriteToBinary(w io.Writer, scheme Scheme) (int64, error)
- type Transfer
- func (tr Transfer) BinarySize() int
- func (tr Transfer) GetAttachment() []byte
- func (tr Transfer) GetFee() uint64
- func (tr Transfer) GetFeeAsset() OptionalAsset
- func (tr Transfer) GetSender(scheme Scheme) (Address, error)
- func (tr Transfer) GetSenderPK() crypto.PublicKey
- func (tr Transfer) GetTimestamp() uint64
- func (tr *Transfer) Serialize(s *serializer.Serializer) error
- func (tr *Transfer) ToProtobuf() (*g.Transaction_Transfer, error)
- func (tr *Transfer) UnmarshalBinary(data []byte) error
- func (tr Transfer) Valid(scheme Scheme) (bool, error)
- type TransferScriptAction
- type TransferWithProofs
- func (tx TransferWithProofs) BinarySize() int
- func (tx *TransferWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *TransferWithProofs) BodySerialize(s *serializer.Serializer) error
- func (tx *TransferWithProofs) BodyUnmarshalBinary(data []byte) error
- func (tx *TransferWithProofs) Clone() *TransferWithProofs
- func (tx *TransferWithProofs) GenerateID(scheme Scheme) error
- func (tx *TransferWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx TransferWithProofs) GetProofs() *ProofsV1
- func (tx TransferWithProofs) GetSenderPK() crypto.PublicKey
- func (tx TransferWithProofs) GetType() TransactionType
- func (tx TransferWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx TransferWithProofs) GetVersion() byte
- func (tx *TransferWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *TransferWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *TransferWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *TransferWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *TransferWithProofs) Serialize(s *serializer.Serializer) error
- func (tx *TransferWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *TransferWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *TransferWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *TransferWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *TransferWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *TransferWithProofs) UnmarshalJSON(data []byte) error
- func (tx *TransferWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *TransferWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *TransferWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type TransferWithSig
- func (tx TransferWithSig) BinarySize() int
- func (tx *TransferWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *TransferWithSig) BodySerialize(s *serializer.Serializer) error
- func (tx *TransferWithSig) Clone() *TransferWithSig
- func (tx *TransferWithSig) GenerateID(scheme Scheme) error
- func (tx *TransferWithSig) GetID(scheme Scheme) ([]byte, error)
- func (tx TransferWithSig) GetProofs() *ProofsV1
- func (tx TransferWithSig) GetType() TransactionType
- func (tx TransferWithSig) GetTypeInfo() TransactionTypeInfo
- func (tx TransferWithSig) GetVersion() byte
- func (tx *TransferWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
- func (tx *TransferWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *TransferWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *TransferWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *TransferWithSig) Serialize(s *serializer.Serializer) error
- func (tx *TransferWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *TransferWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *TransferWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *TransferWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
- func (tx *TransferWithSig) UnmarshalFromProtobuf(data []byte) error
- func (tx *TransferWithSig) UnmarshalJSON(data []byte) error
- func (tx *TransferWithSig) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *TransferWithSig) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *TransferWithSig) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- func (tx *TransferWithSig) WriteTo(w io.Writer) (int64, error)
- type TxFailureReason
- type U8String
- type U32
- type U64
- type UpdateAssetInfoWithProofs
- func (tx *UpdateAssetInfoWithProofs) BinarySize() int
- func (tx *UpdateAssetInfoWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
- func (tx *UpdateAssetInfoWithProofs) GenerateID(scheme Scheme) error
- func (tx UpdateAssetInfoWithProofs) GetFee() uint64
- func (tx UpdateAssetInfoWithProofs) GetFeeAsset() OptionalAsset
- func (tx *UpdateAssetInfoWithProofs) GetID(scheme Scheme) ([]byte, error)
- func (tx UpdateAssetInfoWithProofs) GetSender(scheme Scheme) (Address, error)
- func (tx UpdateAssetInfoWithProofs) GetSenderPK() crypto.PublicKey
- func (tx UpdateAssetInfoWithProofs) GetTimestamp() uint64
- func (tx UpdateAssetInfoWithProofs) GetType() TransactionType
- func (tx UpdateAssetInfoWithProofs) GetTypeInfo() TransactionTypeInfo
- func (tx UpdateAssetInfoWithProofs) GetVersion() byte
- func (tx *UpdateAssetInfoWithProofs) MarshalBinary(Scheme) ([]byte, error)
- func (tx *UpdateAssetInfoWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *UpdateAssetInfoWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
- func (tx *UpdateAssetInfoWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
- func (tx *UpdateAssetInfoWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
- func (tx *UpdateAssetInfoWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
- func (tx *UpdateAssetInfoWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
- func (tx *UpdateAssetInfoWithProofs) UnmarshalBinary(_ []byte, _ Scheme) error
- func (tx *UpdateAssetInfoWithProofs) UnmarshalFromProtobuf(data []byte) error
- func (tx *UpdateAssetInfoWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
- func (tx *UpdateAssetInfoWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
- func (tx *UpdateAssetInfoWithProofs) Verify(scheme Scheme, publicKey crypto.PublicKey) (bool, error)
- type Version
- func (v Version) Cmp(other Version) int
- func (v Version) CmpMinor(other Version) int
- func (v Version) Major() uint32
- func (v Version) MarshalJSON() ([]byte, error)
- func (v Version) Minor() uint32
- func (v Version) Patch() uint32
- func (v *Version) ReadFrom(r io.Reader) (int64, error)
- func (v Version) String() string
- func (v Version) WriteTo(writer io.Writer) (int64, error)
- type WavesAddress
- func MustAddressFromPublicKey(scheme byte, publicKey crypto.PublicKey) WavesAddress
- func MustAddressFromString(s string) WavesAddress
- func NewAddressFromBytes(b []byte) (WavesAddress, error)
- func NewAddressFromBytesChecked(scheme Scheme, b []byte) (WavesAddress, error)
- func NewAddressFromPublicKey(scheme byte, publicKey crypto.PublicKey) (WavesAddress, error)
- func NewAddressFromString(s string) (WavesAddress, error)
- func NewAddressLikeFromAnyBytes(scheme byte, b []byte) (WavesAddress, error)
- func RebuildAddress(scheme Scheme, bodyBytes []byte) (WavesAddress, error)
- func (a WavesAddress) Body() []byte
- func (a WavesAddress) Bytes() []byte
- func (a WavesAddress) Equal(address Address) bool
- func (a *WavesAddress) EthereumAddress() EthereumAddress
- func (a WavesAddress) ID() AddressID
- func (a WavesAddress) MarshalJSON() ([]byte, error)
- func (a WavesAddress) MarshalText() (text []byte, err error)
- func (a WavesAddress) Scheme() Scheme
- func (a WavesAddress) String() string
- func (a WavesAddress) ToWavesAddress(_ Scheme) (WavesAddress, error)
- func (a *WavesAddress) UnmarshalJSON(value []byte) error
- func (a *WavesAddress) UnmarshalText(text []byte) error
- func (a *WavesAddress) Valid(scheme Scheme) (bool, error)
- type WavesBalanceSnapshot
- func (s WavesBalanceSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
- func (s WavesBalanceSnapshot) Apply(a SnapshotApplier) error
- func (s *WavesBalanceSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_Balance) error
- func (s WavesBalanceSnapshot) MarshalJSON() ([]byte, error)
- func (s WavesBalanceSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_Balance, error)
Constants ¶
const ( AddressIDSize = 20 WavesAddressSize = wavesAddressHeaderSize + wavesAddressBodySize + wavesAddressChecksumSize AliasMinLength = 4 AliasMaxLength = 30 AliasAlphabet = "-.0123456789@_abcdefghijklmnopqrstuvwxyz" AliasPrefix = "alias" EthereumAddressSize = AddressIDSize MainNetScheme byte = 'W' TestNetScheme byte = 'T' StageNetScheme byte = 'S' CustomNetScheme byte = 'E' )
const ( AssetIDSize = 20 AssetIDTailSize = crypto.DigestSize - AssetIDSize )
const ( MicroBlockInvSizeSig = crypto.PublicKeySize + crypto.SignatureSize*3 MicroBlockInvSizeHash = crypto.PublicKeySize + crypto.DigestSize*2 + crypto.SignatureSize )
const ( DataScriptActionGroupType = iota + 1 AttachedPaymentScriptActionGroupType AssetScriptActionGroupType BalanceScriptActionGroupType )
const ( MaxDescriptionLen = 1000 MaxAssetNameLen = 16 MinAssetNameLen = 4 MaxDecimals = 8 // Max allowed versions of transactions. MaxUncheckedTransactionVersion = 127 MaxGenesisTransactionVersion = 2 MaxPaymentTransactionVersion = 2 MaxTransferTransactionVersion = 3 MaxIssueTransactionVersion = 3 MaxReissueTransactionVersion = 3 MaxBurnTransactionVersion = 3 MaxExchangeTransactionVersion = 3 MaxLeaseTransactionVersion = 3 MaxLeaseCancelTransactionVersion = 3 MaxCreateAliasTransactionVersion = 3 MaxMassTransferTransactionVersion = 2 MaxDataTransactionVersion = 2 MaxSetScriptTransactionVersion = 2 MaxSponsorshipTransactionVersion = 2 MaxSetAssetScriptTransactionVersion = 2 MaxInvokeScriptTransactionVersion = 2 MaxUpdateAssetInfoTransactionVersion = 1 MaxCommitToGenerationTransactionVersion = 1 GenesisTransactionProtobufVersion = 2 PaymentTransactionProtobufVersion = 2 TransferTransactionProtobufVersion = 3 IssueTransactionProtobufVersion = 3 ReissueTransactionProtobufVersion = 3 BurnTransactionProtobufVersion = 3 ExchangeTransactionProtobufVersion = 3 LeaseTransactionProtobufVersion = 3 LeaseCancelTransactionProtobufVersion = 3 CreateAliasTransactionProtobufVersion = 3 MassTransferTransactionProtobufVersion = 2 DataTransactionProtobufVersion = 2 SetScriptTransactionProtobufVersion = 2 SponsorshipTransactionProtobufVersion = 2 SetAssetScriptTransactionProtobufVersion = 2 InvokeScriptTransactionProtobufVersion = 2 InvokeExpressionTransactionProtobufVersion = 1 UpdateAssetInfoTransactionProtobufVersion = 1 EthereumMetamaskTransactionProtobufVersion = 1 CommitToGenerationTransactionProtobufVersion = 1 MinFee = 100_000 MinFeeScriptedAsset = 400_000 MinFeeInvokeScript = 500_000 MaxContractScriptSizeV1V5 = 32 * KiB MaxContractScriptSizeV6 = 160 * KiB MaxVerifierScriptSize = 8 * KiB KiB = 1024 MiB = 1024 * KiB )
const ( //WavesAssetName is the default name for basic WAVES asset. WavesAssetName = "WAVES" PriceConstant = 100000000 MaxAttachmentSize = 1024 MaxOrderAmount = 100 * PriceConstant * PriceConstant MaxOrderTTL = uint64((30 * 24 * time.Hour) / time.Millisecond) MaxKeySize = 100 MaxPBKeySize = 400 MaxDataWithProofsBytes = 150 * 1024 MaxDataWithProofsProtoBytes = 165_890 MaxDataWithProofsV6PayloadBytes = 165_835 // (DataEntry.MaxPBKeySize + DataEntry.MaxValueSize) * 5 MaxDataEntryValueSize = 32767 // max positive value of 'int16' type MaxDataEntriesScriptActionsSizeInBytesV1 = 5 * 1024 MaxDataEntriesScriptActionsSizeInBytesV2 = 15 * 1024 MaxScriptActionsV1 = 10 MaxScriptActionsV2 = 30 MaxDataEntryScriptActions = 100 MaxBalanceScriptActionsV3 = 100 MaxAttachedPaymentsScriptActions = 100 MaxAssetScriptActionsV3 = 30 )
const ( ArgumentInteger = ArgumentValueType(0) // E_LONG ArgumentBinary = ArgumentValueType(1) // E_BYTES ArgumentString = ArgumentValueType(2) // E_STRING ArgumentBoolean = ArgumentValueType(99) // Nonexistent RIDE type is used ArgumentValueTrue = ArgumentValueType(6) // E_TRUE ArgumentValueFalse = ArgumentValueType(7) // E_FALSE ArgumentList = ArgumentValueType(11) // E_LIST )
const ChannelWriteTimeout = 10 * time.Second
const EthereumGasPrice = 10 * ethereumGWei
EthereumGasPrice is a constant GasPrice which equals 10GWei according to the specification
const (
// EthereumHashSize is the expected length of the hash in bytes
EthereumHashSize = 32
)
const (
EthereumPublicKeyLength = 64
)
const (
HeaderContentIDPosition = 8
)
const IpPortLength = net.IPv6len + 8
Variables ¶
var ( ErrInvalidSig = errors.New("invalid transaction v, r, s values") ErrTxTypeNotSupported = errors.New("transaction type not supported") )
var ErrInvalidBlockIDDataSize = errors.New("invalid data size for BlockID")
var ErrInvalidChainId = errors.New("invalid chain id for signer")
var ErrNotFound = errors.New("not found")
var ( // ProtobufTransactionsVersions map shows whether transaction can be marshaled as protobuf data or not. // Value of ProtobufTransactionsVersions is minimum required transaction version to protobuf marshaling. ProtobufTransactionsVersions = map[TransactionType]byte{ GenesisTransaction: GenesisTransactionProtobufVersion, PaymentTransaction: PaymentTransactionProtobufVersion, TransferTransaction: TransferTransactionProtobufVersion, IssueTransaction: IssueTransactionProtobufVersion, ReissueTransaction: ReissueTransactionProtobufVersion, BurnTransaction: BurnTransactionProtobufVersion, ExchangeTransaction: ExchangeTransactionProtobufVersion, LeaseTransaction: LeaseTransactionProtobufVersion, LeaseCancelTransaction: LeaseCancelTransactionProtobufVersion, CreateAliasTransaction: CreateAliasTransactionProtobufVersion, MassTransferTransaction: MassTransferTransactionProtobufVersion, DataTransaction: DataTransactionProtobufVersion, SetScriptTransaction: SetScriptTransactionProtobufVersion, SponsorshipTransaction: SponsorshipTransactionProtobufVersion, SetAssetScriptTransaction: SetAssetScriptTransactionProtobufVersion, InvokeScriptTransaction: InvokeScriptTransactionProtobufVersion, InvokeExpressionTransaction: InvokeExpressionTransactionProtobufVersion, UpdateAssetInfoTransaction: UpdateAssetInfoTransactionProtobufVersion, EthereumMetamaskTransaction: EthereumMetamaskTransactionProtobufVersion, CommitToGenerationTransaction: CommitToGenerationTransactionProtobufVersion, } )
Functions ¶
func AppendHeaderBytesToTransactions ¶ added in v0.3.0
func BlockGetSignature ¶ added in v0.3.0
BlockGetSignature get signature from block without deserialization
func BytesWithUInt16Len ¶
BytesWithUInt16Len reads from buf an array of bytes of length encoded in first 2 bytes.
func BytesWithUInt32Len ¶ added in v0.3.0
BytesWithUInt32Len reads from buf an array of bytes of length encoded in first 4 bytes.
func DecodeFromHexString ¶ added in v0.10.0
DecodeFromHexString decodes bytes from a hex string which can start with 0x prefix.
func DigestTail ¶ added in v0.10.0
func DigestTail(digest crypto.Digest) [AssetIDTailSize]byte
func EncodeToHexString ¶ added in v0.10.0
EncodeToHexString encodes b as a hex string with 0x prefix.
func EndorsementMessage ¶ added in v0.11.0
func EthereumWeiToWavelet ¶ added in v0.10.0
func GenerateIssueScriptActionID ¶ added in v0.5.0
func GenerateIssueScriptActionID(name, description string, decimals, quantity int64, reissuable bool, nonce int64, txID crypto.Digest) crypto.Digest
GenerateIssueScriptActionID implements ID generation used in RIDE to create new ID of Issue.
func GenerateLeaseScriptActionID ¶ added in v0.9.0
func GenerateLeaseScriptActionID(recipient Recipient, amount int64, nonce int64, txID crypto.Digest) crypto.Digest
GenerateLeaseScriptActionID implements ID generation used in RIDE to create new ID for a Lease action.
func IsProtobufTx ¶ added in v0.5.0
func IsProtobufTx(tx Transaction) bool
func IsValidAliasString ¶ added in v0.11.0
func MarshalOrderBody ¶ added in v0.5.0
func MarshalSignedTxDeterministic ¶ added in v0.5.0
func MarshalSignedTxDeterministic(tx Transaction, scheme Scheme) ([]byte, error)
func MarshalToProtobufDeterministic ¶ added in v0.5.0
func MarshalTxBody ¶ added in v0.5.0
func MarshalTxBody(scheme Scheme, tx Transaction) ([]byte, error)
func MarshalTxDeterministic ¶ added in v0.5.0
func MarshalTxDeterministic(tx Transaction, scheme Scheme) ([]byte, error)
func NetworkStrFromScheme ¶ added in v0.5.0
func NewInfoMsg ¶ added in v0.8.8
func NewScriptResult ¶ added in v0.5.0
func NewScriptResult(actions []ScriptAction, msg ScriptErrorMessage) (*ScriptResult, []*AttachedPaymentScriptAction, error)
NewScriptResult creates correct representation of invocation actions for storage and API.
func NewTimestampFromTime ¶ added in v0.3.0
func NewTimestampFromUnixNano ¶ added in v0.3.0
func ParseMessage ¶ added in v0.11.0
func ParseMessage(data []byte, contentID PeerMessageID, name string, f func(payload []byte) error) error
ParseMessage parses a message from the given data. The 'f' function parameter is used to parse the message payload.
func PutBytesWithUInt16Len ¶
PutBytesWithUInt16Len prepends given buf with 2 bytes of its length.
func PutBytesWithUInt32Len ¶ added in v0.3.0
PutBytesWithUInt32Len prepends given buf with 4 bytes of its length.
func PutStringWithUInt8Len ¶ added in v0.3.0
PutStringWithUInt8Len converts the string to slice of bytes. The first byte of resulting slice contains the length of the string.
func PutStringWithUInt16Len ¶
PutStringWithUInt16Len writes to the buffer `buf` two bytes of the string `s` length followed with the bytes of the string `s`.
func PutStringWithUInt32Len ¶ added in v0.3.0
PutStringWithUInt32Len writes to the buffer `buf` four bytes of the string's `s` length followed with the bytes of string itself.
func ReadMessage ¶ added in v0.11.0
ReadMessage reads message from io.Reader and parses its payload using the given [f] function. While reading payload, checksum is calculated and compared with the checksum from the message header.
func ReconstructDigest ¶ added in v0.10.0
func ReconstructDigest(id AssetID, tail [AssetIDTailSize]byte) crypto.Digest
func StringWithUInt8Len ¶ added in v0.3.0
StringWithUInt8Len reads a string from given slice of bytes. The first byte of slice should contain the length of the following string. Function fails then the length of slice is less than 1 byte or the length of remaining slice is less than the length value from first byte.
func StringWithUInt16Len ¶
StringWithUInt16Len reads a string from the buffer `buf`.
func StringWithUInt32Len ¶ added in v0.3.0
StringWithUInt32Len reads a string from the buffer `buf`.
func TransactionToProtobufCommon ¶ added in v0.5.0
func TransactionToProtobufCommon(scheme Scheme, senderPublicKey []byte, tx Transaction) *g.Transaction
TransactionToProtobufCommon converts to protobuf structure with fields that are common for all of the transaction types.
func UnmarshalTransactionFromJSON ¶ added in v0.10.4
func UnmarshalTransactionFromJSON(data []byte, scheme Scheme, tx Transaction) (err error)
func ValidateActions ¶ added in v0.5.0
func ValidateActions( actions []ScriptAction, restrictions ActionsValidationRestrictions, isRideV6Activated bool, libVersion ast.LibraryVersion, validatePayments bool, ) error
func ValidateAttachedPaymentScriptAction ¶ added in v0.10.0
func ValidateAttachedPaymentScriptAction(action *AttachedPaymentScriptAction, restrictions ActionsValidationRestrictions, validatePayments bool) error
func ValidateBurnScriptAction ¶ added in v0.10.0
func ValidateBurnScriptAction(action *BurnScriptAction) error
func ValidateDataEntryScriptAction ¶ added in v0.10.0
func ValidateDataEntryScriptAction(action *DataEntryScriptAction, restrictions ActionsValidationRestrictions, isRideV6Activated bool, dataEntriesSize int) (int, error)
func ValidateEthereumSignatureValues ¶ added in v0.10.0
ValidateEthereumSignatureValues verifies whether the signature values are valid with the given chain rules. The v value is assumed to be either 0 or 1.
func ValidateIssueScriptAction ¶ added in v0.10.0
func ValidateIssueScriptAction(action *IssueScriptAction) error
func ValidateLeaseScriptAction ¶ added in v0.10.0
func ValidateLeaseScriptAction(action *LeaseScriptAction, restrictions ActionsValidationRestrictions) error
func ValidateNonNegativeAmount ¶ added in v0.8.0
func ValidatePositiveAmount ¶ added in v0.8.0
func ValidateReissueScriptAction ¶ added in v0.10.0
func ValidateReissueScriptAction(action *ReissueScriptAction) error
func ValidateSponsorshipScriptAction ¶ added in v0.10.0
func ValidateSponsorshipScriptAction(action *SponsorshipScriptAction) error
func ValidateTransferScriptAction ¶ added in v0.10.0
func ValidateTransferScriptAction(action *TransferScriptAction, restrictions ActionsValidationRestrictions) error
func VerifyEthereumSignature ¶ added in v0.10.0
func VerifyEthereumSignature(pubKey *EthereumPublicKey, rBig, sBig *big.Int, hash []byte) bool
VerifyEthereumSignature checks that the given public key created signature over hash. The public key should be in compressed (33 bytes) or uncompressed (65 bytes) format.
func VersionFromScriptBytes ¶ added in v0.5.0
func WaveletToEthereumWei ¶ added in v0.10.0
func WriteBytesWithUInt16Len ¶ added in v0.11.0
WriteBytesWithUInt16Len writes given data with 2 bytes of its length.
func WriteMessage ¶ added in v0.11.0
func WriteMessage(w io.Writer, contentID PeerMessageID, name string, payload io.WriterTo) (int64, error)
WriteMessage writes a message with the given content ID, name, and payload to the writer.
Types ¶
type AccountScriptSnapshot ¶ added in v0.11.0
type AccountScriptSnapshot struct {
SenderPublicKey crypto.PublicKey `json:"publicKey"`
Script Script `json:"script"`
VerifierComplexity uint64 `json:"verifierComplexity"`
}
func (AccountScriptSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s AccountScriptSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (AccountScriptSnapshot) Apply ¶ added in v0.11.0
func (s AccountScriptSnapshot) Apply(a SnapshotApplier) error
func (*AccountScriptSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *AccountScriptSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_AccountScript) error
func (AccountScriptSnapshot) ToProtobuf ¶ added in v0.11.0
func (s AccountScriptSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AccountScript, error)
type ActionsCountValidator ¶ added in v0.10.0
type ActionsCountValidator struct {
// contains filtered or unexported fields
}
func NewScriptActionsCountValidator ¶ added in v0.10.0
func NewScriptActionsCountValidator() ActionsCountValidator
func (*ActionsCountValidator) CountAction ¶ added in v0.10.0
func (v *ActionsCountValidator) CountAction(action ScriptAction, libVersion ast.LibraryVersion, isRideV6Activated bool) error
func (*ActionsCountValidator) ValidateCounts ¶ added in v0.10.0
func (v *ActionsCountValidator) ValidateCounts(libVersion ast.LibraryVersion, isRideV6Activated bool) error
type ActionsValidationRestrictions ¶ added in v0.5.0
type AddressID ¶ added in v0.10.0
type AddressID [AddressIDSize]byte
func (AddressID) ToWavesAddress ¶ added in v0.10.0
func (a AddressID) ToWavesAddress(scheme Scheme) (WavesAddress, error)
type Alias ¶
Alias represents the nickname tha could be attached to the WavesAddress.
func NewAliasFromBytes ¶
NewAliasFromBytes unmarshal an Alias from bytes and checks that it's valid.
func NewAliasFromString ¶
NewAliasFromString creates an Alias from its string representation. Function does not check that the result is a valid Alias. String representation of an Alias should have a following format: "alias:<scheme>:<alias>". Scheme should be represented with a one-byte ASCII symbol.
func (Alias) BinarySize ¶ added in v0.5.0
func (*Alias) MarshalBinary ¶
MarshalBinary converts the Alias to the slice of bytes. Just calls Bytes().
func (Alias) MarshalJSON ¶
MarshalJSON is a custom JSON marshalling function.
func (*Alias) Serialize ¶ added in v0.3.0
func (a *Alias) Serialize(s *serializer.Serializer) error
func (*Alias) UnmarshalBinary ¶
UnmarshalBinary reads an Alias from its bytes representation. This function does not validate the result.
func (*Alias) UnmarshalJSON ¶
UnmarshalJSON reads an Alias from JSON.
type AliasSnapshot ¶ added in v0.11.0
type AliasSnapshot struct {
Address WavesAddress `json:"address"`
Alias string `json:"alias"`
}
func (AliasSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s AliasSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (AliasSnapshot) Apply ¶ added in v0.11.0
func (s AliasSnapshot) Apply(a SnapshotApplier) error
func (*AliasSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *AliasSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_Alias) error
func (AliasSnapshot) ToProtobuf ¶ added in v0.11.0
func (s AliasSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_Alias, error)
func (*AliasSnapshot) UnmarshalJSON ¶ added in v0.11.0
func (s *AliasSnapshot) UnmarshalJSON(bytes []byte) error
type Argument ¶ added in v0.3.0
type Argument interface {
GetValueType() ArgumentValueType
MarshalBinary() ([]byte, error)
BinarySize() int
Serialize(*serializer.Serializer) error
}
type ArgumentType ¶ added in v0.3.0
type ArgumentType struct {
Type string `json:"type"`
}
ArgumentType is the assistive structure used to get the type of DataEntry while unmarshal form JSON.
type ArgumentValueType ¶ added in v0.3.0
type ArgumentValueType byte
ArgumentValueType is an alias for byte that encodes the value type.
func (ArgumentValueType) String ¶ added in v0.3.0
func (vt ArgumentValueType) String() string
String translates ValueType value to human-readable name.
type Arguments ¶ added in v0.3.0
type Arguments []Argument
func ConvertDecodedEthereumArgumentsToProtoArguments ¶ added in v0.10.5
func ConvertDecodedEthereumArgumentsToProtoArguments(decodedArgs []ethabi.DecodedArg) (Arguments, error)
func (Arguments) BinarySize ¶ added in v0.5.0
func (Arguments) MarshalBinary ¶ added in v0.3.0
func (Arguments) Serialize ¶ added in v0.3.0
func (a Arguments) Serialize(s *serializer.Serializer) error
func (*Arguments) UnmarshalBinary ¶ added in v0.3.0
func (*Arguments) UnmarshalJSON ¶ added in v0.3.0
UnmarshalJSON custom JSON deserialization method.
type AssetBalanceSnapshot ¶ added in v0.11.0
type AssetBalanceSnapshot struct {
Address WavesAddress `json:"address"`
AssetID crypto.Digest `json:"asset"`
Balance uint64 `json:"balance"`
}
func (AssetBalanceSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s AssetBalanceSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (AssetBalanceSnapshot) Apply ¶ added in v0.11.0
func (s AssetBalanceSnapshot) Apply(a SnapshotApplier) error
func (*AssetBalanceSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *AssetBalanceSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_Balance) error
func (AssetBalanceSnapshot) ToProtobuf ¶ added in v0.11.0
func (s AssetBalanceSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_Balance, error)
type AssetConstInfo ¶ added in v0.11.0
type AssetConstInfo struct {
ID crypto.Digest
IssueHeight Height
Issuer WavesAddress
Decimals uint8
}
type AssetDescriptionSnapshot ¶ added in v0.11.0
type AssetDescriptionSnapshot struct {
AssetID crypto.Digest `json:"id"`
AssetName string `json:"name"`
AssetDescription string `json:"description"`
}
func (AssetDescriptionSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s AssetDescriptionSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (AssetDescriptionSnapshot) Apply ¶ added in v0.11.0
func (s AssetDescriptionSnapshot) Apply(a SnapshotApplier) error
func (*AssetDescriptionSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *AssetDescriptionSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_AssetNameAndDescription) error
func (AssetDescriptionSnapshot) ToProtobuf ¶ added in v0.11.0
func (s AssetDescriptionSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AssetNameAndDescription, error)
type AssetID ¶ added in v0.10.0
type AssetID [AssetIDSize]byte
func AssetIDFromDigest ¶ added in v0.10.0
type AssetInfo ¶ added in v0.3.0
type AssetInfo struct {
AssetConstInfo
Quantity uint64
IssuerPublicKey crypto.PublicKey
Reissuable bool
Scripted bool
Sponsored bool
}
func (*AssetInfo) ToProtobuf ¶ added in v0.5.0
func (ai *AssetInfo) ToProtobuf() *g.AssetInfoResponse
type AssetPair ¶
type AssetPair struct {
AmountAsset OptionalAsset `json:"amountAsset"`
PriceAsset OptionalAsset `json:"priceAsset"`
}
AssetPair is a pair of assets in ExchangeTransaction.
func (AssetPair) BinarySize ¶ added in v0.5.0
func (AssetPair) ToProtobuf ¶ added in v0.5.0
type AssetScriptSnapshot ¶ added in v0.11.0
func (AssetScriptSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s AssetScriptSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (AssetScriptSnapshot) Apply ¶ added in v0.11.0
func (s AssetScriptSnapshot) Apply(a SnapshotApplier) error
func (*AssetScriptSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *AssetScriptSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_AssetScript) error
func (AssetScriptSnapshot) ToProtobuf ¶ added in v0.11.0
func (s AssetScriptSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AssetScript, error)
type AssetVolumeSnapshot ¶ added in v0.11.0
type AssetVolumeSnapshot struct {
AssetID crypto.Digest `json:"id"`
TotalQuantity big.Int `json:"volume"` // volume in protobuf
IsReissuable bool `json:"isReissuable"`
}
func (AssetVolumeSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s AssetVolumeSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (AssetVolumeSnapshot) Apply ¶ added in v0.11.0
func (s AssetVolumeSnapshot) Apply(a SnapshotApplier) error
func (*AssetVolumeSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *AssetVolumeSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_AssetVolume) error
func (AssetVolumeSnapshot) ToProtobuf ¶ added in v0.11.0
func (s AssetVolumeSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AssetVolume, error)
type AtomicSnapshot ¶ added in v0.11.0
type AtomicSnapshot interface {
Apply(SnapshotApplier) error
/* TODO remove it. It is temporarily used to mark snapshots generated by tx diff that shouldn't be applied,
because balances diffs are applied later in the block. */
AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
}
func TxSnapshotsFromProtobuf ¶ added in v0.11.0
func TxSnapshotsFromProtobuf(scheme Scheme, txSnapshotProto *g.TransactionStateSnapshot) ([]AtomicSnapshot, error)
TxSnapshotsFromProtobuf deserializes protobuf message into AtomicSnapshot slice. The TransactionStatusSnapshot is the last element of the slice.
func TxSnapshotsFromProtobufWithoutTxStatus ¶ added in v0.11.0
func TxSnapshotsFromProtobufWithoutTxStatus( scheme Scheme, txSnapshotProto *g.TransactionStateSnapshot, ) ([]AtomicSnapshot, error)
TxSnapshotsFromProtobufWithoutTxStatus Unmarshalling order Reference: `PBSnapshots.fromProtobuf` in scala node code. (don't change it if it is not necessary, order is important): NewAsset AssetVolume AssetDescription AssetScript WavesBalances and AssetBalances LeaseBalances Alias FilledVolumes NewLeases CancelledLeases AccountScript DataEntries Sponsorships GenerationCommitment.
type AttachedPaymentScriptAction ¶ added in v0.10.0
type AttachedPaymentScriptAction struct {
Sender *crypto.PublicKey
Recipient Recipient
Amount int64
Asset OptionalAsset
}
func (*AttachedPaymentScriptAction) GroupType ¶ added in v0.10.0
func (a *AttachedPaymentScriptAction) GroupType() ScriptActionGroupType
func (*AttachedPaymentScriptAction) SenderPK ¶ added in v0.10.0
func (a *AttachedPaymentScriptAction) SenderPK() *crypto.PublicKey
type Attachment ¶
type Attachment []byte
func NewAttachmentFromBase58 ¶ added in v0.1.2
func NewAttachmentFromBase58(s string) (Attachment, error)
func (Attachment) Bytes ¶ added in v0.3.0
func (a Attachment) Bytes() []byte
func (Attachment) MarshalJSON ¶
func (a Attachment) MarshalJSON() ([]byte, error)
func (Attachment) Size ¶ added in v0.5.0
func (a Attachment) Size() int
func (Attachment) String ¶
func (a Attachment) String() string
func (*Attachment) UnmarshalJSON ¶
func (a *Attachment) UnmarshalJSON(data []byte) error
type B58Bytes ¶
type B58Bytes []byte
B58Bytes represents bytes as Base58 string in JSON
func (B58Bytes) MarshalJSON ¶
MarshalJSON writes B58Bytes Value as JSON string
func (*B58Bytes) UnmarshalJSON ¶
UnmarshalJSON reads B58Bytes from JSON string
type B64Bytes ¶ added in v0.10.0
type B64Bytes []byte
func (B64Bytes) MarshalJSON ¶ added in v0.10.0
func (*B64Bytes) UnmarshalJSON ¶ added in v0.10.0
type BUpdatesInfo ¶ added in v0.11.0
type BUpdatesInfo struct {
BlockUpdatesInfo BlockUpdatesInfo
ContractUpdatesInfo L2ContractDataEntries
}
type BinaryArgument ¶ added in v0.3.0
type BinaryArgument struct {
Value []byte
}
BinaryArgument represents an argument that stores binary value.
func (*BinaryArgument) BinarySize ¶ added in v0.5.0
func (a *BinaryArgument) BinarySize() int
func (*BinaryArgument) GetValueType ¶ added in v0.3.0
func (a *BinaryArgument) GetValueType() ArgumentValueType
GetValueType returns the type of value (Binary) stored in an argument.
func (*BinaryArgument) MarshalBinary ¶ added in v0.3.0
func (a *BinaryArgument) MarshalBinary() ([]byte, error)
MarshalBinary writes an argument to its byte representation.
func (*BinaryArgument) MarshalJSON ¶ added in v0.3.0
func (a *BinaryArgument) MarshalJSON() ([]byte, error)
MarshalJSON converts an argument to its JSON representation. Note that BASE64 is used to represent the binary value.
func (*BinaryArgument) Serialize ¶ added in v0.3.0
func (a *BinaryArgument) Serialize(s *serializer.Serializer) error
Serialize argument to its byte representation.
func (*BinaryArgument) UnmarshalBinary ¶ added in v0.3.0
func (a *BinaryArgument) UnmarshalBinary(data []byte) error
UnmarshalBinary reads an argument from a binary representation.
func (*BinaryArgument) UnmarshalJSON ¶ added in v0.3.0
func (a *BinaryArgument) UnmarshalJSON(value []byte) error
UnmarshalJSON converts JSON to a BinaryArgument structure. Value should be stored as BASE64 sting in JSON.
type BinaryDataEntry ¶
BinaryDataEntry represents a key-value data entry that stores binary value.
func (BinaryDataEntry) BinarySize ¶ added in v0.5.0
func (e BinaryDataEntry) BinarySize() int
func (BinaryDataEntry) GetKey ¶
func (e BinaryDataEntry) GetKey() string
GetKey returns the key of data entry.
func (BinaryDataEntry) GetValueType ¶
func (e BinaryDataEntry) GetValueType() DataValueType
GetValueType returns the type of value (Binary) stored in an entry.
func (BinaryDataEntry) MarshalBinary ¶
func (e BinaryDataEntry) MarshalBinary() ([]byte, error)
MarshalBinary writes an entry to its byte representation.
func (BinaryDataEntry) MarshalJSON ¶
func (e BinaryDataEntry) MarshalJSON() ([]byte, error)
MarshalJSON converts an entry to its JSON representation. Note that BASE64 is used to represent the binary value.
func (BinaryDataEntry) MarshalValue ¶ added in v0.3.0
func (e BinaryDataEntry) MarshalValue() ([]byte, error)
MarshalValue writes an entry value to its byte representation.
func (*BinaryDataEntry) MarshaledValueSize ¶ added in v0.11.0
func (e *BinaryDataEntry) MarshaledValueSize() int
func (BinaryDataEntry) PayloadSize ¶ added in v0.10.0
func (e BinaryDataEntry) PayloadSize() int
func (*BinaryDataEntry) SetKey ¶ added in v0.3.0
func (e *BinaryDataEntry) SetKey(key string)
SetKey sets the key of data entry.
func (BinaryDataEntry) ToProtobuf ¶ added in v0.5.0
func (e BinaryDataEntry) ToProtobuf() *g.DataEntry
func (*BinaryDataEntry) UnmarshalBinary ¶
func (e *BinaryDataEntry) UnmarshalBinary(data []byte) error
UnmarshalBinary reads an entry from a binary representation.
func (*BinaryDataEntry) UnmarshalJSON ¶
func (e *BinaryDataEntry) UnmarshalJSON(value []byte) error
UnmarshalJSON converts JSON to a BinaryDataEntry structure. Value should be stored as BASE64 sting in JSON.
func (*BinaryDataEntry) UnmarshalValue ¶ added in v0.3.0
func (e *BinaryDataEntry) UnmarshalValue(data []byte) error
UnmarshalValue reads an entry value from a binary representation.
func (BinaryDataEntry) Valid ¶ added in v0.3.0
func (e BinaryDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
func (*BinaryDataEntry) WriteValueTo ¶ added in v0.11.0
func (e *BinaryDataEntry) WriteValueTo(w io.Writer) error
type Block ¶ added in v0.2.0
type Block struct {
BlockHeader
Transactions Transactions `json:"transactions,omitempty"`
}
Block is a block of the blockchain
func CreateBlock ¶ added in v0.3.0
func CreateBlock( transactions Transactions, timestamp Timestamp, parentID BlockID, publicKey crypto.PublicKey, nxtConsensus NxtConsensus, version BlockVersion, features []int16, rewardVote int64, scheme Scheme, stateHash *crypto.Digest, blockFinalizationVoting *FinalizationVoting, ) (*Block, error)
func (*Block) MarshalBinary ¶ added in v0.2.0
MarshalBinary encodes Block to binary form
func (*Block) MarshalToProtobuf ¶ added in v0.5.0
func (*Block) Marshaller ¶ added in v0.7.0
func (b *Block) Marshaller() Marshaller
func (*Block) SetTransactionsRoot ¶ added in v0.5.0
func (*Block) SetTransactionsRootIfPossible ¶ added in v0.6.0
func (*Block) ToProtobuf ¶ added in v0.5.0
func (*Block) ToProtobufWithHeight ¶ added in v0.5.0
func (*Block) UnmarshalBinary ¶ added in v0.2.0
UnmarshalBinary decodes Block from binary form
func (*Block) UnmarshalFromProtobuf ¶ added in v0.5.0
func (*Block) VerifySignature ¶ added in v0.3.0
func (*Block) VerifyTransactionsRoot ¶ added in v0.5.0
type BlockHeader ¶ added in v0.2.0
type BlockHeader struct {
Version BlockVersion `json:"version"`
Timestamp uint64 `json:"timestamp"`
Parent BlockID `json:"reference"`
FeaturesCount int `json:"-"`
Features []int16 `json:"features,omitempty"`
RewardVote int64 `json:"desiredReward"`
ConsensusBlockLength uint32 `json:"-"`
NxtConsensus `json:"nxt-consensus"`
TransactionBlockLength uint32 `json:"transactionBlockLength,omitempty"`
TransactionCount int `json:"transactionCount"`
GeneratorPublicKey crypto.PublicKey `json:"generatorPublicKey"`
BlockSignature crypto.Signature `json:"signature"`
TransactionsRoot B58Bytes `json:"transactionsRoot,omitempty"`
StateHash *crypto.Digest `json:"stateHash,omitempty"` // is nil before protocol version 1.5
ChallengedHeader *ChallengedHeader `json:"challengedHeader,omitempty"` // is nil before protocol version 1.5
FinalizationVoting *FinalizationVoting `json:"finalizationVoting,omitempty"`
// This field must be generated and set after Block unmarshalling.
ID BlockID `json:"id"`
}
BlockHeader contains Block meta-information without transactions
func (*BlockHeader) BlockID ¶ added in v0.5.0
func (b *BlockHeader) BlockID() BlockID
func (*BlockHeader) GenerateBlockID ¶ added in v0.5.0
func (b *BlockHeader) GenerateBlockID(scheme Scheme) error
func (*BlockHeader) GetChallengedHeader ¶ added in v0.11.0
func (b *BlockHeader) GetChallengedHeader() (ChallengedHeader, bool)
func (*BlockHeader) GetFinalizationVoting ¶ added in v0.11.0
func (b *BlockHeader) GetFinalizationVoting() (FinalizationVoting, bool)
func (*BlockHeader) GetStateHash ¶ added in v0.11.0
func (b *BlockHeader) GetStateHash() (crypto.Digest, bool)
func (*BlockHeader) HeaderToProtobuf ¶ added in v0.5.0
func (b *BlockHeader) HeaderToProtobuf(scheme Scheme) (*g.Block, error)
func (*BlockHeader) HeaderToProtobufHeader ¶ added in v0.5.0
func (b *BlockHeader) HeaderToProtobufHeader(scheme Scheme) (*g.Block_Header, error)
func (*BlockHeader) HeaderToProtobufWithHeight ¶ added in v0.5.0
func (b *BlockHeader) HeaderToProtobufWithHeight( scheme Scheme, height uint64, vrf []byte, rewards Rewards, ) (*pb.BlockWithHeight, error)
func (*BlockHeader) MarshalHeader ¶ added in v0.5.0
func (b *BlockHeader) MarshalHeader(scheme Scheme) ([]byte, error)
func (*BlockHeader) MarshalHeaderToBinary ¶ added in v0.2.0
func (b *BlockHeader) MarshalHeaderToBinary() ([]byte, error)
func (*BlockHeader) MarshalHeaderToProtobuf ¶ added in v0.5.0
func (b *BlockHeader) MarshalHeaderToProtobuf(scheme Scheme) ([]byte, error)
func (*BlockHeader) MarshalHeaderToProtobufWithoutSignature ¶ added in v0.5.0
func (b *BlockHeader) MarshalHeaderToProtobufWithoutSignature(scheme Scheme) ([]byte, error)
func (*BlockHeader) UnmarshalHeaderFromBinary ¶ added in v0.2.0
func (b *BlockHeader) UnmarshalHeaderFromBinary(data []byte, scheme Scheme) (err error)
type BlockID ¶
type BlockID struct {
// contains filtered or unexported fields
}
func MustBlockIDFromBase58 ¶ added in v0.8.0
func NewBlockIDFromBase58 ¶ added in v0.5.0
func NewBlockIDFromBytes ¶ added in v0.5.0
func NewBlockIDFromDigest ¶ added in v0.5.0
func NewBlockIDFromSignature ¶ added in v0.5.0
func (BlockID) Bytes ¶ added in v0.5.0
Bytes returns the slice of bytes of BlockID. If BlockID is not initialized, nil is returned.
func (BlockID) IsSignature ¶ added in v0.5.0
IsSignature returns true if BlockID is a Signature.
func (BlockID) IsValid ¶ added in v0.5.0
func (id BlockID) IsValid(version BlockVersion) bool
IsValid checks if BlockID is valid for the given BlockVersion. Uninitialized BlockID is always not valid.
func (BlockID) MarshalJSON ¶ added in v0.5.0
func (*BlockID) ReadFrom ¶ added in v0.11.0
ReadFrom reads the binary representation of BlockID from an io.Reader. It reads only the content of the ID (either crypto.Digest or crypto.Signature). ReadFrom does not process any additional data that might describe the type of the ID.
If the BlockID instance has been pre-initialized with a type, ReadFrom will read data of that specific type. If the BlockID instance has not been initialized, ReadFrom will attempt to read 32 bytes twice and determine the type of ID upon successful reading of those parts.
If the data size is less than 32 bytes or does not match the exact size of a crypto.Digest or crypto.Signature, an BlockIDDataSizeError error will be returned.
func (BlockID) ShortString ¶ added in v0.5.0
ShortString returns a short string representation of BlockID. If BlockID is not initialized, empty string is returned.
func (BlockID) Signature ¶ added in v0.5.0
Signature returns BlockID as a Signature. If BlockID is not a Signature, empty Signature is returned.
func (*BlockID) UnmarshalJSON ¶ added in v0.5.0
type BlockIDType ¶ added in v0.5.0
type BlockIDType byte
const ( SignatureID BlockIDType = iota + 1 DigestID )
type BlockIDsMessage ¶ added in v0.11.0
type BlockIDsMessage struct {
Blocks BlockIDsPayload
}
BlockIDsMessage is used for Signatures or hashes block ids.
func (*BlockIDsMessage) IsMessage ¶ added in v0.11.0
func (m *BlockIDsMessage) IsMessage()
func (*BlockIDsMessage) MarshalBinary ¶ added in v0.11.0
func (m *BlockIDsMessage) MarshalBinary() ([]byte, error)
func (*BlockIDsMessage) ReadFrom ¶ added in v0.11.0
func (m *BlockIDsMessage) ReadFrom(r io.Reader) (int64, error)
func (*BlockIDsMessage) SetPayload ¶ added in v0.11.0
func (m *BlockIDsMessage) SetPayload(payload Payload) (Message, error)
func (*BlockIDsMessage) UnmarshalBinary ¶ added in v0.11.0
func (m *BlockIDsMessage) UnmarshalBinary(data []byte) error
type BlockIDsPayload ¶ added in v0.11.0
type BlockIDsPayload []BlockID
func (*BlockIDsPayload) IsPayload ¶ added in v0.11.0
func (p *BlockIDsPayload) IsPayload()
type BlockInfo ¶ added in v0.3.0
type BlockInfo struct {
Version BlockVersion
Timestamp uint64
Height uint64
BaseTarget uint64
Generator WavesAddress
GeneratorPublicKey crypto.PublicKey
GenerationSignature B58Bytes
VRF B58Bytes
Rewards Rewards
}
func BlockInfoFromHeader ¶ added in v0.3.0
func BlockInfoFromHeader(header *BlockHeader, generator WavesAddress, height uint64, vrf []byte, rewards Rewards) (*BlockInfo, error)
func NewBlockInfo ¶ added in v0.10.6
func NewBlockInfo(version BlockVersion, timestamp, height, baseTarget uint64, generatorAddress WavesAddress, generatorPK crypto.PublicKey, generationSignature, vrf []byte, rewards Rewards) *BlockInfo
func (*BlockInfo) CopyGenerationSignature ¶ added in v0.10.6
func (*BlockInfo) CopyGeneratorPublicKey ¶ added in v0.10.6
func (*BlockInfo) IsEmptyGenerator ¶ added in v0.10.6
type BlockMarshaller ¶ added in v0.7.0
type BlockMarshaller struct {
// contains filtered or unexported fields
}
type BlockMessage ¶
type BlockMessage struct {
BlockBytes BytesPayload
}
BlockMessage represents Block message
func (*BlockMessage) IsMessage ¶ added in v0.11.0
func (m *BlockMessage) IsMessage()
func (*BlockMessage) MarshalBinary ¶
func (m *BlockMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes BlockMessage to binary form
func (*BlockMessage) ReadFrom ¶
func (m *BlockMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads BlockMessage from io.Reader
func (*BlockMessage) SetPayload ¶ added in v0.11.0
func (m *BlockMessage) SetPayload(payload Payload) (Message, error)
func (*BlockMessage) UnmarshalBinary ¶
func (m *BlockMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes BlockMessage from binary from
type BlockSnapshot ¶ added in v0.11.0
type BlockSnapshot struct {
TxSnapshots [][]AtomicSnapshot
}
func BlockSnapshotFromProtobuf ¶ added in v0.11.0
func BlockSnapshotFromProtobuf(scheme Scheme, blockSnapshot []*g.TransactionStateSnapshot) (BlockSnapshot, error)
func (*BlockSnapshot) AppendTxSnapshot ¶ added in v0.11.0
func (bs *BlockSnapshot) AppendTxSnapshot(txSnapshot []AtomicSnapshot)
func (*BlockSnapshot) AppendTxSnapshots ¶ added in v0.11.0
func (bs *BlockSnapshot) AppendTxSnapshots(txSnapshots [][]AtomicSnapshot)
func (BlockSnapshot) MarshalJSON ¶ added in v0.11.0
func (bs BlockSnapshot) MarshalJSON() ([]byte, error)
func (BlockSnapshot) MarshallBinary ¶ added in v0.11.0
func (bs BlockSnapshot) MarshallBinary() ([]byte, error)
func (BlockSnapshot) ToProtobuf ¶ added in v0.11.0
func (bs BlockSnapshot) ToProtobuf() ([]*g.TransactionStateSnapshot, error)
func (*BlockSnapshot) UnmarshalBinary ¶ added in v0.11.0
func (bs *BlockSnapshot) UnmarshalBinary(data []byte, scheme Scheme) error
func (*BlockSnapshot) UnmarshalBinaryImport ¶ added in v0.11.0
func (bs *BlockSnapshot) UnmarshalBinaryImport(data []byte, scheme Scheme) error
UnmarshalBinaryImport unmarshals block snapshot from binary data. It does not read block snapshot size from the data. It reads snapshots until the end of the data.
func (*BlockSnapshot) UnmarshalJSON ¶ added in v0.11.0
func (bs *BlockSnapshot) UnmarshalJSON(bytes []byte) error
type BlockSnapshotMessage ¶ added in v0.11.0
type BlockSnapshotMessage struct {
Bytes BytesPayload
}
func (*BlockSnapshotMessage) IsMessage ¶ added in v0.11.0
func (m *BlockSnapshotMessage) IsMessage()
func (*BlockSnapshotMessage) MarshalBinary ¶ added in v0.11.0
func (m *BlockSnapshotMessage) MarshalBinary() ([]byte, error)
func (*BlockSnapshotMessage) ReadFrom ¶ added in v0.11.0
func (m *BlockSnapshotMessage) ReadFrom(r io.Reader) (int64, error)
func (*BlockSnapshotMessage) SetPayload ¶ added in v0.11.0
func (m *BlockSnapshotMessage) SetPayload(payload Payload) (Message, error)
func (*BlockSnapshotMessage) UnmarshalBinary ¶ added in v0.11.0
func (m *BlockSnapshotMessage) UnmarshalBinary(data []byte) error
type BlockUpdatesInfo ¶ added in v0.11.0
type BlockUpdatesInfo struct {
Height uint64 `json:"height"`
VRF B58Bytes `json:"vrf"`
BlockID BlockID `json:"block_id"`
BlockHeader BlockHeader `json:"block_header"`
}
BlockUpdatesInfo Block updates.
type BlockVersion ¶ added in v0.3.0
type BlockVersion byte
const ( GenesisBlockVersion BlockVersion = iota + 1 PlainBlockVersion NgBlockVersion RewardBlockVersion ProtobufBlockVersion )
type BlockchainUpdatesPluginInfo ¶ added in v0.11.0
type BlockchainUpdatesPluginInfo struct {
// contains filtered or unexported fields
}
func NewBlockchainUpdatesPluginInfo ¶ added in v0.11.0
func NewBlockchainUpdatesPluginInfo(ctx context.Context, l2Address WavesAddress, bUpdatesChannel chan<- BUpdatesInfo, enableBlockchainUpdatesPlugin bool) *BlockchainUpdatesPluginInfo
func (*BlockchainUpdatesPluginInfo) Close ¶ added in v0.11.0
func (e *BlockchainUpdatesPluginInfo) Close()
func (*BlockchainUpdatesPluginInfo) IsBlockchainUpdatesEnabled ¶ added in v0.11.0
func (e *BlockchainUpdatesPluginInfo) IsBlockchainUpdatesEnabled() bool
func (*BlockchainUpdatesPluginInfo) IsReady ¶ added in v0.11.0
func (e *BlockchainUpdatesPluginInfo) IsReady() bool
func (*BlockchainUpdatesPluginInfo) L2ContractAddress ¶ added in v0.11.0
func (e *BlockchainUpdatesPluginInfo) L2ContractAddress() WavesAddress
func (*BlockchainUpdatesPluginInfo) MakeExtensionReady ¶ added in v0.11.0
func (e *BlockchainUpdatesPluginInfo) MakeExtensionReady()
func (*BlockchainUpdatesPluginInfo) WriteBUpdates ¶ added in v0.11.0
func (e *BlockchainUpdatesPluginInfo) WriteBUpdates(bUpdates BUpdatesInfo)
type BooleanArgument ¶ added in v0.3.0
type BooleanArgument struct {
Value bool
}
BooleanArgument represents a key-value pair that stores a bool value.
func (*BooleanArgument) BinarySize ¶ added in v0.5.0
func (a *BooleanArgument) BinarySize() int
func (*BooleanArgument) GetValueType ¶ added in v0.3.0
func (a *BooleanArgument) GetValueType() ArgumentValueType
GetValueType returns the data type (Boolean) of the argument.
func (*BooleanArgument) MarshalBinary ¶ added in v0.3.0
func (a *BooleanArgument) MarshalBinary() ([]byte, error)
MarshalBinary writes a byte representation of the boolean data entry.
func (*BooleanArgument) MarshalJSON ¶ added in v0.3.0
func (a *BooleanArgument) MarshalJSON() ([]byte, error)
MarshalJSON writes the argument to a JSON representation.
func (*BooleanArgument) Serialize ¶ added in v0.3.0
func (a *BooleanArgument) Serialize(s *serializer.Serializer) error
Serialize argument to its byte representation.
func (*BooleanArgument) UnmarshalBinary ¶ added in v0.3.0
func (a *BooleanArgument) UnmarshalBinary(data []byte) error
UnmarshalBinary reads a byte representation of the data entry.
func (*BooleanArgument) UnmarshalJSON ¶ added in v0.3.0
func (a *BooleanArgument) UnmarshalJSON(value []byte) error
UnmarshalJSON reads the entry from its JSON representation.
type BooleanDataEntry ¶
BooleanDataEntry represents a key-value pair that stores a bool value.
func (BooleanDataEntry) BinarySize ¶ added in v0.5.0
func (e BooleanDataEntry) BinarySize() int
func (BooleanDataEntry) GetKey ¶
func (e BooleanDataEntry) GetKey() string
GetKey returns the key of data entry.
func (BooleanDataEntry) GetValueType ¶
func (e BooleanDataEntry) GetValueType() DataValueType
GetValueType returns the data type (Boolean) of the entry.
func (BooleanDataEntry) MarshalBinary ¶
func (e BooleanDataEntry) MarshalBinary() ([]byte, error)
MarshalBinary writes a byte representation of the boolean data entry.
func (BooleanDataEntry) MarshalJSON ¶
func (e BooleanDataEntry) MarshalJSON() ([]byte, error)
MarshalJSON writes the data entry to a JSON representation.
func (BooleanDataEntry) MarshalValue ¶ added in v0.3.0
func (e BooleanDataEntry) MarshalValue() ([]byte, error)
MarshalValue writes a byte representation of the boolean data entry value.
func (*BooleanDataEntry) MarshaledValueSize ¶ added in v0.11.0
func (e *BooleanDataEntry) MarshaledValueSize() int
func (BooleanDataEntry) PayloadSize ¶ added in v0.10.0
func (e BooleanDataEntry) PayloadSize() int
func (*BooleanDataEntry) SetKey ¶ added in v0.3.0
func (e *BooleanDataEntry) SetKey(key string)
SetKey sets the key of data entry.
func (BooleanDataEntry) ToProtobuf ¶ added in v0.5.0
func (e BooleanDataEntry) ToProtobuf() *g.DataEntry
func (*BooleanDataEntry) UnmarshalBinary ¶
func (e *BooleanDataEntry) UnmarshalBinary(data []byte) error
UnmarshalBinary reads a byte representation of the data entry.
func (*BooleanDataEntry) UnmarshalJSON ¶
func (e *BooleanDataEntry) UnmarshalJSON(value []byte) error
UnmarshalJSON reads the entry from its JSON representation.
func (*BooleanDataEntry) UnmarshalValue ¶ added in v0.3.0
func (e *BooleanDataEntry) UnmarshalValue(data []byte) error
UnmarshalValue reads a byte representation of the data entry value.
func (BooleanDataEntry) Valid ¶ added in v0.3.0
func (e BooleanDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
func (*BooleanDataEntry) WriteValueTo ¶ added in v0.11.0
func (e *BooleanDataEntry) WriteValueTo(w io.Writer) error
type Burn ¶ added in v0.3.0
type Burn struct {
SenderPK crypto.PublicKey `json:"senderPublicKey"`
AssetID crypto.Digest `json:"assetId"`
Amount uint64 `json:"amount"`
Timestamp uint64 `json:"timestamp,omitempty"`
Fee uint64 `json:"fee"`
}
func (Burn) BinarySize ¶ added in v0.5.0
func (Burn) GetFeeAsset ¶ added in v0.11.0
func (b Burn) GetFeeAsset() OptionalAsset
func (Burn) GetSenderPK ¶ added in v0.3.0
func (Burn) GetTimestamp ¶ added in v0.3.0
func (Burn) ToProtobuf ¶ added in v0.5.0
func (b Burn) ToProtobuf() *g.Transaction_Burn
func (*Burn) UnmarshalBinary ¶ added in v0.5.0
type BurnScriptAction ¶ added in v0.5.0
type BurnScriptAction struct {
Sender *crypto.PublicKey
AssetID crypto.Digest // assetId
Quantity int64 // quantity
}
BurnScriptAction is an action to burn some assets in response to script invocation.
func (*BurnScriptAction) GroupType ¶ added in v0.10.0
func (a *BurnScriptAction) GroupType() ScriptActionGroupType
func (*BurnScriptAction) SenderPK ¶ added in v0.9.0
func (a *BurnScriptAction) SenderPK() *crypto.PublicKey
func (*BurnScriptAction) ToProtobuf ¶ added in v0.5.0
func (a *BurnScriptAction) ToProtobuf() *g.InvokeScriptResult_Burn
type BurnWithProofs ¶ added in v0.5.0
type BurnWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
Burn
}
BurnWithProofs same as BurnWithSig but version 2 with Proofs.
func NewUnsignedBurnWithProofs ¶ added in v0.5.0
func NewUnsignedBurnWithProofs(v byte, senderPK crypto.PublicKey, assetID crypto.Digest, amount, timestamp, fee uint64) *BurnWithProofs
NewUnsignedBurnWithProofs creates new BurnWithProofs transaction without proofs and ID.
func (BurnWithProofs) BinarySize ¶ added in v0.5.0
func (tx BurnWithProofs) BinarySize() int
func (*BurnWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *BurnWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
func (*BurnWithProofs) Clone ¶ added in v0.5.0
func (tx *BurnWithProofs) Clone() *BurnWithProofs
func (*BurnWithProofs) GenerateID ¶ added in v0.5.0
func (tx *BurnWithProofs) GenerateID(scheme Scheme) error
func (*BurnWithProofs) GetID ¶ added in v0.5.0
func (tx *BurnWithProofs) GetID(scheme Scheme) ([]byte, error)
func (BurnWithProofs) GetType ¶ added in v0.11.0
func (tx BurnWithProofs) GetType() TransactionType
func (BurnWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx BurnWithProofs) GetTypeInfo() TransactionTypeInfo
func (BurnWithProofs) GetVersion ¶ added in v0.5.0
func (tx BurnWithProofs) GetVersion() byte
func (*BurnWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *BurnWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary writes BurnWithProofs transaction to its byte representation.
func (*BurnWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *BurnWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*BurnWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *BurnWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*BurnWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *BurnWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*BurnWithProofs) Sign ¶ added in v0.5.0
func (tx *BurnWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*BurnWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *BurnWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*BurnWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *BurnWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*BurnWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *BurnWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads BurnWithProofs from its byte representation.
func (*BurnWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *BurnWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*BurnWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *BurnWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*BurnWithProofs) Validate ¶ added in v0.8.0
func (tx *BurnWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type BurnWithSig ¶ added in v0.5.0
type BurnWithSig struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
Burn
}
BurnWithSig transaction allows to decrease the total supply of the existing asset. Asset must be reissuable.
func NewUnsignedBurnWithSig ¶ added in v0.5.0
func NewUnsignedBurnWithSig(senderPK crypto.PublicKey, assetID crypto.Digest, amount, timestamp, fee uint64) *BurnWithSig
NewUnsignedBurnWithSig creates new BurnWithSig transaction with no signature and ID.
func (BurnWithSig) BinarySize ¶ added in v0.5.0
func (tx BurnWithSig) BinarySize() int
func (*BurnWithSig) BodyMarshalBinary ¶ added in v0.5.0
func (tx *BurnWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
func (*BurnWithSig) Clone ¶ added in v0.5.0
func (tx *BurnWithSig) Clone() *BurnWithSig
func (*BurnWithSig) GenerateID ¶ added in v0.5.0
func (tx *BurnWithSig) GenerateID(scheme Scheme) error
func (*BurnWithSig) GetID ¶ added in v0.5.0
func (tx *BurnWithSig) GetID(scheme Scheme) ([]byte, error)
func (BurnWithSig) GetType ¶ added in v0.11.0
func (tx BurnWithSig) GetType() TransactionType
func (BurnWithSig) GetTypeInfo ¶ added in v0.5.0
func (tx BurnWithSig) GetTypeInfo() TransactionTypeInfo
func (BurnWithSig) GetVersion ¶ added in v0.5.0
func (tx BurnWithSig) GetVersion() byte
func (*BurnWithSig) MarshalBinary ¶ added in v0.5.0
func (tx *BurnWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves transaction to
func (*BurnWithSig) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *BurnWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*BurnWithSig) MarshalToProtobuf ¶ added in v0.5.0
func (tx *BurnWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*BurnWithSig) MerkleBytes ¶ added in v0.10.0
func (tx *BurnWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
func (*BurnWithSig) Sign ¶ added in v0.5.0
func (tx *BurnWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign calculates and sets signature and ID of the transaction.
func (*BurnWithSig) ToProtobuf ¶ added in v0.5.0
func (tx *BurnWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*BurnWithSig) ToProtobufSigned ¶ added in v0.5.0
func (tx *BurnWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*BurnWithSig) UnmarshalBinary ¶ added in v0.5.0
func (tx *BurnWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads transaction form its binary representation.
func (*BurnWithSig) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *BurnWithSig) UnmarshalFromProtobuf(data []byte) error
func (*BurnWithSig) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *BurnWithSig) UnmarshalSignedFromProtobuf(data []byte) error
func (*BurnWithSig) Validate ¶ added in v0.8.0
func (tx *BurnWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
type ByteVector ¶ added in v0.10.2
type ByteVector []byte
func (ByteVector) Base64String ¶ added in v0.11.0
func (v ByteVector) Base64String() string
func (ByteVector) Bytes ¶ added in v0.10.2
func (v ByteVector) Bytes() []byte
func (ByteVector) MarshalJSON ¶ added in v0.10.2
func (v ByteVector) MarshalJSON() ([]byte, error)
MarshalJSON writes ByteVector Value as JSON string
func (ByteVector) String ¶ added in v0.10.2
func (v ByteVector) String() string
String represents underlying bytes as Base58 string or Base64 string with additional prefix.
func (*ByteVector) UnmarshalJSON ¶ added in v0.10.2
func (v *ByteVector) UnmarshalJSON(value []byte) error
UnmarshalJSON reads ByteVector from JSON string
type BytesPayload ¶ added in v0.11.0
type BytesPayload []byte
func (*BytesPayload) IsPayload ¶ added in v0.11.0
func (p *BytesPayload) IsPayload()
type CancelledLeaseSnapshot ¶ added in v0.11.0
func (CancelledLeaseSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s CancelledLeaseSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (CancelledLeaseSnapshot) Apply ¶ added in v0.11.0
func (s CancelledLeaseSnapshot) Apply(a SnapshotApplier) error
func (*CancelledLeaseSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *CancelledLeaseSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_CancelledLease) error
func (CancelledLeaseSnapshot) ToProtobuf ¶ added in v0.11.0
func (s CancelledLeaseSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_CancelledLease, error)
type ChallengedHeader ¶ added in v0.11.0
type ChallengedHeader struct {
Timestamp uint64 `json:"timestamp"`
NxtConsensus
Features []int16 `json:"features,omitempty"`
GeneratorPublicKey crypto.PublicKey `json:"generatorPublicKey"`
RewardVote int64 `json:"desiredReward"`
StateHash crypto.Digest `json:"stateHash"`
BlockSignature crypto.Signature `json:"headerSignature"`
}
func (*ChallengedHeader) ToProtobuf ¶ added in v0.11.0
func (ch *ChallengedHeader) ToProtobuf() (*g.Block_Header_ChallengedHeader, error)
type ChecksumReader ¶ added in v0.11.0
type ChecksumReader struct {
// contains filtered or unexported fields
}
func NewChecksumReader ¶ added in v0.11.0
func NewChecksumReader(r io.Reader) (*ChecksumReader, error)
func (*ChecksumReader) Checksum ¶ added in v0.11.0
func (r *ChecksumReader) Checksum() [payloadChecksumSize]byte
Checksum returns the checksum of the data read so far.
type CommitToGenerationWithProofs ¶ added in v0.11.0
type CommitToGenerationWithProofs struct {
ID *crypto.Digest `json:"id,omitempty"`
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
GenerationPeriodStart uint32 `json:"generationPeriodStart"`
EndorserPublicKey bls.PublicKey `json:"endorserPublicKey"`
CommitmentSignature bls.Signature `json:"commitmentSignature"`
}
CommitToGenerationWithProofs is the transaction that every block generator should issue in order to participate in the block generation process. _Proof of BLS key possession_ is included in the transaction to prove that the generator owns the private key corresponding to the public key that is used in the generation process. Content of fields `GenerationPeriodStart` and `EndorserPublicKey` are concatenated and signed, the signature is included in the field `CommitmentSignature`. Fee for this transaction is paid in Waves only.
func NewUnsignedCommitToGenerationWithProofs ¶ added in v0.11.0
func NewUnsignedCommitToGenerationWithProofs( v byte, senderPK crypto.PublicKey, generationPeriodStart uint32, endorserPK bls.PublicKey, commitmentSignature bls.Signature, fee, timestamp uint64, ) *CommitToGenerationWithProofs
NewUnsignedCommitToGenerationWithProofs creates new CommitToGenerationWithProofs transaction without calculation of ID and signature.
func (*CommitToGenerationWithProofs) BinarySize ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) BinarySize() int
func (*CommitToGenerationWithProofs) BodyMarshalBinary ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*CommitToGenerationWithProofs) GenerateID ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) GenerateID(scheme Scheme) error
func (CommitToGenerationWithProofs) GetFee ¶ added in v0.11.0
func (tx CommitToGenerationWithProofs) GetFee() uint64
func (CommitToGenerationWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx CommitToGenerationWithProofs) GetFeeAsset() OptionalAsset
func (*CommitToGenerationWithProofs) GetID ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) GetID(scheme Scheme) ([]byte, error)
func (CommitToGenerationWithProofs) GetSender ¶ added in v0.11.0
func (tx CommitToGenerationWithProofs) GetSender(scheme Scheme) (Address, error)
func (CommitToGenerationWithProofs) GetSenderPK ¶ added in v0.11.0
func (tx CommitToGenerationWithProofs) GetSenderPK() crypto.PublicKey
func (CommitToGenerationWithProofs) GetTimestamp ¶ added in v0.11.0
func (tx CommitToGenerationWithProofs) GetTimestamp() uint64
func (CommitToGenerationWithProofs) GetType ¶ added in v0.11.0
func (tx CommitToGenerationWithProofs) GetType() TransactionType
func (CommitToGenerationWithProofs) GetTypeInfo ¶ added in v0.11.0
func (tx CommitToGenerationWithProofs) GetTypeInfo() TransactionTypeInfo
func (CommitToGenerationWithProofs) GetVersion ¶ added in v0.11.0
func (tx CommitToGenerationWithProofs) GetVersion() byte
func (*CommitToGenerationWithProofs) MarshalBinary ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) MarshalBinary(Scheme) ([]byte, error)
func (*CommitToGenerationWithProofs) MarshalSignedToProtobuf ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*CommitToGenerationWithProofs) MarshalToProtobuf ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*CommitToGenerationWithProofs) MerkleBytes ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*CommitToGenerationWithProofs) Sign ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) Sign(scheme Scheme, sk crypto.SecretKey) error
func (*CommitToGenerationWithProofs) ToProtobuf ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*CommitToGenerationWithProofs) ToProtobufSigned ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*CommitToGenerationWithProofs) UnmarshalBinary ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) UnmarshalBinary([]byte, Scheme) error
func (*CommitToGenerationWithProofs) UnmarshalFromProtobuf ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*CommitToGenerationWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*CommitToGenerationWithProofs) Validate ¶ added in v0.11.0
func (tx *CommitToGenerationWithProofs) Validate(_ TransactionValidationParams) (Transaction, error)
type CreateAlias ¶ added in v0.3.0
type CreateAlias struct {
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Alias Alias `json:"alias"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
func (CreateAlias) BinarySize ¶ added in v0.5.0
func (ca CreateAlias) BinarySize() int
func (CreateAlias) GetFee ¶ added in v0.3.0
func (ca CreateAlias) GetFee() uint64
func (CreateAlias) GetFeeAsset ¶ added in v0.11.0
func (ca CreateAlias) GetFeeAsset() OptionalAsset
func (CreateAlias) GetSender ¶ added in v0.10.0
func (ca CreateAlias) GetSender(scheme Scheme) (Address, error)
func (CreateAlias) GetSenderPK ¶ added in v0.3.0
func (ca CreateAlias) GetSenderPK() crypto.PublicKey
func (CreateAlias) GetTimestamp ¶ added in v0.3.0
func (ca CreateAlias) GetTimestamp() uint64
func (CreateAlias) ToProtobuf ¶ added in v0.5.0
func (ca CreateAlias) ToProtobuf() *g.Transaction_CreateAlias
func (*CreateAlias) UnmarshalBinary ¶ added in v0.5.0
func (ca *CreateAlias) UnmarshalBinary(data []byte) error
type CreateAliasWithProofs ¶ added in v0.5.0
type CreateAliasWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
CreateAlias
}
func NewUnsignedCreateAliasWithProofs ¶ added in v0.5.0
func (CreateAliasWithProofs) BinarySize ¶ added in v0.5.0
func (tx CreateAliasWithProofs) BinarySize() int
func (*CreateAliasWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*CreateAliasWithProofs) Clone ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) Clone() *CreateAliasWithProofs
func (*CreateAliasWithProofs) GenerateID ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) GenerateID(scheme Scheme) error
func (*CreateAliasWithProofs) GetID ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) GetID(scheme Scheme) ([]byte, error)
func (CreateAliasWithProofs) GetType ¶ added in v0.11.0
func (tx CreateAliasWithProofs) GetType() TransactionType
func (CreateAliasWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx CreateAliasWithProofs) GetTypeInfo() TransactionTypeInfo
func (CreateAliasWithProofs) GetVersion ¶ added in v0.5.0
func (tx CreateAliasWithProofs) GetVersion() byte
func (*CreateAliasWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves the transaction to its binary representation.
func (*CreateAliasWithProofs) MarshalJSON ¶ added in v0.10.3
func (tx *CreateAliasWithProofs) MarshalJSON() ([]byte, error)
func (*CreateAliasWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*CreateAliasWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*CreateAliasWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *CreateAliasWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*CreateAliasWithProofs) Sign ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*CreateAliasWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*CreateAliasWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*CreateAliasWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads the transaction from bytes slice.
func (*CreateAliasWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*CreateAliasWithProofs) UnmarshalJSON
deprecated
added in
v0.5.0
func (tx *CreateAliasWithProofs) UnmarshalJSON(data []byte) error
Deprecated: use UnmarshalJSONWithScheme.
func (*CreateAliasWithProofs) UnmarshalJSONWithScheme ¶ added in v0.10.4
func (tx *CreateAliasWithProofs) UnmarshalJSONWithScheme(data []byte, scheme Scheme) error
func (*CreateAliasWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*CreateAliasWithProofs) Validate ¶ added in v0.8.0
func (tx *CreateAliasWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type CreateAliasWithSig ¶ added in v0.5.0
type CreateAliasWithSig struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
CreateAlias
}
func NewUnsignedCreateAliasWithSig ¶ added in v0.5.0
func NewUnsignedCreateAliasWithSig(senderPK crypto.PublicKey, alias Alias, fee, timestamp uint64) *CreateAliasWithSig
func (CreateAliasWithSig) BinarySize ¶ added in v0.5.0
func (tx CreateAliasWithSig) BinarySize() int
func (*CreateAliasWithSig) BodyMarshalBinary ¶ added in v0.5.0
func (tx *CreateAliasWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
func (*CreateAliasWithSig) Clone ¶ added in v0.5.0
func (tx *CreateAliasWithSig) Clone() *CreateAliasWithSig
func (*CreateAliasWithSig) GenerateID ¶ added in v0.5.0
func (tx *CreateAliasWithSig) GenerateID(scheme Scheme) error
func (*CreateAliasWithSig) GetID ¶ added in v0.5.0
func (tx *CreateAliasWithSig) GetID(scheme Scheme) ([]byte, error)
func (CreateAliasWithSig) GetType ¶ added in v0.11.0
func (tx CreateAliasWithSig) GetType() TransactionType
func (CreateAliasWithSig) GetTypeInfo ¶ added in v0.5.0
func (tx CreateAliasWithSig) GetTypeInfo() TransactionTypeInfo
func (CreateAliasWithSig) GetVersion ¶ added in v0.5.0
func (tx CreateAliasWithSig) GetVersion() byte
func (*CreateAliasWithSig) MarshalBinary ¶ added in v0.5.0
func (tx *CreateAliasWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
func (*CreateAliasWithSig) MarshalJSON ¶ added in v0.10.3
func (tx *CreateAliasWithSig) MarshalJSON() ([]byte, error)
func (*CreateAliasWithSig) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*CreateAliasWithSig) MarshalToProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*CreateAliasWithSig) MerkleBytes ¶ added in v0.10.0
func (tx *CreateAliasWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
func (*CreateAliasWithSig) Sign ¶ added in v0.5.0
func (tx *CreateAliasWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
func (*CreateAliasWithSig) ToProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*CreateAliasWithSig) ToProtobufSigned ¶ added in v0.5.0
func (tx *CreateAliasWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*CreateAliasWithSig) UnmarshalBinary ¶ added in v0.5.0
func (tx *CreateAliasWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
func (*CreateAliasWithSig) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithSig) UnmarshalFromProtobuf(data []byte) error
func (*CreateAliasWithSig) UnmarshalJSON
deprecated
added in
v0.5.0
func (tx *CreateAliasWithSig) UnmarshalJSON(data []byte) error
Deprecated: use UnmarshalJSONWithScheme.
func (*CreateAliasWithSig) UnmarshalJSONWithScheme ¶ added in v0.10.4
func (tx *CreateAliasWithSig) UnmarshalJSONWithScheme(data []byte, scheme Scheme) error
func (*CreateAliasWithSig) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *CreateAliasWithSig) UnmarshalSignedFromProtobuf(data []byte) error
func (*CreateAliasWithSig) Validate ¶ added in v0.8.0
func (tx *CreateAliasWithSig) Validate(params TransactionValidationParams) (Transaction, error)
type DataEntries ¶ added in v0.2.0
type DataEntries []DataEntry
DataEntries the slice of various entries of DataTransaction
func (DataEntries) BinarySize ¶ added in v0.10.0
func (e DataEntries) BinarySize() int
BinarySize returns summary binary size of all entries.
func (DataEntries) Len ¶ added in v0.11.0
func (e DataEntries) Len() int
func (DataEntries) PayloadSize ¶ added in v0.10.0
func (e DataEntries) PayloadSize() int
PayloadSize returns summary payload size of all entries.
func (DataEntries) Swap ¶ added in v0.11.0
func (e DataEntries) Swap(i int, j int)
func (*DataEntries) UnmarshalJSON ¶ added in v0.2.0
func (e *DataEntries) UnmarshalJSON(data []byte) error
UnmarshalJSON special method to unmarshal DataEntries from JSON with detection of real type of each entry.
func (DataEntries) Valid ¶ added in v0.10.0
func (e DataEntries) Valid(forbidEmptyKey, utf16KeyLen bool) error
Valid calls DataEntry.Valid for each entry.
type DataEntriesSnapshot ¶ added in v0.11.0
type DataEntriesSnapshot struct {
Address WavesAddress `json:"address"`
DataEntries DataEntries `json:"data"`
}
func (DataEntriesSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s DataEntriesSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (DataEntriesSnapshot) Apply ¶ added in v0.11.0
func (s DataEntriesSnapshot) Apply(a SnapshotApplier) error
func (*DataEntriesSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *DataEntriesSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_AccountData) error
func (DataEntriesSnapshot) ToProtobuf ¶ added in v0.11.0
func (s DataEntriesSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_AccountData, error)
type DataEntry ¶
type DataEntry interface {
GetKey() string
SetKey(string)
GetValueType() DataValueType
MarshalValue() ([]byte, error)
UnmarshalValue([]byte) error
MarshaledValueSize() int
WriteValueTo(w io.Writer) error
MarshalBinary() ([]byte, error)
UnmarshalBinary([]byte) error
Valid(forbidEmptyKey, utf16KeyLen bool) error
BinarySize() int
PayloadSize() int
ToProtobuf() *g.DataEntry
}
DataEntry is a common interface of all types of data entries. The interface is used to store different types of data entries in one slice.
func NewDataEntryFromJSON ¶ added in v0.10.0
func NewDataEntryFromValueBytes ¶ added in v0.3.0
type DataEntryScriptAction ¶ added in v0.5.0
DataEntryScriptAction is an action to manipulate account data state.
func (*DataEntryScriptAction) GroupType ¶ added in v0.10.0
func (a *DataEntryScriptAction) GroupType() ScriptActionGroupType
func (*DataEntryScriptAction) SenderPK ¶ added in v0.9.0
func (a *DataEntryScriptAction) SenderPK() *crypto.PublicKey
func (*DataEntryScriptAction) ToProtobuf ¶ added in v0.5.0
func (a *DataEntryScriptAction) ToProtobuf() *g.DataEntry
type DataValueType ¶ added in v0.3.0
type DataValueType byte
DataValueType is an alias for byte that encodes the value type.
const ( DataInteger DataValueType = iota DataBoolean DataBinary DataString DataDelete = DataValueType(0xff) )
Supported value types.
func (DataValueType) String ¶ added in v0.3.0
func (vt DataValueType) String() string
String translates ValueType value to human readable name.
type DataWithProofs ¶ added in v0.5.0
type DataWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Entries DataEntries `json:"data"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
DataWithProofs is first version of the transaction that puts data to the key-value storage of an account.
func NewUnsignedDataWithProofs ¶ added in v0.10.0
func NewUnsignedDataWithProofs(v byte, senderPK crypto.PublicKey, fee, timestamp uint64) *DataWithProofs
func (*DataWithProofs) AppendEntry ¶ added in v0.5.0
func (tx *DataWithProofs) AppendEntry(entry DataEntry) error
AppendEntry adds the entry to the transaction.
func (DataWithProofs) BinarySize ¶ added in v0.5.0
func (tx DataWithProofs) BinarySize() int
func (*DataWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *DataWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*DataWithProofs) Clone ¶ added in v0.5.0
func (tx *DataWithProofs) Clone() *DataWithProofs
func (*DataWithProofs) GenerateID ¶ added in v0.5.0
func (tx *DataWithProofs) GenerateID(scheme Scheme) error
func (DataWithProofs) GetFee ¶ added in v0.5.0
func (tx DataWithProofs) GetFee() uint64
func (DataWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx DataWithProofs) GetFeeAsset() OptionalAsset
func (*DataWithProofs) GetID ¶ added in v0.5.0
func (tx *DataWithProofs) GetID(scheme Scheme) ([]byte, error)
func (DataWithProofs) GetSender ¶ added in v0.10.0
func (tx DataWithProofs) GetSender(scheme Scheme) (Address, error)
func (DataWithProofs) GetSenderPK ¶ added in v0.5.0
func (tx DataWithProofs) GetSenderPK() crypto.PublicKey
func (DataWithProofs) GetTimestamp ¶ added in v0.5.0
func (tx DataWithProofs) GetTimestamp() uint64
func (DataWithProofs) GetType ¶ added in v0.11.0
func (tx DataWithProofs) GetType() TransactionType
func (DataWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx DataWithProofs) GetTypeInfo() TransactionTypeInfo
func (DataWithProofs) GetVersion ¶ added in v0.5.0
func (tx DataWithProofs) GetVersion() byte
func (*DataWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *DataWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves the transaction to bytes.
func (*DataWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *DataWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*DataWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *DataWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*DataWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *DataWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*DataWithProofs) ProtoPayload ¶ added in v0.8.8
func (tx *DataWithProofs) ProtoPayload() *g.DataTransactionData
func (*DataWithProofs) ProtoPayloadSize ¶ added in v0.10.0
func (tx *DataWithProofs) ProtoPayloadSize() int
func (*DataWithProofs) Sign ¶ added in v0.5.0
func (tx *DataWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign use given secret key to calculate signature of the transaction.
func (*DataWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *DataWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*DataWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *DataWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*DataWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *DataWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads the transaction from the bytes.
func (*DataWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *DataWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*DataWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *DataWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*DataWithProofs) Validate ¶ added in v0.8.0
func (tx *DataWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type DeleteDataEntry ¶ added in v0.5.0
type DeleteDataEntry struct {
Key string
}
DeleteDataEntry structure stores the key that should be removed from state storage.
func (DeleteDataEntry) BinarySize ¶ added in v0.5.0
func (e DeleteDataEntry) BinarySize() int
func (DeleteDataEntry) GetKey ¶ added in v0.5.0
func (e DeleteDataEntry) GetKey() string
GetKey returns the key of key-value pair.
func (DeleteDataEntry) GetValueType ¶ added in v0.5.0
func (e DeleteDataEntry) GetValueType() DataValueType
GetValueType returns the type of value in key-value entry.
func (DeleteDataEntry) MarshalBinary ¶ added in v0.5.0
func (e DeleteDataEntry) MarshalBinary() ([]byte, error)
MarshalBinary converts the data entry to its byte representation.
func (DeleteDataEntry) MarshalJSON ¶ added in v0.5.0
func (e DeleteDataEntry) MarshalJSON() ([]byte, error)
MarshalJSON writes the entry to its JSON representation.
func (DeleteDataEntry) MarshalValue ¶ added in v0.5.0
func (e DeleteDataEntry) MarshalValue() ([]byte, error)
MarshalValue converts the data entry value to its byte representation.
func (*DeleteDataEntry) MarshaledValueSize ¶ added in v0.11.0
func (e *DeleteDataEntry) MarshaledValueSize() int
func (DeleteDataEntry) PayloadSize ¶ added in v0.10.0
func (e DeleteDataEntry) PayloadSize() int
func (*DeleteDataEntry) SetKey ¶ added in v0.5.0
func (e *DeleteDataEntry) SetKey(key string)
SetKey sets the key of data entry.
func (DeleteDataEntry) ToProtobuf ¶ added in v0.5.0
func (e DeleteDataEntry) ToProtobuf() *g.DataEntry
func (*DeleteDataEntry) UnmarshalBinary ¶ added in v0.5.0
func (e *DeleteDataEntry) UnmarshalBinary(data []byte) error
UnmarshalBinary reads StringDataEntry structure from bytes.
func (*DeleteDataEntry) UnmarshalJSON ¶ added in v0.5.0
func (e *DeleteDataEntry) UnmarshalJSON(value []byte) error
UnmarshalJSON reads the entry from JSON.
func (*DeleteDataEntry) UnmarshalValue ¶ added in v0.5.0
func (e *DeleteDataEntry) UnmarshalValue(data []byte) error
UnmarshalValue checks DeleteDataEntry value type is set.
func (DeleteDataEntry) Valid ¶ added in v0.5.0
func (e DeleteDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
func (*DeleteDataEntry) WriteValueTo ¶ added in v0.11.0
func (e *DeleteDataEntry) WriteValueTo(w io.Writer) error
type DigestWrapped ¶ added in v0.6.0
DigestWrapped is required for state hashes API. The quickest way to use Hex for hashes in JSON in this particular case.
func (DigestWrapped) MarshalJSON ¶ added in v0.6.0
func (d DigestWrapped) MarshalJSON() ([]byte, error)
func (*DigestWrapped) UnmarshalJSON ¶ added in v0.6.0
func (d *DigestWrapped) UnmarshalJSON(value []byte) error
type EmptyPayload ¶ added in v0.11.0
type EmptyPayload struct{}
func (*EmptyPayload) IsPayload ¶ added in v0.11.0
func (p *EmptyPayload) IsPayload()
type EndorseBlock ¶ added in v0.11.0
type EndorseBlock struct {
EndorserIndex int32 `json:"endorserIndex"`
FinalizedBlockID BlockID `json:"finalizedBlockID"`
FinalizedBlockHeight uint32 `json:"finalizedBlockHeight"`
EndorsedBlockID BlockID `json:"endorsedBlockId"`
Signature bls.Signature `json:"signature"`
}
func (*EndorseBlock) EndorsementMessage ¶ added in v0.11.0
func (e *EndorseBlock) EndorsementMessage() ([]byte, error)
func (*EndorseBlock) Marshal ¶ added in v0.11.0
func (e *EndorseBlock) Marshal() ([]byte, error)
func (*EndorseBlock) ToProtobuf ¶ added in v0.11.0
func (e *EndorseBlock) ToProtobuf() *g.EndorseBlock
func (*EndorseBlock) UnmarshalFromProtobuf ¶ added in v0.11.0
func (e *EndorseBlock) UnmarshalFromProtobuf(data []byte) error
type EndorseBlockMessage ¶ added in v0.11.0
type EndorseBlockMessage struct {
Bytes BytesPayload
}
func (*EndorseBlockMessage) IsMessage ¶ added in v0.11.0
func (m *EndorseBlockMessage) IsMessage()
func (*EndorseBlockMessage) MarshalBinary ¶ added in v0.11.0
func (m *EndorseBlockMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes EndorseBlockMessage to binary form.
func (*EndorseBlockMessage) ReadFrom ¶ added in v0.11.0
func (m *EndorseBlockMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads EndorseBlockMessage from io.Reader.
func (*EndorseBlockMessage) SetPayload ¶ added in v0.11.0
func (m *EndorseBlockMessage) SetPayload(payload Payload) (Message, error)
func (*EndorseBlockMessage) UnmarshalBinary ¶ added in v0.11.0
func (m *EndorseBlockMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes EndorseBlockMessage from binary form.
type EnrichedFullAssetInfo ¶ added in v0.10.5
type EnrichedFullAssetInfo struct {
FullAssetInfo
SequenceInBlock uint32
}
type EthereumAccessList ¶ added in v0.10.0
type EthereumAccessList []EthereumAccessTuple
EthereumAccessList is an EIP-2930 access list.
type EthereumAccessListTx ¶ added in v0.10.0
type EthereumAccessListTx struct {
ChainID *big.Int // destination chain ID
Nonce uint64 // nonce of sender account
GasPrice *big.Int // wei per gas
Gas uint64 // gas limit
To *EthereumAddress // nil value means contract creation
Value *big.Int // wei amount
Data []byte // contract invocation input data
AccessList EthereumAccessList // EIP-2930 access list
V, R, S *big.Int // signature values
}
EthereumAccessListTx is the data of EIP-2930 access list transactions.
func (*EthereumAccessListTx) DecodeRLP ¶ added in v0.10.0
func (tx *EthereumAccessListTx) DecodeRLP(rlpData []byte) error
type EthereumAccessTuple ¶ added in v0.10.0
type EthereumAccessTuple struct {
Address EthereumAddress `json:"address"`
StorageKeys []EthereumHash `json:"storageKeys"`
}
EthereumAccessTuple is the element type of an access list.
type EthereumAddress ¶ added in v0.10.0
type EthereumAddress [EthereumAddressSize]byte
EthereumAddress is the first 20 bytes of Public Key's hash for the Waves address, or the 20 bytes of an Ethereum address.
func BytesToEthereumAddress ¶ added in v0.10.0
func BytesToEthereumAddress(b []byte) EthereumAddress
BytesToEthereumAddress returns EthereumAddress with value b. If b is larger than len(h), b will be cropped from the left.
func ExtractEthereumSender ¶ added in v0.10.0
func ExtractEthereumSender(signer EthereumSigner, tx *EthereumTransaction) (EthereumAddress, error)
func NewEthereumAddressFromBytes ¶ added in v0.10.0
func NewEthereumAddressFromBytes(b []byte) (EthereumAddress, error)
func NewEthereumAddressFromHexString ¶ added in v0.10.0
func NewEthereumAddressFromHexString(s string) (EthereumAddress, error)
func (EthereumAddress) Bytes ¶ added in v0.10.0
func (ea EthereumAddress) Bytes() []byte
Bytes converts the fixed-length byte array of the EthereumAddress to a slice of bytes.
func (EthereumAddress) Equal ¶ added in v0.10.0
func (ea EthereumAddress) Equal(address Address) bool
func (EthereumAddress) Hash ¶ added in v0.10.0
func (ea EthereumAddress) Hash() EthereumHash
Hash converts an address to a EthereumHash by left-padding it with zeros.
func (EthereumAddress) Hex ¶ added in v0.10.0
func (ea EthereumAddress) Hex() string
func (EthereumAddress) ID ¶ added in v0.10.0
func (ea EthereumAddress) ID() AddressID
func (EthereumAddress) MarshalJSON ¶ added in v0.10.0
func (ea EthereumAddress) MarshalJSON() ([]byte, error)
func (EthereumAddress) String ¶ added in v0.10.0
func (ea EthereumAddress) String() string
func (EthereumAddress) ToWavesAddress ¶ added in v0.10.0
func (ea EthereumAddress) ToWavesAddress(scheme Scheme) (WavesAddress, error)
func (*EthereumAddress) UnmarshalJSON ¶ added in v0.10.0
func (ea *EthereumAddress) UnmarshalJSON(bytes []byte) error
type EthereumDynamicFeeTx ¶ added in v0.10.0
type EthereumDynamicFeeTx struct {
ChainID *big.Int // destination chain ID
Nonce uint64 // nonce of sender account
GasTipCap *big.Int // EIP-1559 value
GasFeeCap *big.Int // EIP-1559 value
Gas uint64 // gas limit
To *EthereumAddress // nil means contract creation
Value *big.Int // wei amount
Data []byte // contract invocation input data
AccessList EthereumAccessList // EIP-2930 access list
V, R, S *big.Int // signature values
}
func (*EthereumDynamicFeeTx) DecodeRLP ¶ added in v0.10.0
func (tx *EthereumDynamicFeeTx) DecodeRLP(rlpData []byte) error
type EthereumHash ¶ added in v0.10.0
type EthereumHash [EthereumHashSize]byte
EthereumHash represents the 32 byte Keccak256 hash of arbitrary data.
func BytesToEthereumHash ¶ added in v0.10.0
func BytesToEthereumHash(b []byte) EthereumHash
BytesToEthereumHash sets b to hash. If b is larger than len(h), b will be cropped from the left.
func Keccak256EthereumHash ¶ added in v0.10.0
func Keccak256EthereumHash(data []byte) EthereumHash
Keccak256EthereumHash calculates and returns the Keccak256 hash of the input data, converting it to an EthereumHash data structure.
func (EthereumHash) Bytes ¶ added in v0.10.0
func (h EthereumHash) Bytes() []byte
Bytes converts the fixed-length byte array of the EthereumHash to a slice of bytes.
func (EthereumHash) Hex ¶ added in v0.10.0
func (h EthereumHash) Hex() string
Hex converts a hash to a hex string.
func (EthereumHash) MarshalJSON ¶ added in v0.10.0
func (h EthereumHash) MarshalJSON() ([]byte, error)
func (*EthereumHash) SetBytes ¶ added in v0.10.0
func (h *EthereumHash) SetBytes(b []byte)
SetBytes sets the hash to the value of b. If b is larger than len(h), b will be cropped from the left.
func (EthereumHash) String ¶ added in v0.10.0
func (h EthereumHash) String() string
String implements the stringer interface and is used also by the logger when doing full logging into a file.
func (*EthereumHash) UnmarshalJSON ¶ added in v0.10.0
func (h *EthereumHash) UnmarshalJSON(bytes []byte) error
type EthereumInvokeScriptTxKind ¶ added in v0.10.0
type EthereumInvokeScriptTxKind struct {
// contains filtered or unexported fields
}
func NewEthereumInvokeScriptTxKind ¶ added in v0.10.0
func NewEthereumInvokeScriptTxKind(decodedData ethabi.DecodedCallData) *EthereumInvokeScriptTxKind
func (*EthereumInvokeScriptTxKind) DecodedData ¶ added in v0.10.0
func (k *EthereumInvokeScriptTxKind) DecodedData() *ethabi.DecodedCallData
func (*EthereumInvokeScriptTxKind) String ¶ added in v0.10.0
func (k *EthereumInvokeScriptTxKind) String() string
func (*EthereumInvokeScriptTxKind) Type ¶ added in v0.11.0
func (k *EthereumInvokeScriptTxKind) Type() EthereumTransactionKindType
func (*EthereumInvokeScriptTxKind) ValidateCallData ¶ added in v0.10.5
func (k *EthereumInvokeScriptTxKind) ValidateCallData(dApp WavesAddress) error
type EthereumLegacyTx ¶ added in v0.10.0
type EthereumLegacyTx struct {
Nonce uint64 // nonce of sender account
GasPrice *big.Int // wei per gas
Gas uint64 // gas limit
To *EthereumAddress // nil value means contract creation
Value *big.Int // wei amount
Data []byte // contract invocation input data
V, R, S *big.Int // signature values
}
EthereumLegacyTx is the transaction data of regular Ethereum transactions.
func (*EthereumLegacyTx) DecodeRLP ¶ added in v0.10.0
func (tx *EthereumLegacyTx) DecodeRLP(rlpData []byte) error
type EthereumOrderV4 ¶ added in v0.10.0
type EthereumOrderV4 struct {
SenderPK ethereumPublicKeyBase58Wrapper `json:"senderPublicKey"`
Eip712Signature EthereumSignature `json:"eip712Signature"`
OrderV4
}
func NewUnsignedEthereumOrderV4 ¶ added in v0.10.0
func NewUnsignedEthereumOrderV4( senderPK *EthereumPublicKey, matcherPK crypto.PublicKey, amountAsset, priceAsset OptionalAsset, orderType OrderType, price, amount, timestamp, expiration, matcherFee uint64, matcherFeeAsset OptionalAsset, priceMode OrderPriceMode, attachment Attachment, ) *EthereumOrderV4
NewUnsignedEthereumOrderV4 creates the new ethereum unsigned order.
func (*EthereumOrderV4) BodyMarshalBinary ¶ added in v0.10.0
func (o *EthereumOrderV4) BodyMarshalBinary(scheme Scheme) ([]byte, error)
func (*EthereumOrderV4) EthereumSign ¶ added in v0.10.0
func (o *EthereumOrderV4) EthereumSign(scheme Scheme, sk *EthereumPrivateKey) (err error)
EthereumSign signs order and sets senderPK with provided *EthereumPrivateKey. This method is used only for test purposes
func (*EthereumOrderV4) GenerateID ¶ added in v0.10.0
func (o *EthereumOrderV4) GenerateID(scheme Scheme) error
func (*EthereumOrderV4) GenerateSenderPK ¶ added in v0.10.0
func (o *EthereumOrderV4) GenerateSenderPK(scheme Scheme) error
func (*EthereumOrderV4) GetSender ¶ added in v0.10.0
func (o *EthereumOrderV4) GetSender(_ Scheme) (Address, error)
func (*EthereumOrderV4) GetSenderPKBytes ¶ added in v0.10.0
func (o *EthereumOrderV4) GetSenderPKBytes() []byte
func (*EthereumOrderV4) Sign ¶ added in v0.10.0
func (o *EthereumOrderV4) Sign(_ Scheme, _ crypto.SecretKey) error
func (*EthereumOrderV4) ToProtobuf ¶ added in v0.10.0
func (o *EthereumOrderV4) ToProtobuf(scheme Scheme) *g.Order
func (*EthereumOrderV4) ToProtobufSigned ¶ added in v0.10.0
func (o *EthereumOrderV4) ToProtobufSigned(scheme Scheme) *g.Order
func (*EthereumOrderV4) Valid ¶ added in v0.10.0
func (o *EthereumOrderV4) Valid() (bool, error)
type EthereumPrivateKey ¶ added in v0.10.0
type EthereumPrivateKey btcec.PrivateKey
EthereumPrivateKey is an Ethereum ecdsa.PrivateKey.
func (*EthereumPrivateKey) EthereumPublicKey ¶ added in v0.10.0
func (esk *EthereumPrivateKey) EthereumPublicKey() *EthereumPublicKey
EthereumPublicKey returns *EthereumPublicKey from corresponding EthereumPrivateKey.
type EthereumPublicKey ¶ added in v0.10.0
EthereumPublicKey is an Ethereum ecdsa.PublicKey.
func NewEthereumPublicKeyFromBase58String ¶ added in v0.10.0
func NewEthereumPublicKeyFromBase58String(s string) (EthereumPublicKey, error)
NewEthereumPublicKeyFromBase58String creates an EthereumPublicKey from its string representation.
func NewEthereumPublicKeyFromBytes ¶ added in v0.10.0
func NewEthereumPublicKeyFromBytes(b []byte) (EthereumPublicKey, error)
func NewEthereumPublicKeyFromHexString ¶ added in v0.10.0
func NewEthereumPublicKeyFromHexString(s string) (EthereumPublicKey, error)
func (*EthereumPublicKey) EthereumAddress ¶ added in v0.10.0
func (epk *EthereumPublicKey) EthereumAddress() EthereumAddress
func (*EthereumPublicKey) MarshalBinary ¶ added in v0.10.0
func (epk *EthereumPublicKey) MarshalBinary() (data []byte, err error)
func (*EthereumPublicKey) MarshalJSON ¶ added in v0.10.0
func (epk *EthereumPublicKey) MarshalJSON() ([]byte, error)
MarshalJSON marshal EthereumPublicKey in hex encoding.
func (*EthereumPublicKey) SerializeCompressed ¶ added in v0.10.0
func (epk *EthereumPublicKey) SerializeCompressed() []byte
SerializeCompressed serializes a public key in a 33-byte compressed format.
func (*EthereumPublicKey) SerializeUncompressed ¶ added in v0.10.0
func (epk *EthereumPublicKey) SerializeUncompressed() []byte
SerializeUncompressed serializes a public key in a 65-byte uncompressed format.
func (*EthereumPublicKey) SerializeXYCoordinates ¶ added in v0.10.0
func (epk *EthereumPublicKey) SerializeXYCoordinates() []byte
SerializeXYCoordinates serializes a public key in a 64-byte uncompressed format without 0x4 byte prefix.
func (*EthereumPublicKey) String ¶ added in v0.10.0
func (epk *EthereumPublicKey) String() string
func (*EthereumPublicKey) ToECDSA ¶ added in v0.10.0
func (epk *EthereumPublicKey) ToECDSA() *ecdsa.PublicKey
ToECDSA returns the public key as a *ecdsa.PublicKey.
func (*EthereumPublicKey) UnmarshalBinary ¶ added in v0.10.0
func (epk *EthereumPublicKey) UnmarshalBinary(data []byte) error
func (*EthereumPublicKey) UnmarshalJSON ¶ added in v0.10.0
func (epk *EthereumPublicKey) UnmarshalJSON(bytes []byte) error
UnmarshalJSON unmarshal EthereumPublicKey from hex encoding.
type EthereumSignature ¶ added in v0.10.0
type EthereumSignature struct {
// contains filtered or unexported fields
}
EthereumSignature represents ethereum signature (v, r, s signature values).
func NewEthereumSignatureFromBytes ¶ added in v0.10.0
func NewEthereumSignatureFromBytes(b []byte) (ethSig EthereumSignature, err error)
func NewEthereumSignatureFromHexString ¶ added in v0.10.0
func NewEthereumSignatureFromHexString(hexString string) (ethSig EthereumSignature, err error)
func NewEthereumSignatureFromVRS ¶ added in v0.10.3
func NewEthereumSignatureFromVRS(v byte, r, s *big.Int) (EthereumSignature, error)
func (*EthereumSignature) AsVRS ¶ added in v0.10.0
func (es *EthereumSignature) AsVRS() (v byte, r, s *big.Int)
AsVRS return ethereum signature as V, R, S signature values. Note that V can be 27/28 for legacy reasons, but real V value is 0/1.
func (*EthereumSignature) Bytes ¶ added in v0.10.0
func (es *EthereumSignature) Bytes() []byte
func (*EthereumSignature) MarshalBinary ¶ added in v0.10.0
func (es *EthereumSignature) MarshalBinary() (data []byte, err error)
func (*EthereumSignature) MarshalJSON ¶ added in v0.10.0
func (es *EthereumSignature) MarshalJSON() ([]byte, error)
func (*EthereumSignature) R ¶ added in v0.10.4
func (es *EthereumSignature) R() *big.Int
R returns r signature value.
func (*EthereumSignature) RecoverEthereumPublicKey ¶ added in v0.10.0
func (es *EthereumSignature) RecoverEthereumPublicKey(digest []byte) (*EthereumPublicKey, error)
func (*EthereumSignature) S ¶ added in v0.10.4
func (es *EthereumSignature) S() *big.Int
S returns s signature value.
func (*EthereumSignature) String ¶ added in v0.10.0
func (es *EthereumSignature) String() string
func (*EthereumSignature) UnmarshalBinary ¶ added in v0.10.0
func (es *EthereumSignature) UnmarshalBinary(data []byte) error
func (*EthereumSignature) UnmarshalJSON ¶ added in v0.10.0
func (es *EthereumSignature) UnmarshalJSON(bytes []byte) error
func (*EthereumSignature) V ¶ added in v0.10.4
func (es *EthereumSignature) V() byte
V returns v signature value. Note that V can be 27/28 for legacy reasons, but real V value is 0/1.
type EthereumSigner ¶ added in v0.10.0
type EthereumSigner interface {
// Sender returns the sender address of the transaction.
Sender(tx *EthereumTransaction) (EthereumAddress, error)
// SenderPK returns the sender public key of the transaction.
SenderPK(tx *EthereumTransaction) (*EthereumPublicKey, error)
// SignatureValues returns the raw R, S, V values corresponding to the given signature.
SignatureValues(tx *EthereumTransaction, sig []byte) (r, s, v *big.Int, err error)
ChainID() *big.Int
// Hash returns 'signature hash', i.e. the transaction hash that is signed by the
// private key. This hash does not uniquely identify the transaction.
Hash(tx *EthereumTransaction) EthereumHash
// Equal returns true if the given signer is the same as the receiver.
Equal(EthereumSigner) bool
}
func MakeEthereumSigner ¶ added in v0.10.0
func MakeEthereumSigner(chainID *big.Int) EthereumSigner
MakeEthereumSigner returns a EthereumSigner based on the given chain config and block number.
func NewLondonEthereumSigner ¶ added in v0.10.0
func NewLondonEthereumSigner(chainId *big.Int) EthereumSigner
NewLondonEthereumSigner returns a signer that accepts - EIP-1559 dynamic fee transactions - EIP-2930 access list transactions, - EIP-155 replay protected transactions, and - legacy Homestead transactions.
type EthereumTransaction ¶ added in v0.10.0
type EthereumTransaction struct {
TxKind EthereumTransactionKind
ID *crypto.Digest
// contains filtered or unexported fields
}
func NewEthereumTransaction ¶ added in v0.10.0
func NewEthereumTransaction(inner EthereumTxData, txKind EthereumTransactionKind, id *crypto.Digest, senderPK *EthereumPublicKey, innerBinarySize int) EthereumTransaction
NewEthereumTransaction is a utility function which should be used ONLY in tests
func (*EthereumTransaction) AccessList ¶ added in v0.10.0
func (tx *EthereumTransaction) AccessList() EthereumAccessList
AccessList returns the access list of the transaction.
func (*EthereumTransaction) BinarySize ¶ added in v0.10.0
func (tx *EthereumTransaction) BinarySize() int
func (*EthereumTransaction) BodyMarshalBinary ¶ added in v0.10.0
func (tx *EthereumTransaction) BodyMarshalBinary(Scheme) ([]byte, error)
func (*EthereumTransaction) ChainId ¶ added in v0.10.0
func (tx *EthereumTransaction) ChainId() *big.Int
ChainId returns the EIP155 chain ID of the transaction. The return value will always be non-nil. For legacy transactions which are not replay-protected, the return value is zero.
func (*EthereumTransaction) Data ¶ added in v0.10.0
func (tx *EthereumTransaction) Data() []byte
Data returns the input data of the transaction.
func (*EthereumTransaction) DecodeCanonical ¶ added in v0.10.0
func (tx *EthereumTransaction) DecodeCanonical(canonicalData []byte) error
DecodeCanonical decodes the canonical binary encoding of transactions. It supports legacy RLP transactions and EIP2718 typed transactions.
func (*EthereumTransaction) EncodeCanonical ¶ added in v0.10.0
func (tx *EthereumTransaction) EncodeCanonical() ([]byte, error)
EncodeCanonical returns the canonical binary encoding of a transaction. For legacy transactions, it returns the RLP encoding. For EIP-2718 typed transactions, it returns the type and payload.
func (*EthereumTransaction) EthereumTxType ¶ added in v0.10.0
func (tx *EthereumTransaction) EthereumTxType() EthereumTxType
EthereumTxType returns the transaction type.
func (*EthereumTransaction) From ¶ added in v0.10.0
func (tx *EthereumTransaction) From() (EthereumAddress, error)
From returns the sender address of the transaction. Returns error if transaction doesn't pass validation.
func (*EthereumTransaction) FromPK ¶ added in v0.10.0
func (tx *EthereumTransaction) FromPK() (*EthereumPublicKey, error)
FromPK returns the sender public key of the transaction. Returns error if transaction doesn't pass validation.
func (*EthereumTransaction) Gas ¶ added in v0.10.0
func (tx *EthereumTransaction) Gas() uint64
Gas returns the gas limit of the transaction.
func (*EthereumTransaction) GasFeeCap ¶ added in v0.10.0
func (tx *EthereumTransaction) GasFeeCap() *big.Int
GasFeeCap returns the fee cap per gas of the transaction.
func (*EthereumTransaction) GasPrice ¶ added in v0.10.0
func (tx *EthereumTransaction) GasPrice() *big.Int
GasPrice returns the gas price of the transaction.
func (*EthereumTransaction) GasTipCap ¶ added in v0.10.0
func (tx *EthereumTransaction) GasTipCap() *big.Int
GasTipCap returns the gasTipCap per gas of the transaction.
func (*EthereumTransaction) GenerateID ¶ added in v0.10.0
func (tx *EthereumTransaction) GenerateID(_ Scheme) error
func (*EthereumTransaction) GetFee ¶ added in v0.10.0
func (tx *EthereumTransaction) GetFee() uint64
func (*EthereumTransaction) GetFeeAsset ¶ added in v0.11.0
func (tx *EthereumTransaction) GetFeeAsset() OptionalAsset
func (*EthereumTransaction) GetID ¶ added in v0.10.0
func (tx *EthereumTransaction) GetID(scheme Scheme) ([]byte, error)
func (*EthereumTransaction) GetSender ¶ added in v0.10.0
func (tx *EthereumTransaction) GetSender(_ Scheme) (Address, error)
func (*EthereumTransaction) GetTimestamp ¶ added in v0.10.0
func (tx *EthereumTransaction) GetTimestamp() uint64
func (*EthereumTransaction) GetType ¶ added in v0.11.0
func (tx *EthereumTransaction) GetType() TransactionType
func (*EthereumTransaction) GetTypeInfo ¶ added in v0.10.0
func (tx *EthereumTransaction) GetTypeInfo() TransactionTypeInfo
func (*EthereumTransaction) GetVersion ¶ added in v0.10.0
func (tx *EthereumTransaction) GetVersion() byte
func (*EthereumTransaction) MarshalBinary ¶ added in v0.10.0
func (tx *EthereumTransaction) MarshalBinary(Scheme) ([]byte, error)
func (*EthereumTransaction) MarshalSignedToProtobuf ¶ added in v0.10.0
func (tx *EthereumTransaction) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*EthereumTransaction) MarshalToProtobuf ¶ added in v0.10.0
func (tx *EthereumTransaction) MarshalToProtobuf(_ Scheme) ([]byte, error)
func (*EthereumTransaction) MerkleBytes ¶ added in v0.10.0
func (tx *EthereumTransaction) MerkleBytes(_ Scheme) ([]byte, error)
func (*EthereumTransaction) Nonce ¶ added in v0.10.0
func (tx *EthereumTransaction) Nonce() uint64
Nonce returns the sender account nonce of the transaction.
func (*EthereumTransaction) Protected ¶ added in v0.10.0
func (tx *EthereumTransaction) Protected() bool
Protected says whether the transaction is replay-protected.
func (*EthereumTransaction) RawSignatureValues ¶ added in v0.10.0
func (tx *EthereumTransaction) RawSignatureValues() (v, r, s *big.Int)
RawSignatureValues returns the V, R, S signature values of the transaction. The return values should not be modified by the caller.
func (*EthereumTransaction) Sign ¶ added in v0.10.0
func (tx *EthereumTransaction) Sign(_ Scheme, _ crypto.SecretKey) error
func (*EthereumTransaction) To ¶ added in v0.10.0
func (tx *EthereumTransaction) To() *EthereumAddress
To returns the recipient address of the transaction. For contract-creation transactions, To returns nil.
func (*EthereumTransaction) ToProtobuf ¶ added in v0.10.0
func (tx *EthereumTransaction) ToProtobuf(_ Scheme) (*g.Transaction, error)
func (*EthereumTransaction) ToProtobufSigned ¶ added in v0.10.0
func (tx *EthereumTransaction) ToProtobufSigned(_ Scheme) (*g.SignedTransaction, error)
func (*EthereumTransaction) UnmarshalBinary ¶ added in v0.10.0
func (tx *EthereumTransaction) UnmarshalBinary(_ []byte, _ Scheme) error
func (*EthereumTransaction) UnmarshalFromProtobuf ¶ added in v0.10.0
func (tx *EthereumTransaction) UnmarshalFromProtobuf(_ []byte) error
func (*EthereumTransaction) UnmarshalJSON ¶ added in v0.10.0
func (tx *EthereumTransaction) UnmarshalJSON(data []byte) error
func (*EthereumTransaction) UnmarshalSignedFromProtobuf ¶ added in v0.10.0
func (tx *EthereumTransaction) UnmarshalSignedFromProtobuf(bytes []byte) error
func (*EthereumTransaction) Validate ¶ added in v0.10.0
func (tx *EthereumTransaction) Validate(params TransactionValidationParams) (Transaction, error)
Validate performs basic checks for EthereumTransaction according to the specification This method doesn't include signature verification. Use Verify method for signature verification
func (*EthereumTransaction) Value ¶ added in v0.10.0
func (tx *EthereumTransaction) Value() *big.Int
Value returns the ether amount of the transaction.
func (*EthereumTransaction) Verify ¶ added in v0.10.0
func (tx *EthereumTransaction) Verify() (*EthereumPublicKey, error)
Verify performs ONLY transaction signature verification and calculates EthereumPublicKey of transaction For basic transaction checks use Validate method
func (*EthereumTransaction) WavesAddressFrom ¶ added in v0.10.0
func (tx *EthereumTransaction) WavesAddressFrom(scheme byte) (WavesAddress, error)
func (*EthereumTransaction) WavesAddressTo ¶ added in v0.10.0
func (tx *EthereumTransaction) WavesAddressTo(scheme byte) (WavesAddress, error)
type EthereumTransactionKind ¶ added in v0.10.0
type EthereumTransactionKind interface {
Type() EthereumTransactionKindType
String() string
DecodedData() *ethabi.DecodedCallData
}
type EthereumTransactionKindResolver ¶ added in v0.11.0
type EthereumTransactionKindResolver interface {
ResolveTxKind(ethTx *EthereumTransaction, isBlockRewardDistributionActivated bool) (EthereumTransactionKind, error)
}
func NewEthereumTransactionKindResolver ¶ added in v0.11.0
func NewEthereumTransactionKindResolver(resolver ethKindResolverState, scheme Scheme) EthereumTransactionKindResolver
type EthereumTransactionKindType ¶ added in v0.11.0
type EthereumTransactionKindType byte
const ( EthereumTransferWavesKindType EthereumTransactionKindType = iota + 1 EthereumTransferAssetsKindType EthereumInvokeKindType )
func GuessEthereumTransactionKindType ¶ added in v0.11.0
func GuessEthereumTransactionKindType(data []byte) (EthereumTransactionKindType, error)
type EthereumTransferAssetsErc20TxKind ¶ added in v0.10.0
type EthereumTransferAssetsErc20TxKind struct {
Arguments ethabi.ERC20TransferArguments
Asset OptionalAsset
// contains filtered or unexported fields
}
func NewEthereumTransferAssetsErc20TxKind ¶ added in v0.10.0
func NewEthereumTransferAssetsErc20TxKind(decodedData ethabi.DecodedCallData, asset OptionalAsset, arguments ethabi.ERC20TransferArguments) *EthereumTransferAssetsErc20TxKind
func (*EthereumTransferAssetsErc20TxKind) DecodedData ¶ added in v0.10.0
func (k *EthereumTransferAssetsErc20TxKind) DecodedData() *ethabi.DecodedCallData
func (*EthereumTransferAssetsErc20TxKind) String ¶ added in v0.10.0
func (k *EthereumTransferAssetsErc20TxKind) String() string
func (*EthereumTransferAssetsErc20TxKind) Type ¶ added in v0.11.0
func (k *EthereumTransferAssetsErc20TxKind) Type() EthereumTransactionKindType
type EthereumTransferWavesTxKind ¶ added in v0.10.0
type EthereumTransferWavesTxKind struct{}
func NewEthereumTransferWavesTxKind ¶ added in v0.10.0
func NewEthereumTransferWavesTxKind() *EthereumTransferWavesTxKind
func (*EthereumTransferWavesTxKind) DecodedData ¶ added in v0.10.0
func (k *EthereumTransferWavesTxKind) DecodedData() *ethabi.DecodedCallData
func (*EthereumTransferWavesTxKind) String ¶ added in v0.10.0
func (k *EthereumTransferWavesTxKind) String() string
func (*EthereumTransferWavesTxKind) Type ¶ added in v0.11.0
func (k *EthereumTransferWavesTxKind) Type() EthereumTransactionKindType
type EthereumTxData ¶ added in v0.10.0
type EthereumTxData interface {
// contains filtered or unexported methods
}
type EthereumTxType ¶ added in v0.10.0
type EthereumTxType byte
EthereumTxType is an ethereum transaction type.
const ( EthereumLegacyTxType EthereumTxType = iota EthereumAccessListTxType EthereumDynamicFeeTxType UndefinedTxType )
func (EthereumTxType) String ¶ added in v0.10.0
func (e EthereumTxType) String() string
type Exchange ¶ added in v0.3.0
type Exchange interface {
GetID(scheme Scheme) ([]byte, error)
GetSenderPK() crypto.PublicKey
Verify(scheme Scheme, pk crypto.PublicKey) (bool, error)
GetBuyOrder() (Order, error)
GetSellOrder() (Order, error)
GetOrder1() Order
GetOrder2() Order
GetPrice() uint64
GetAmount() uint64
GetBuyMatcherFee() uint64
GetSellMatcherFee() uint64
GetFee() uint64
GetTimestamp() uint64
}
type ExchangeWithProofs ¶ added in v0.5.0
type ExchangeWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Order1 Order `json:"order1"`
Order2 Order `json:"order2"`
Price uint64 `json:"price"`
Amount uint64 `json:"amount"`
BuyMatcherFee uint64 `json:"buyMatcherFee"`
SellMatcherFee uint64 `json:"sellMatcherFee"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
ExchangeWithProofs is a transaction to store settlement on blockchain.
func NewUnsignedExchangeWithProofs ¶ added in v0.5.0
func NewUnsignedExchangeWithProofs(v byte, buy, sell Order, price, amount, buyMatcherFee, sellMatcherFee, fee, timestamp uint64) *ExchangeWithProofs
func (ExchangeWithProofs) BinarySize ¶ added in v0.5.0
func (tx ExchangeWithProofs) BinarySize() int
func (*ExchangeWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *ExchangeWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*ExchangeWithProofs) Clone ¶ added in v0.5.0
func (tx *ExchangeWithProofs) Clone() *ExchangeWithProofs
func (*ExchangeWithProofs) GenerateID ¶ added in v0.5.0
func (tx *ExchangeWithProofs) GenerateID(scheme Scheme) error
func (ExchangeWithProofs) GetAmount ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetAmount() uint64
func (ExchangeWithProofs) GetBuyMatcherFee ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetBuyMatcherFee() uint64
func (ExchangeWithProofs) GetBuyOrder ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetBuyOrder() (Order, error)
func (ExchangeWithProofs) GetFee ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetFee() uint64
func (ExchangeWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx ExchangeWithProofs) GetFeeAsset() OptionalAsset
func (*ExchangeWithProofs) GetID ¶ added in v0.5.0
func (tx *ExchangeWithProofs) GetID(scheme Scheme) ([]byte, error)
func (ExchangeWithProofs) GetOrder1 ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetOrder1() Order
func (ExchangeWithProofs) GetOrder2 ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetOrder2() Order
func (ExchangeWithProofs) GetPrice ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetPrice() uint64
func (ExchangeWithProofs) GetSellMatcherFee ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetSellMatcherFee() uint64
func (ExchangeWithProofs) GetSellOrder ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetSellOrder() (Order, error)
func (ExchangeWithProofs) GetSender ¶ added in v0.10.0
func (tx ExchangeWithProofs) GetSender(scheme Scheme) (Address, error)
func (ExchangeWithProofs) GetSenderPK ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetSenderPK() crypto.PublicKey
func (ExchangeWithProofs) GetTimestamp ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetTimestamp() uint64
func (ExchangeWithProofs) GetType ¶ added in v0.11.0
func (tx ExchangeWithProofs) GetType() TransactionType
func (ExchangeWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetTypeInfo() TransactionTypeInfo
func (ExchangeWithProofs) GetVersion ¶ added in v0.5.0
func (tx ExchangeWithProofs) GetVersion() byte
func (*ExchangeWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *ExchangeWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves the transaction to its binary representation.
func (*ExchangeWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*ExchangeWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*ExchangeWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *ExchangeWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*ExchangeWithProofs) Sign ¶ added in v0.5.0
func (tx *ExchangeWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign calculates transaction signature using given secret key.
func (*ExchangeWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*ExchangeWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *ExchangeWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*ExchangeWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *ExchangeWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary loads the transaction from its binary representation.
func (*ExchangeWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*ExchangeWithProofs) UnmarshalJSON ¶ added in v0.5.0
func (tx *ExchangeWithProofs) UnmarshalJSON(data []byte) (err error)
func (*ExchangeWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*ExchangeWithProofs) Validate ¶ added in v0.8.0
func (tx *ExchangeWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type ExchangeWithSig ¶ added in v0.5.0
type ExchangeWithSig struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Order1 *OrderV1 `json:"order1"`
Order2 *OrderV1 `json:"order2"`
Price uint64 `json:"price"`
Amount uint64 `json:"amount"`
BuyMatcherFee uint64 `json:"buyMatcherFee"`
SellMatcherFee uint64 `json:"sellMatcherFee"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
ExchangeWithSig is a transaction to store settlement on blockchain.
func NewUnsignedExchangeWithSig ¶ added in v0.5.0
func NewUnsignedExchangeWithSig(buy, sell *OrderV1, price, amount, buyMatcherFee, sellMatcherFee, fee, timestamp uint64) *ExchangeWithSig
func (ExchangeWithSig) BinarySize ¶ added in v0.5.0
func (tx ExchangeWithSig) BinarySize() int
func (*ExchangeWithSig) BodyMarshalBinary ¶ added in v0.5.0
func (tx *ExchangeWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
func (*ExchangeWithSig) BodySerialize ¶ added in v0.5.0
func (tx *ExchangeWithSig) BodySerialize(s *serializer.Serializer) error
func (*ExchangeWithSig) Clone ¶ added in v0.5.0
func (tx *ExchangeWithSig) Clone() *ExchangeWithSig
func (*ExchangeWithSig) GenerateID ¶ added in v0.5.0
func (tx *ExchangeWithSig) GenerateID(scheme Scheme) error
func (ExchangeWithSig) GetAmount ¶ added in v0.5.0
func (tx ExchangeWithSig) GetAmount() uint64
func (ExchangeWithSig) GetBuyMatcherFee ¶ added in v0.5.0
func (tx ExchangeWithSig) GetBuyMatcherFee() uint64
func (ExchangeWithSig) GetBuyOrder ¶ added in v0.5.0
func (tx ExchangeWithSig) GetBuyOrder() (Order, error)
func (ExchangeWithSig) GetFee ¶ added in v0.5.0
func (tx ExchangeWithSig) GetFee() uint64
func (ExchangeWithSig) GetFeeAsset ¶ added in v0.11.0
func (tx ExchangeWithSig) GetFeeAsset() OptionalAsset
func (*ExchangeWithSig) GetID ¶ added in v0.5.0
func (tx *ExchangeWithSig) GetID(scheme Scheme) ([]byte, error)
func (ExchangeWithSig) GetOrder1 ¶ added in v0.5.0
func (tx ExchangeWithSig) GetOrder1() Order
func (ExchangeWithSig) GetOrder2 ¶ added in v0.5.0
func (tx ExchangeWithSig) GetOrder2() Order
func (ExchangeWithSig) GetPrice ¶ added in v0.5.0
func (tx ExchangeWithSig) GetPrice() uint64
func (ExchangeWithSig) GetSellMatcherFee ¶ added in v0.5.0
func (tx ExchangeWithSig) GetSellMatcherFee() uint64
func (ExchangeWithSig) GetSellOrder ¶ added in v0.5.0
func (tx ExchangeWithSig) GetSellOrder() (Order, error)
func (ExchangeWithSig) GetSender ¶ added in v0.10.0
func (tx ExchangeWithSig) GetSender(scheme Scheme) (Address, error)
func (ExchangeWithSig) GetSenderPK ¶ added in v0.5.0
func (tx ExchangeWithSig) GetSenderPK() crypto.PublicKey
func (ExchangeWithSig) GetTimestamp ¶ added in v0.5.0
func (tx ExchangeWithSig) GetTimestamp() uint64
func (ExchangeWithSig) GetType ¶ added in v0.11.0
func (tx ExchangeWithSig) GetType() TransactionType
func (ExchangeWithSig) GetTypeInfo ¶ added in v0.5.0
func (tx ExchangeWithSig) GetTypeInfo() TransactionTypeInfo
func (ExchangeWithSig) GetVersion ¶ added in v0.5.0
func (tx ExchangeWithSig) GetVersion() byte
func (*ExchangeWithSig) MarshalBinary ¶ added in v0.5.0
func (tx *ExchangeWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves the transaction to its binary representation.
func (*ExchangeWithSig) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*ExchangeWithSig) MarshalToProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*ExchangeWithSig) MerkleBytes ¶ added in v0.10.0
func (tx *ExchangeWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
func (*ExchangeWithSig) Sign ¶ added in v0.5.0
func (tx *ExchangeWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign calculates ID and Signature of the transaction
func (*ExchangeWithSig) ToProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*ExchangeWithSig) ToProtobufSigned ¶ added in v0.5.0
func (tx *ExchangeWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*ExchangeWithSig) UnmarshalBinary ¶ added in v0.5.0
func (tx *ExchangeWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary loads the transaction from its binary representation.
func (*ExchangeWithSig) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithSig) UnmarshalFromProtobuf(data []byte) error
func (*ExchangeWithSig) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *ExchangeWithSig) UnmarshalSignedFromProtobuf(data []byte) error
func (*ExchangeWithSig) Validate ¶ added in v0.8.0
func (tx *ExchangeWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
type FieldsHashesV1 ¶ added in v0.11.0
type FieldsHashesV1 struct {
WavesBalanceHash crypto.Digest
AssetBalanceHash crypto.Digest
DataEntryHash crypto.Digest
AccountScriptHash crypto.Digest
AssetScriptHash crypto.Digest
LeaseBalanceHash crypto.Digest
LeaseStatusHash crypto.Digest
SponsorshipHash crypto.Digest
AliasesHash crypto.Digest
}
FieldsHashesV1 is set of hashes fields for the legacy StateHashV1.
func (*FieldsHashesV1) Equal ¶ added in v0.11.0
func (s *FieldsHashesV1) Equal(other FieldsHashesV1) bool
func (FieldsHashesV1) MarshalJSON ¶ added in v0.11.0
func (s FieldsHashesV1) MarshalJSON() ([]byte, error)
func (*FieldsHashesV1) ReadFrom ¶ added in v0.11.0
func (s *FieldsHashesV1) ReadFrom(r io.Reader) (int64, error)
func (*FieldsHashesV1) UnmarshalJSON ¶ added in v0.11.0
func (s *FieldsHashesV1) UnmarshalJSON(value []byte) error
type FieldsHashesV2 ¶ added in v0.11.0
type FieldsHashesV2 struct {
FieldsHashesV1
GeneratorsHash crypto.Digest
GeneratorsBalancesHash crypto.Digest
}
FieldsHashesV2 is set of hashes fields for the legacy StateHashV2. It's a FieldsHashesV1 with additional GeneratorsHash and GeneratorsBalancesHash fields.
func (*FieldsHashesV2) Equal ¶ added in v0.11.0
func (s *FieldsHashesV2) Equal(other FieldsHashesV2) bool
func (FieldsHashesV2) MarshalJSON ¶ added in v0.11.0
func (s FieldsHashesV2) MarshalJSON() ([]byte, error)
func (*FieldsHashesV2) ReadFrom ¶ added in v0.11.0
func (s *FieldsHashesV2) ReadFrom(r io.Reader) (int64, error)
func (*FieldsHashesV2) UnmarshalJSON ¶ added in v0.11.0
func (s *FieldsHashesV2) UnmarshalJSON(value []byte) error
type FilledVolumeFeeSnapshot ¶ added in v0.11.0
type FilledVolumeFeeSnapshot struct {
OrderID crypto.Digest `json:"id"`
FilledVolume uint64 `json:"volume"`
FilledFee uint64 `json:"fee"`
}
FilledVolumeFeeSnapshot Filled Volume and Fee.
func (FilledVolumeFeeSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s FilledVolumeFeeSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (FilledVolumeFeeSnapshot) Apply ¶ added in v0.11.0
func (s FilledVolumeFeeSnapshot) Apply(a SnapshotApplier) error
func (*FilledVolumeFeeSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *FilledVolumeFeeSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_OrderFill) error
func (FilledVolumeFeeSnapshot) ToProtobuf ¶ added in v0.11.0
func (s FilledVolumeFeeSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_OrderFill, error)
type FinalizationVoting ¶ added in v0.11.0
type FinalizationVoting struct {
EndorserIndexes []int32 `json:"endorserIndexes"`
FinalizedBlockHeight Height `json:"finalizedBlockHeight"`
AggregatedEndorsementSignature bls.Signature `json:"aggregatedEndorsementSignature"`
ConflictEndorsements []EndorseBlock `json:"conflictEndorsements"`
}
func CombineFinalizationVoting ¶ added in v0.11.0
func CombineFinalizationVoting(voting1, voting2 *FinalizationVoting) *FinalizationVoting
func (*FinalizationVoting) Marshal ¶ added in v0.11.0
func (f *FinalizationVoting) Marshal() ([]byte, error)
func (*FinalizationVoting) ToProtobuf ¶ added in v0.11.0
func (f *FinalizationVoting) ToProtobuf() (*g.FinalizationVoting, error)
func (*FinalizationVoting) UnmarshalFromProtobuf ¶ added in v0.11.0
func (f *FinalizationVoting) UnmarshalFromProtobuf(data []byte) error
type FrontierSigner ¶ added in v0.10.0
type FrontierSigner struct{}
func (FrontierSigner) ChainID ¶ added in v0.10.0
func (fs FrontierSigner) ChainID() *big.Int
func (FrontierSigner) Equal ¶ added in v0.10.0
func (fs FrontierSigner) Equal(s2 EthereumSigner) bool
func (FrontierSigner) Hash ¶ added in v0.10.0
func (fs FrontierSigner) Hash(tx *EthereumTransaction) EthereumHash
Hash returns the hash to be signed by the sender. It does not uniquely identify the transaction.
func (FrontierSigner) Sender ¶ added in v0.10.0
func (fs FrontierSigner) Sender(tx *EthereumTransaction) (EthereumAddress, error)
func (FrontierSigner) SenderPK ¶ added in v0.10.0
func (fs FrontierSigner) SenderPK(tx *EthereumTransaction) (*EthereumPublicKey, error)
func (FrontierSigner) SignatureValues ¶ added in v0.10.0
func (fs FrontierSigner) SignatureValues(tx *EthereumTransaction, sig []byte) (r, s, v *big.Int, err error)
SignatureValues returns signature values. This signature needs to be in the [R || S || V] format where V is 0 or 1.
type FullAssetInfo ¶ added in v0.5.0
type FullAssetInfo struct {
AssetInfo
Name string
Description string
ScriptInfo ScriptInfo
SponsorshipCost uint64
IssueTransaction Transaction
SponsorBalance uint64
}
func (*FullAssetInfo) ToProtobuf ¶ added in v0.5.0
func (i *FullAssetInfo) ToProtobuf(scheme Scheme) (*g.AssetInfoResponse, error)
type FullScriptTransfer ¶ added in v0.3.0
type FullScriptTransfer struct {
Amount uint64
Asset OptionalAsset
Recipient Recipient
Sender WavesAddress
SenderPK crypto.PublicKey
Timestamp uint64
ID *crypto.Digest
}
func NewFullScriptTransfer ¶ added in v0.3.0
func NewFullScriptTransfer(action *TransferScriptAction, sender WavesAddress, senderPK crypto.PublicKey, txID *crypto.Digest, timestamp uint64) (*FullScriptTransfer, error)
func NewFullScriptTransferFromPaymentAction ¶ added in v0.10.0
func NewFullScriptTransferFromPaymentAction(action *AttachedPaymentScriptAction, sender WavesAddress, senderPK crypto.PublicKey, txID *crypto.Digest, timestamp uint64) (*FullScriptTransfer, error)
type FullWavesBalance ¶ added in v0.5.0
type FullWavesBalance struct {
Regular uint64
Generating uint64
Available uint64
Effective uint64
LeaseIn uint64
LeaseOut uint64
}
func (*FullWavesBalance) ToProtobuf ¶ added in v0.5.0
func (b *FullWavesBalance) ToProtobuf() *pb.BalanceResponse_WavesBalances
type FunctionCall ¶ added in v0.3.0
type FunctionCall struct {
// contains filtered or unexported fields
}
FunctionCall structure represents the description of function called in the InvokeScript transaction.
func NewFunctionCall ¶ added in v0.10.5
func NewFunctionCall(name string, args Arguments) FunctionCall
func (FunctionCall) Arguments ¶ added in v0.3.0
func (c FunctionCall) Arguments() Arguments
func (*FunctionCall) BinarySize ¶ added in v0.5.0
func (c *FunctionCall) BinarySize() int
func (FunctionCall) Default ¶ added in v0.3.0
func (c FunctionCall) Default() bool
func (FunctionCall) MarshalBinary ¶ added in v0.3.0
func (c FunctionCall) MarshalBinary() ([]byte, error)
func (FunctionCall) MarshalJSON ¶ added in v0.3.0
func (c FunctionCall) MarshalJSON() ([]byte, error)
MarshalJSON writes the entry to its JSON representation.
func (FunctionCall) Name ¶ added in v0.3.0
func (c FunctionCall) Name() string
func (FunctionCall) Serialize ¶ added in v0.3.0
func (c FunctionCall) Serialize(s *serializer.Serializer) error
func (*FunctionCall) UnmarshalBinary ¶ added in v0.3.0
func (c *FunctionCall) UnmarshalBinary(data []byte) error
func (*FunctionCall) UnmarshalJSON ¶ added in v0.3.0
func (c *FunctionCall) UnmarshalJSON(value []byte) error
UnmarshalJSON reads the entry from JSON.
func (FunctionCall) Valid ¶ added in v0.10.5
func (c FunctionCall) Valid() error
type GenerationCommitmentSnapshot ¶ added in v0.11.0
type GenerationCommitmentSnapshot struct {
SenderPublicKey crypto.PublicKey `json:"publicKey"` // JSON repr. in scala node uses 'publicKey' field name
EndorserPublicKey bls.PublicKey `json:"blsPublicKey"`
}
func (*GenerationCommitmentSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s *GenerationCommitmentSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (GenerationCommitmentSnapshot) Apply ¶ added in v0.11.0
func (s GenerationCommitmentSnapshot) Apply(a SnapshotApplier) error
func (*GenerationCommitmentSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *GenerationCommitmentSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_GenerationCommitment) error
func (GenerationCommitmentSnapshot) ToProtobuf ¶ added in v0.11.0
func (s GenerationCommitmentSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_GenerationCommitment, error)
type Genesis ¶
type Genesis struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Signature `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
Timestamp uint64 `json:"timestamp"`
Recipient WavesAddress `json:"recipient"`
Amount uint64 `json:"amount"`
}
Genesis is a transaction used to initial balances distribution. This transactions allowed only in the first block.
func NewUnsignedGenesis ¶
func NewUnsignedGenesis(recipient WavesAddress, amount, timestamp uint64) *Genesis
NewUnsignedGenesis returns a new unsigned Genesis transaction. Actually Genesis transaction could not be signed.
func (Genesis) BinarySize ¶ added in v0.5.0
func (*Genesis) BodyMarshalBinary ¶ added in v0.5.0
func (*Genesis) GenerateID ¶ added in v0.3.0
func (*Genesis) GenerateSig ¶ added in v0.5.0
func (*Genesis) GenerateSigID ¶
func (Genesis) GetFeeAsset ¶ added in v0.11.0
func (tx Genesis) GetFeeAsset() OptionalAsset
func (Genesis) GetSenderPK ¶ added in v0.3.0
func (Genesis) GetTimestamp ¶ added in v0.3.0
func (Genesis) GetType ¶ added in v0.11.0
func (tx Genesis) GetType() TransactionType
func (Genesis) GetTypeInfo ¶ added in v0.5.0
func (tx Genesis) GetTypeInfo() TransactionTypeInfo
func (Genesis) GetVersion ¶ added in v0.5.0
func (*Genesis) MarshalBinary ¶
MarshalBinary writes transaction bytes to slice of bytes.
func (*Genesis) MarshalSignedToProtobuf ¶ added in v0.5.0
func (*Genesis) MarshalToProtobuf ¶ added in v0.5.0
func (Genesis) MerkleBytes ¶ added in v0.10.0
func (*Genesis) ToProtobuf ¶ added in v0.5.0
func (tx *Genesis) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*Genesis) ToProtobufSigned ¶ added in v0.5.0
func (tx *Genesis) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*Genesis) UnmarshalBinary ¶
UnmarshalBinary reads transaction values from the slice of bytes.
func (*Genesis) UnmarshalFromProtobuf ¶ added in v0.5.0
func (*Genesis) UnmarshalJSON ¶ added in v0.5.0
func (*Genesis) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (*Genesis) Validate ¶ added in v0.8.0
func (tx *Genesis) Validate(params TransactionValidationParams) (Transaction, error)
Validate checks the validity of transaction parameters and it's signature.
type GetBlockIDsMessage ¶ added in v0.11.0
type GetBlockIDsMessage struct {
Blocks BlockIDsPayload
}
GetBlockIDsMessage is used for Signatures or hashes block IDs.
func (*GetBlockIDsMessage) IsMessage ¶ added in v0.11.0
func (m *GetBlockIDsMessage) IsMessage()
func (*GetBlockIDsMessage) MarshalBinary ¶ added in v0.11.0
func (m *GetBlockIDsMessage) MarshalBinary() ([]byte, error)
func (*GetBlockIDsMessage) ReadFrom ¶ added in v0.11.0
func (m *GetBlockIDsMessage) ReadFrom(r io.Reader) (int64, error)
func (*GetBlockIDsMessage) SetPayload ¶ added in v0.11.0
func (m *GetBlockIDsMessage) SetPayload(payload Payload) (Message, error)
func (*GetBlockIDsMessage) UnmarshalBinary ¶ added in v0.11.0
func (m *GetBlockIDsMessage) UnmarshalBinary(data []byte) error
type GetBlockMessage ¶
type GetBlockMessage struct {
BlockID BlockID
}
GetBlockMessage represents GetBlock message
func (*GetBlockMessage) IsMessage ¶ added in v0.11.0
func (m *GetBlockMessage) IsMessage()
func (*GetBlockMessage) MarshalBinary ¶
func (m *GetBlockMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes GetBlockMessage to binary form
func (*GetBlockMessage) ReadFrom ¶
func (m *GetBlockMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads GetBlockMessage from io.Reader
func (*GetBlockMessage) SetPayload ¶ added in v0.11.0
func (m *GetBlockMessage) SetPayload(payload Payload) (Message, error)
func (*GetBlockMessage) UnmarshalBinary ¶
func (m *GetBlockMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes GetBlockMessage from binary form
type GetBlockSnapshotMessage ¶ added in v0.11.0
type GetBlockSnapshotMessage struct {
BlockID BlockID
}
func (*GetBlockSnapshotMessage) IsMessage ¶ added in v0.11.0
func (m *GetBlockSnapshotMessage) IsMessage()
func (*GetBlockSnapshotMessage) MarshalBinary ¶ added in v0.11.0
func (m *GetBlockSnapshotMessage) MarshalBinary() ([]byte, error)
func (*GetBlockSnapshotMessage) ReadFrom ¶ added in v0.11.0
func (m *GetBlockSnapshotMessage) ReadFrom(r io.Reader) (int64, error)
func (*GetBlockSnapshotMessage) SetPayload ¶ added in v0.11.0
func (m *GetBlockSnapshotMessage) SetPayload(payload Payload) (Message, error)
func (*GetBlockSnapshotMessage) UnmarshalBinary ¶ added in v0.11.0
func (m *GetBlockSnapshotMessage) UnmarshalBinary(data []byte) error
type GetPeersMessage ¶
type GetPeersMessage struct{}
GetPeersMessage implements the GetPeers message from the waves protocol
func (*GetPeersMessage) IsMessage ¶ added in v0.11.0
func (m *GetPeersMessage) IsMessage()
func (*GetPeersMessage) MarshalBinary ¶
func (m *GetPeersMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes GetPeersMessage to binary form
func (*GetPeersMessage) ReadFrom ¶
func (m *GetPeersMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads GetPeersMessage from io.Reader
func (*GetPeersMessage) SetPayload ¶ added in v0.11.0
func (m *GetPeersMessage) SetPayload(Payload) (Message, error)
func (*GetPeersMessage) UnmarshalBinary ¶
func (m *GetPeersMessage) UnmarshalBinary(b []byte) error
UnmarshalBinary decodes GetPeersMessage from binary form
type GetSignaturesMessage ¶
type GetSignaturesMessage struct {
Signatures Signatures
}
GetSignaturesMessage represents the Get Signatures request
func (*GetSignaturesMessage) IsMessage ¶ added in v0.11.0
func (m *GetSignaturesMessage) IsMessage()
func (*GetSignaturesMessage) MarshalBinary ¶
func (m *GetSignaturesMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes GetSignaturesMessage to binary form
func (*GetSignaturesMessage) ReadFrom ¶
func (m *GetSignaturesMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads GetSignaturesMessage from io.Reader
func (*GetSignaturesMessage) SetPayload ¶ added in v0.11.0
func (m *GetSignaturesMessage) SetPayload(payload Payload) (Message, error)
func (*GetSignaturesMessage) UnmarshalBinary ¶
func (m *GetSignaturesMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes GetSignaturesMessage from binary form
type Handshake ¶
type Handshake struct {
AppName string
Version Version
NodeName string
NodeNonce uint64
DeclaredAddr HandshakeTCPAddr
Timestamp uint64
}
Handshake is the handshake structure of the waves protocol
type HandshakeTCPAddr ¶ added in v0.3.0
type HandshakeTCPAddr TCPAddr
func NewHandshakeTCPAddr ¶ added in v0.3.0
func NewHandshakeTCPAddr(ip net.IP, port int) HandshakeTCPAddr
func (HandshakeTCPAddr) Empty ¶ added in v0.3.0
func (a HandshakeTCPAddr) Empty() bool
func (HandshakeTCPAddr) Network ¶ added in v0.3.0
func (a HandshakeTCPAddr) Network() string
func (*HandshakeTCPAddr) ReadFrom ¶ added in v0.3.0
func (a *HandshakeTCPAddr) ReadFrom(r io.Reader) (int64, error)
func (HandshakeTCPAddr) String ¶ added in v0.3.0
func (a HandshakeTCPAddr) String() string
func (HandshakeTCPAddr) ToIpPort ¶ added in v0.3.0
func (a HandshakeTCPAddr) ToIpPort() IpPort
type Header ¶ added in v0.3.0
type Header struct {
Length uint32
Magic uint32
ContentID PeerMessageID
PayloadChecksum [payloadChecksumSize]byte
// contains filtered or unexported fields
}
func NewHeader ¶ added in v0.11.0
func NewHeader(contentID PeerMessageID, body []byte) (Header, error)
func (*Header) HeaderLength ¶ added in v0.3.0
func (*Header) MarshalBinary ¶ added in v0.3.0
func (*Header) PayloadLength ¶ added in v0.3.0
func (*Header) UnmarshalBinary ¶ added in v0.3.0
func (*Header) Validate ¶ added in v0.11.0
func (h *Header) Validate(contentID PeerMessageID) error
Validate checks the header for correctness. It checks the magic number, ContentID, and lengths. Returns an error with a description of the problem.
type Height ¶ added in v0.3.0
type Height = uint64
func CalculateLastFinalizedHeight ¶ added in v0.11.0
type HexBytes ¶ added in v0.10.0
type HexBytes []byte
func (HexBytes) MarshalJSON ¶ added in v0.10.0
MarshalJSON writes HexBytes Value as JSON string
func (HexBytes) String ¶ added in v0.10.0
String represents underlying bytes as Hex string with 0x prefix
func (*HexBytes) UnmarshalJSON ¶ added in v0.10.0
UnmarshalJSON reads HexBytes from JSON string
type HomesteadSigner ¶ added in v0.10.0
type HomesteadSigner struct{ FrontierSigner }
HomesteadSigner implements EthereumSigner using the homestead rules.
func (HomesteadSigner) ChainID ¶ added in v0.10.0
func (hs HomesteadSigner) ChainID() *big.Int
func (HomesteadSigner) Equal ¶ added in v0.10.0
func (hs HomesteadSigner) Equal(s2 EthereumSigner) bool
func (HomesteadSigner) Sender ¶ added in v0.10.0
func (hs HomesteadSigner) Sender(tx *EthereumTransaction) (EthereumAddress, error)
func (HomesteadSigner) SenderPK ¶ added in v0.10.0
func (hs HomesteadSigner) SenderPK(tx *EthereumTransaction) (*EthereumPublicKey, error)
func (HomesteadSigner) SignatureValues ¶ added in v0.10.0
func (hs HomesteadSigner) SignatureValues(tx *EthereumTransaction, sig []byte) (r, s, v *big.Int, err error)
SignatureValues returns signature values. This signature needs to be in the [R || S || V] format where V is 0 or 1.
type IntegerArgument ¶ added in v0.3.0
type IntegerArgument struct {
Value int64
}
func NewIntegerArgument ¶ added in v0.3.0
func NewIntegerArgument(i int64) *IntegerArgument
func (*IntegerArgument) BinarySize ¶ added in v0.5.0
func (a *IntegerArgument) BinarySize() int
func (*IntegerArgument) GetValueType ¶ added in v0.3.0
func (a *IntegerArgument) GetValueType() ArgumentValueType
GetValueType returns the value type of the entry.
func (*IntegerArgument) MarshalBinary ¶ added in v0.3.0
func (a *IntegerArgument) MarshalBinary() ([]byte, error)
MarshalBinary marshals the integer argument in its bytes representation.
func (*IntegerArgument) MarshalJSON ¶ added in v0.3.0
func (a *IntegerArgument) MarshalJSON() ([]byte, error)
MarshalJSON writes a JSON representation of integer argument.
func (*IntegerArgument) Serialize ¶ added in v0.3.0
func (a *IntegerArgument) Serialize(s *serializer.Serializer) error
Serialize the integer argument in its bytes representation.
func (*IntegerArgument) UnmarshalBinary ¶ added in v0.3.0
func (a *IntegerArgument) UnmarshalBinary(data []byte) error
UnmarshalBinary reads binary representation of integer argument to the structure.
func (*IntegerArgument) UnmarshalJSON ¶ added in v0.3.0
func (a *IntegerArgument) UnmarshalJSON(value []byte) error
UnmarshalJSON reads an integer argument from its JSON representation.
type IntegerDataEntry ¶
IntegerDataEntry stores int64 value.
func (IntegerDataEntry) BinarySize ¶ added in v0.5.0
func (e IntegerDataEntry) BinarySize() int
func (IntegerDataEntry) GetKey ¶
func (e IntegerDataEntry) GetKey() string
GetKey returns the key of data entry.
func (IntegerDataEntry) GetValueType ¶
func (e IntegerDataEntry) GetValueType() DataValueType
GetValueType returns the value type of the entry.
func (IntegerDataEntry) MarshalBinary ¶
func (e IntegerDataEntry) MarshalBinary() ([]byte, error)
MarshalBinary marshals the integer data entry in its bytes representation.
func (IntegerDataEntry) MarshalJSON ¶
func (e IntegerDataEntry) MarshalJSON() ([]byte, error)
MarshalJSON writes a JSON representation of integer data entry.
func (IntegerDataEntry) MarshalValue ¶ added in v0.3.0
func (e IntegerDataEntry) MarshalValue() ([]byte, error)
MarshalValue marshals the integer data entry value in its bytes representation.
func (*IntegerDataEntry) MarshaledValueSize ¶ added in v0.11.0
func (e *IntegerDataEntry) MarshaledValueSize() int
func (IntegerDataEntry) PayloadSize ¶ added in v0.10.0
func (e IntegerDataEntry) PayloadSize() int
func (*IntegerDataEntry) SetKey ¶ added in v0.3.0
func (e *IntegerDataEntry) SetKey(key string)
SetKey sets the key of data entry.
func (IntegerDataEntry) ToProtobuf ¶ added in v0.5.0
func (e IntegerDataEntry) ToProtobuf() *g.DataEntry
func (*IntegerDataEntry) UnmarshalBinary ¶
func (e *IntegerDataEntry) UnmarshalBinary(data []byte) error
UnmarshalBinary reads binary representation of integer data entry to the structure.
func (*IntegerDataEntry) UnmarshalJSON ¶
func (e *IntegerDataEntry) UnmarshalJSON(value []byte) error
UnmarshalJSON reads an integer data entry from its JSON representation.
func (*IntegerDataEntry) UnmarshalValue ¶ added in v0.3.0
func (e *IntegerDataEntry) UnmarshalValue(data []byte) error
UnmarshalValue reads binary representation of integer data entry value to the structure.
func (IntegerDataEntry) Valid ¶ added in v0.3.0
func (e IntegerDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
func (*IntegerDataEntry) WriteValueTo ¶ added in v0.11.0
func (e *IntegerDataEntry) WriteValueTo(w io.Writer) error
type InvokeExpressionTransactionWithProofs ¶ added in v0.10.0
type InvokeExpressionTransactionWithProofs struct {
ID *crypto.Digest `json:"id,omitempty"`
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Fee uint64 `json:"fee"`
FeeAsset OptionalAsset `json:"feeAssetId"`
Timestamp uint64 `json:"timestamp,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
Expression B64Bytes `json:"expression,omitempty"`
}
func NewUnsignedInvokeExpressionWithProofs ¶ added in v0.10.0
func NewUnsignedInvokeExpressionWithProofs(v byte, senderPK crypto.PublicKey, expression B64Bytes, feeAsset OptionalAsset, fee, timestamp uint64) *InvokeExpressionTransactionWithProofs
NewUnsignedInvokeExpressionWithProofs creates new unsigned InvokeExpressionTransactionWithProofs transaction.
func (*InvokeExpressionTransactionWithProofs) BinarySize ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) BinarySize() int
func (*InvokeExpressionTransactionWithProofs) BodyMarshalBinary ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*InvokeExpressionTransactionWithProofs) GenerateID ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) GenerateID(scheme Scheme) error
func (InvokeExpressionTransactionWithProofs) GetFee ¶ added in v0.10.0
func (tx InvokeExpressionTransactionWithProofs) GetFee() uint64
func (InvokeExpressionTransactionWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx InvokeExpressionTransactionWithProofs) GetFeeAsset() OptionalAsset
func (*InvokeExpressionTransactionWithProofs) GetID ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) GetID(scheme Scheme) ([]byte, error)
func (InvokeExpressionTransactionWithProofs) GetSender ¶ added in v0.10.0
func (tx InvokeExpressionTransactionWithProofs) GetSender(scheme Scheme) (Address, error)
func (InvokeExpressionTransactionWithProofs) GetSenderPK ¶ added in v0.11.0
func (tx InvokeExpressionTransactionWithProofs) GetSenderPK() crypto.PublicKey
func (InvokeExpressionTransactionWithProofs) GetTimestamp ¶ added in v0.10.0
func (tx InvokeExpressionTransactionWithProofs) GetTimestamp() uint64
func (InvokeExpressionTransactionWithProofs) GetType ¶ added in v0.11.0
func (tx InvokeExpressionTransactionWithProofs) GetType() TransactionType
func (InvokeExpressionTransactionWithProofs) GetTypeInfo ¶ added in v0.10.0
func (tx InvokeExpressionTransactionWithProofs) GetTypeInfo() TransactionTypeInfo
func (InvokeExpressionTransactionWithProofs) GetVersion ¶ added in v0.10.0
func (tx InvokeExpressionTransactionWithProofs) GetVersion() byte
func (*InvokeExpressionTransactionWithProofs) MarshalBinary ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) MarshalBinary(Scheme) ([]byte, error)
func (*InvokeExpressionTransactionWithProofs) MarshalSignedToProtobuf ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*InvokeExpressionTransactionWithProofs) MarshalToProtobuf ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*InvokeExpressionTransactionWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*InvokeExpressionTransactionWithProofs) Sign ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) Sign(scheme Scheme, sk crypto.SecretKey) error
func (*InvokeExpressionTransactionWithProofs) ToProtobuf ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*InvokeExpressionTransactionWithProofs) ToProtobufSigned ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*InvokeExpressionTransactionWithProofs) UnmarshalBinary ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) UnmarshalBinary([]byte, Scheme) error
func (*InvokeExpressionTransactionWithProofs) UnmarshalFromProtobuf ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*InvokeExpressionTransactionWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*InvokeExpressionTransactionWithProofs) Validate ¶ added in v0.10.0
func (tx *InvokeExpressionTransactionWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type InvokeScriptWithProofs ¶ added in v0.5.0
type InvokeScriptWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
ScriptRecipient Recipient `json:"dApp"`
FunctionCall FunctionCall `json:"call"`
Payments ScriptPayments `json:"payment"`
FeeAsset OptionalAsset `json:"feeAssetId"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
func NewUnsignedInvokeScriptWithProofs ¶ added in v0.5.0
func NewUnsignedInvokeScriptWithProofs(v byte, senderPK crypto.PublicKey, scriptRecipient Recipient, call FunctionCall, payments ScriptPayments, feeAsset OptionalAsset, fee, timestamp uint64) *InvokeScriptWithProofs
NewUnsignedInvokeScriptWithProofs creates new unsigned InvokeScriptWithProofs transaction.
func (*InvokeScriptWithProofs) BinarySize ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) BinarySize() int
func (*InvokeScriptWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
func (*InvokeScriptWithProofs) Clone ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) Clone() *InvokeScriptWithProofs
func (*InvokeScriptWithProofs) GenerateID ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) GenerateID(scheme Scheme) error
func (InvokeScriptWithProofs) GetFee ¶ added in v0.5.0
func (tx InvokeScriptWithProofs) GetFee() uint64
func (InvokeScriptWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx InvokeScriptWithProofs) GetFeeAsset() OptionalAsset
func (*InvokeScriptWithProofs) GetID ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) GetID(scheme Scheme) ([]byte, error)
func (InvokeScriptWithProofs) GetSender ¶ added in v0.10.0
func (tx InvokeScriptWithProofs) GetSender(scheme Scheme) (Address, error)
func (InvokeScriptWithProofs) GetSenderPK ¶ added in v0.5.0
func (tx InvokeScriptWithProofs) GetSenderPK() crypto.PublicKey
func (InvokeScriptWithProofs) GetTimestamp ¶ added in v0.5.0
func (tx InvokeScriptWithProofs) GetTimestamp() uint64
func (InvokeScriptWithProofs) GetType ¶ added in v0.11.0
func (tx InvokeScriptWithProofs) GetType() TransactionType
func (InvokeScriptWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx InvokeScriptWithProofs) GetTypeInfo() TransactionTypeInfo
func (InvokeScriptWithProofs) GetVersion ¶ added in v0.5.0
func (tx InvokeScriptWithProofs) GetVersion() byte
func (*InvokeScriptWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary writes InvokeScriptWithProofs transaction to its byte representation.
func (*InvokeScriptWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*InvokeScriptWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*InvokeScriptWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *InvokeScriptWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*InvokeScriptWithProofs) Sign ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*InvokeScriptWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*InvokeScriptWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*InvokeScriptWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads InvokeScriptWithProofs transaction from its binary representation.
func (*InvokeScriptWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*InvokeScriptWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *InvokeScriptWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*InvokeScriptWithProofs) Validate ¶ added in v0.8.0
func (tx *InvokeScriptWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type IpPort ¶ added in v0.3.0
type IpPort [IpPortLength]byte
func NewIpPortFromTcpAddr ¶ added in v0.3.0
func (*IpPort) UnmarshalBinary ¶ added in v0.3.0
type Issue ¶ added in v0.3.0
type Issue struct {
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Name string `json:"name"`
Description string `json:"description"`
Quantity uint64 `json:"quantity"`
Decimals byte `json:"decimals"`
Reissuable bool `json:"reissuable"`
Timestamp uint64 `json:"timestamp,omitempty"`
Fee uint64 `json:"fee"`
}
func (Issue) BinarySize ¶ added in v0.5.0
func (Issue) GetFeeAsset ¶ added in v0.11.0
func (i Issue) GetFeeAsset() OptionalAsset
func (Issue) GetSenderPK ¶ added in v0.3.0
func (Issue) GetTimestamp ¶ added in v0.3.0
func (*Issue) ToProtobuf ¶ added in v0.5.0
func (i *Issue) ToProtobuf() *g.Transaction_Issue
func (*Issue) UnmarshalBinary ¶ added in v0.5.0
type IssueScriptAction ¶ added in v0.5.0
type IssueScriptAction struct {
Sender *crypto.PublicKey
ID crypto.Digest // calculated field
Name string // name
Description string // description
Quantity int64 // quantity
Decimals int32 // decimals
Reissuable bool // isReissuable
Script []byte // compiledScript //TODO: reversed for future use
Nonce int64 // nonce
}
IssueScriptAction is an action to issue a new asset as a result of script invocation.
func (*IssueScriptAction) GroupType ¶ added in v0.10.0
func (a *IssueScriptAction) GroupType() ScriptActionGroupType
func (*IssueScriptAction) SenderPK ¶ added in v0.9.0
func (a *IssueScriptAction) SenderPK() *crypto.PublicKey
func (*IssueScriptAction) ToProtobuf ¶ added in v0.5.0
func (a *IssueScriptAction) ToProtobuf() *g.InvokeScriptResult_Issue
type IssueWithProofs ¶ added in v0.5.0
type IssueWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
Script Script `json:"script"`
Issue
}
IssueWithProofs is a transaction to issue new asset, second version.
func NewUnsignedIssueWithProofs ¶ added in v0.5.0
func NewUnsignedIssueWithProofs(v byte, senderPK crypto.PublicKey, name, description string, quantity uint64, decimals byte, reissuable bool, script []byte, timestamp, fee uint64) *IssueWithProofs
NewUnsignedIssueWithProofs creates a new IssueWithProofs transaction with empty Proofs.
func (IssueWithProofs) BinarySize ¶ added in v0.5.0
func (tx IssueWithProofs) BinarySize() int
func (*IssueWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *IssueWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
func (*IssueWithProofs) Clone ¶ added in v0.5.0
func (tx *IssueWithProofs) Clone() *IssueWithProofs
func (*IssueWithProofs) GenerateID ¶ added in v0.5.0
func (tx *IssueWithProofs) GenerateID(scheme Scheme) error
func (*IssueWithProofs) GetID ¶ added in v0.5.0
func (tx *IssueWithProofs) GetID(scheme Scheme) ([]byte, error)
func (IssueWithProofs) GetType ¶ added in v0.11.0
func (tx IssueWithProofs) GetType() TransactionType
func (IssueWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx IssueWithProofs) GetTypeInfo() TransactionTypeInfo
func (IssueWithProofs) GetVersion ¶ added in v0.5.0
func (tx IssueWithProofs) GetVersion() byte
func (*IssueWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *IssueWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary converts transaction to its binary representation.
func (*IssueWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *IssueWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*IssueWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *IssueWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*IssueWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *IssueWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*IssueWithProofs) NonEmptyScript ¶ added in v0.5.0
func (tx *IssueWithProofs) NonEmptyScript() bool
NonEmptyScript returns true if the script of the transaction is not empty, otherwise false.
func (*IssueWithProofs) Sign ¶ added in v0.5.0
func (tx *IssueWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign calculates transaction signature using given secret key.
func (*IssueWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *IssueWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*IssueWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *IssueWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*IssueWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *IssueWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads transaction from its binary representation.
func (*IssueWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *IssueWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*IssueWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *IssueWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*IssueWithProofs) Validate ¶ added in v0.8.0
func (tx *IssueWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type IssueWithSig ¶ added in v0.5.0
type IssueWithSig struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
Issue
}
IssueWithSig transaction is a transaction to issue new asset.
func NewUnsignedIssueWithSig ¶ added in v0.5.0
func NewUnsignedIssueWithSig(senderPK crypto.PublicKey, name, description string, quantity uint64, decimals byte, reissuable bool, timestamp, fee uint64) *IssueWithSig
NewUnsignedIssueWithSig creates new IssueWithSig transaction without signature and ID.
func (IssueWithSig) BinarySize ¶ added in v0.5.0
func (tx IssueWithSig) BinarySize() int
func (*IssueWithSig) BodyMarshalBinary ¶ added in v0.5.0
func (tx *IssueWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
func (*IssueWithSig) Clone ¶ added in v0.5.0
func (tx *IssueWithSig) Clone() *IssueWithSig
func (*IssueWithSig) GenerateID ¶ added in v0.5.0
func (tx *IssueWithSig) GenerateID(scheme Scheme) error
func (*IssueWithSig) GetID ¶ added in v0.5.0
func (tx *IssueWithSig) GetID(scheme Scheme) ([]byte, error)
func (IssueWithSig) GetType ¶ added in v0.11.0
func (tx IssueWithSig) GetType() TransactionType
func (IssueWithSig) GetTypeInfo ¶ added in v0.5.0
func (tx IssueWithSig) GetTypeInfo() TransactionTypeInfo
func (IssueWithSig) GetVersion ¶ added in v0.5.0
func (tx IssueWithSig) GetVersion() byte
func (*IssueWithSig) MarshalBinary ¶ added in v0.5.0
func (tx *IssueWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves transaction's binary representation to slice of bytes.
func (*IssueWithSig) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *IssueWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*IssueWithSig) MarshalToProtobuf ¶ added in v0.5.0
func (tx *IssueWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*IssueWithSig) MerkleBytes ¶ added in v0.10.0
func (tx *IssueWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
func (*IssueWithSig) Sign ¶ added in v0.5.0
func (tx *IssueWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign uses secretKey to sing the transaction.
func (*IssueWithSig) ToProtobuf ¶ added in v0.5.0
func (tx *IssueWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*IssueWithSig) ToProtobufSigned ¶ added in v0.5.0
func (tx *IssueWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*IssueWithSig) UnmarshalBinary ¶ added in v0.5.0
func (tx *IssueWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads transaction from its binary representation.
func (*IssueWithSig) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *IssueWithSig) UnmarshalFromProtobuf(data []byte) error
func (*IssueWithSig) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *IssueWithSig) UnmarshalSignedFromProtobuf(data []byte) error
func (*IssueWithSig) Validate ¶ added in v0.8.0
func (tx *IssueWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
type KeyPair ¶ added in v0.3.0
type KeyPair struct {
Public crypto.PublicKey
Secret crypto.SecretKey
// contains filtered or unexported fields
}
func MustKeyPair ¶ added in v0.5.0
func NewKeyPair ¶ added in v0.3.0
type L2ContractDataEntries ¶ added in v0.11.0
type L2ContractDataEntries struct {
AllDataEntries DataEntries `json:"all_data_entries"`
Height uint64 `json:"height"`
BlockID BlockID `json:"block_id"`
BlockTimestamp int64 `json:"block_timestamp"`
}
L2ContractDataEntries L2 contract data entries.
type Lease ¶ added in v0.3.0
type Lease struct {
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Recipient Recipient `json:"recipient"`
Amount uint64 `json:"amount"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
func (Lease) BinarySize ¶ added in v0.5.0
func (Lease) GetFeeAsset ¶ added in v0.11.0
func (l Lease) GetFeeAsset() OptionalAsset
func (Lease) GetSenderPK ¶ added in v0.3.0
func (Lease) GetTimestamp ¶ added in v0.3.0
func (Lease) ToProtobuf ¶ added in v0.5.0
func (l Lease) ToProtobuf() (*g.Transaction_Lease, error)
func (*Lease) UnmarshalBinary ¶ added in v0.5.0
type LeaseBalanceSnapshot ¶ added in v0.11.0
type LeaseBalanceSnapshot struct {
Address WavesAddress `json:"address"`
LeaseIn uint64 `json:"in"`
LeaseOut uint64 `json:"out"`
}
func (LeaseBalanceSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s LeaseBalanceSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (LeaseBalanceSnapshot) Apply ¶ added in v0.11.0
func (s LeaseBalanceSnapshot) Apply(a SnapshotApplier) error
func (*LeaseBalanceSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *LeaseBalanceSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_LeaseBalance) error
func (*LeaseBalanceSnapshot) LeaseInAsInt64 ¶ added in v0.11.0
func (s *LeaseBalanceSnapshot) LeaseInAsInt64() int64
func (*LeaseBalanceSnapshot) LeaseOutAsInt64 ¶ added in v0.11.0
func (s *LeaseBalanceSnapshot) LeaseOutAsInt64() int64
func (LeaseBalanceSnapshot) ToProtobuf ¶ added in v0.11.0
func (s LeaseBalanceSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_LeaseBalance, error)
type LeaseCancel ¶ added in v0.3.0
type LeaseCancel struct {
SenderPK crypto.PublicKey `json:"senderPublicKey"`
LeaseID crypto.Digest `json:"leaseId"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
func (LeaseCancel) BinarySize ¶ added in v0.5.0
func (lc LeaseCancel) BinarySize() int
func (LeaseCancel) GetFee ¶ added in v0.3.0
func (lc LeaseCancel) GetFee() uint64
func (LeaseCancel) GetFeeAsset ¶ added in v0.11.0
func (lc LeaseCancel) GetFeeAsset() OptionalAsset
func (LeaseCancel) GetSender ¶ added in v0.10.0
func (lc LeaseCancel) GetSender(scheme Scheme) (Address, error)
func (LeaseCancel) GetSenderPK ¶ added in v0.3.0
func (lc LeaseCancel) GetSenderPK() crypto.PublicKey
func (LeaseCancel) GetTimestamp ¶ added in v0.3.0
func (lc LeaseCancel) GetTimestamp() uint64
func (LeaseCancel) ToProtobuf ¶ added in v0.5.0
func (lc LeaseCancel) ToProtobuf() *g.Transaction_LeaseCancel
func (*LeaseCancel) UnmarshalBinary ¶ added in v0.5.0
func (lc *LeaseCancel) UnmarshalBinary(data []byte) error
func (LeaseCancel) Valid ¶ added in v0.3.0
func (lc LeaseCancel) Valid() (bool, error)
type LeaseCancelScriptAction ¶ added in v0.9.0
LeaseCancelScriptAction is an action that cancels previously created lease.
func (*LeaseCancelScriptAction) GroupType ¶ added in v0.10.0
func (a *LeaseCancelScriptAction) GroupType() ScriptActionGroupType
func (*LeaseCancelScriptAction) SenderPK ¶ added in v0.9.0
func (a *LeaseCancelScriptAction) SenderPK() *crypto.PublicKey
func (*LeaseCancelScriptAction) ToProtobuf ¶ added in v0.9.0
func (a *LeaseCancelScriptAction) ToProtobuf() *g.InvokeScriptResult_LeaseCancel
type LeaseCancelWithProofs ¶ added in v0.5.0
type LeaseCancelWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
LeaseCancel
}
LeaseCancelWithProofs same as LeaseCancelWithSig but with proofs.
func NewUnsignedLeaseCancelWithProofs ¶ added in v0.5.0
func NewUnsignedLeaseCancelWithProofs(v byte, senderPK crypto.PublicKey, leaseID crypto.Digest, fee, timestamp uint64) *LeaseCancelWithProofs
NewUnsignedLeaseCancelWithProofs creates new LeaseCancelWithProofs transaction structure without a signature and an ID.
func (LeaseCancelWithProofs) BinarySize ¶ added in v0.5.0
func (tx LeaseCancelWithProofs) BinarySize() int
func (*LeaseCancelWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
func (*LeaseCancelWithProofs) Clone ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) Clone() *LeaseCancelWithProofs
func (*LeaseCancelWithProofs) GenerateID ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) GenerateID(scheme Scheme) error
func (*LeaseCancelWithProofs) GetID ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) GetID(scheme Scheme) ([]byte, error)
func (LeaseCancelWithProofs) GetType ¶ added in v0.11.0
func (tx LeaseCancelWithProofs) GetType() TransactionType
func (LeaseCancelWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx LeaseCancelWithProofs) GetTypeInfo() TransactionTypeInfo
func (LeaseCancelWithProofs) GetVersion ¶ added in v0.5.0
func (tx LeaseCancelWithProofs) GetVersion() byte
func (*LeaseCancelWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves the transaction to its binary representation.
func (*LeaseCancelWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*LeaseCancelWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*LeaseCancelWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *LeaseCancelWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*LeaseCancelWithProofs) Sign ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*LeaseCancelWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*LeaseCancelWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*LeaseCancelWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads the transaction from bytes slice.
func (*LeaseCancelWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*LeaseCancelWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*LeaseCancelWithProofs) Validate ¶ added in v0.8.0
func (tx *LeaseCancelWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type LeaseCancelWithSig ¶ added in v0.5.0
type LeaseCancelWithSig struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
LeaseCancel
}
LeaseCancelWithSig transaction can be used to cancel previously created leasing.
func NewUnsignedLeaseCancelWithSig ¶ added in v0.5.0
func NewUnsignedLeaseCancelWithSig(senderPK crypto.PublicKey, leaseID crypto.Digest, fee, timestamp uint64) *LeaseCancelWithSig
NewUnsignedLeaseCancelWithSig creates new LeaseCancelWithSig transaction structure without a signature and an ID.
func (LeaseCancelWithSig) BinarySize ¶ added in v0.5.0
func (tx LeaseCancelWithSig) BinarySize() int
func (*LeaseCancelWithSig) BodyMarshalBinary ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
func (*LeaseCancelWithSig) Clone ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) Clone() *LeaseCancelWithSig
func (*LeaseCancelWithSig) GenerateID ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) GenerateID(scheme Scheme) error
func (*LeaseCancelWithSig) GetID ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) GetID(scheme Scheme) ([]byte, error)
func (LeaseCancelWithSig) GetType ¶ added in v0.11.0
func (tx LeaseCancelWithSig) GetType() TransactionType
func (LeaseCancelWithSig) GetTypeInfo ¶ added in v0.5.0
func (tx LeaseCancelWithSig) GetTypeInfo() TransactionTypeInfo
func (LeaseCancelWithSig) GetVersion ¶ added in v0.5.0
func (tx LeaseCancelWithSig) GetVersion() byte
func (*LeaseCancelWithSig) MarshalBinary ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves transaction to its binary representation.
func (*LeaseCancelWithSig) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*LeaseCancelWithSig) MarshalToProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*LeaseCancelWithSig) MerkleBytes ¶ added in v0.10.0
func (tx *LeaseCancelWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
func (*LeaseCancelWithSig) Sign ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
func (*LeaseCancelWithSig) ToProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*LeaseCancelWithSig) ToProtobufSigned ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*LeaseCancelWithSig) UnmarshalBinary ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
func (*LeaseCancelWithSig) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) UnmarshalFromProtobuf(data []byte) error
func (*LeaseCancelWithSig) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *LeaseCancelWithSig) UnmarshalSignedFromProtobuf(data []byte) error
func (*LeaseCancelWithSig) Validate ¶ added in v0.8.0
func (tx *LeaseCancelWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
type LeaseInfo ¶ added in v0.9.0
type LeaseInfo struct {
IsActive bool
LeaseAmount uint64
Recipient WavesAddress
Sender WavesAddress
}
type LeaseScriptAction ¶ added in v0.9.0
type LeaseScriptAction struct {
Sender *crypto.PublicKey
ID crypto.Digest
Recipient Recipient
Amount int64
Nonce int64
}
LeaseScriptAction is an action to lease Waves to given account.
func (*LeaseScriptAction) GroupType ¶ added in v0.10.0
func (a *LeaseScriptAction) GroupType() ScriptActionGroupType
func (*LeaseScriptAction) SenderPK ¶ added in v0.9.0
func (a *LeaseScriptAction) SenderPK() *crypto.PublicKey
func (*LeaseScriptAction) ToProtobuf ¶ added in v0.9.0
func (a *LeaseScriptAction) ToProtobuf() (*g.InvokeScriptResult_Lease, error)
type LeaseWithProofs ¶ added in v0.5.0
type LeaseWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
Lease
}
LeaseWithProofs is a second version of the LeaseWithSig transaction.
func NewUnsignedLeaseWithProofs ¶ added in v0.5.0
func NewUnsignedLeaseWithProofs(v byte, senderPK crypto.PublicKey, recipient Recipient, amount, fee, timestamp uint64) *LeaseWithProofs
NewUnsignedLeaseWithProofs creates new LeaseWithSig transaction without signature and ID set.
func (LeaseWithProofs) BinarySize ¶ added in v0.5.0
func (tx LeaseWithProofs) BinarySize() int
func (*LeaseWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *LeaseWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*LeaseWithProofs) Clone ¶ added in v0.5.0
func (tx *LeaseWithProofs) Clone() *LeaseWithProofs
func (*LeaseWithProofs) GenerateID ¶ added in v0.5.0
func (tx *LeaseWithProofs) GenerateID(scheme Scheme) error
func (*LeaseWithProofs) GetID ¶ added in v0.5.0
func (tx *LeaseWithProofs) GetID(scheme Scheme) ([]byte, error)
func (LeaseWithProofs) GetType ¶ added in v0.11.0
func (tx LeaseWithProofs) GetType() TransactionType
func (LeaseWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx LeaseWithProofs) GetTypeInfo() TransactionTypeInfo
func (LeaseWithProofs) GetVersion ¶ added in v0.5.0
func (tx LeaseWithProofs) GetVersion() byte
func (*LeaseWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *LeaseWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves the transaction to its binary representation.
func (*LeaseWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *LeaseWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*LeaseWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *LeaseWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*LeaseWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *LeaseWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*LeaseWithProofs) Sign ¶ added in v0.5.0
func (tx *LeaseWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*LeaseWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *LeaseWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*LeaseWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *LeaseWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*LeaseWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *LeaseWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads the transaction from bytes slice.
func (*LeaseWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *LeaseWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*LeaseWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *LeaseWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*LeaseWithProofs) Validate ¶ added in v0.8.0
func (tx *LeaseWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type LeaseWithSig ¶ added in v0.5.0
type LeaseWithSig struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
Lease
}
LeaseWithSig is a transaction that allows to lease Waves to other account.
func NewUnsignedLeaseWithSig ¶ added in v0.5.0
func NewUnsignedLeaseWithSig(senderPK crypto.PublicKey, recipient Recipient, amount, fee, timestamp uint64) *LeaseWithSig
NewUnsignedLeaseWithSig creates new LeaseWithSig transaction without signature and ID set.
func (LeaseWithSig) BinarySize ¶ added in v0.5.0
func (tx LeaseWithSig) BinarySize() int
func (*LeaseWithSig) BodyMarshalBinary ¶ added in v0.5.0
func (tx *LeaseWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
func (*LeaseWithSig) Clone ¶ added in v0.5.0
func (tx *LeaseWithSig) Clone() *LeaseWithSig
func (*LeaseWithSig) GenerateID ¶ added in v0.5.0
func (tx *LeaseWithSig) GenerateID(scheme Scheme) error
func (*LeaseWithSig) GetID ¶ added in v0.5.0
func (tx *LeaseWithSig) GetID(scheme Scheme) ([]byte, error)
func (LeaseWithSig) GetType ¶ added in v0.11.0
func (tx LeaseWithSig) GetType() TransactionType
func (LeaseWithSig) GetTypeInfo ¶ added in v0.5.0
func (tx LeaseWithSig) GetTypeInfo() TransactionTypeInfo
func (LeaseWithSig) GetVersion ¶ added in v0.5.0
func (tx LeaseWithSig) GetVersion() byte
func (*LeaseWithSig) MarshalBinary ¶ added in v0.5.0
func (tx *LeaseWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves the transaction to its binary representation.
func (*LeaseWithSig) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *LeaseWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*LeaseWithSig) MarshalToProtobuf ¶ added in v0.5.0
func (tx *LeaseWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*LeaseWithSig) MerkleBytes ¶ added in v0.10.0
func (tx *LeaseWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
func (*LeaseWithSig) Sign ¶ added in v0.5.0
func (tx *LeaseWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign calculates ID and Signature of the transaction.
func (*LeaseWithSig) ToProtobuf ¶ added in v0.5.0
func (tx *LeaseWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*LeaseWithSig) ToProtobufSigned ¶ added in v0.5.0
func (tx *LeaseWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*LeaseWithSig) UnmarshalBinary ¶ added in v0.5.0
func (tx *LeaseWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads the transaction from bytes slice.
func (*LeaseWithSig) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *LeaseWithSig) UnmarshalFromProtobuf(data []byte) error
func (*LeaseWithSig) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *LeaseWithSig) UnmarshalSignedFromProtobuf(data []byte) error
func (*LeaseWithSig) Validate ¶ added in v0.8.0
func (tx *LeaseWithSig) Validate(params TransactionValidationParams) (Transaction, error)
type LegacyStateHashFeatureActivated ¶ added in v0.11.0
type LegacyStateHashFeatureActivated struct {
FinalityActivated bool
// contains filtered or unexported fields
}
type LegacyStateHashOption ¶ added in v0.11.0
type LegacyStateHashOption func(*LegacyStateHashParams)
func LegacyStateHashV2Opt ¶ added in v0.11.0
func LegacyStateHashV2Opt(generatorsHash, generatorsBalancesHash crypto.Digest) LegacyStateHashOption
type LegacyStateHashParams ¶ added in v0.11.0
type LegacyStateHashParams struct {
// contains filtered or unexported fields
}
type ListArgument ¶ added in v0.8.0
type ListArgument struct {
Items Arguments
}
func (*ListArgument) BinarySize ¶ added in v0.8.0
func (a *ListArgument) BinarySize() int
func (*ListArgument) GetValueType ¶ added in v0.8.0
func (a *ListArgument) GetValueType() ArgumentValueType
GetValueType returns the type of value of the argument.
func (*ListArgument) MarshalBinary ¶ added in v0.8.0
func (a *ListArgument) MarshalBinary() ([]byte, error)
MarshalBinary converts the argument to its byte representation.
func (*ListArgument) MarshalJSON ¶ added in v0.8.0
func (a *ListArgument) MarshalJSON() ([]byte, error)
MarshalJSON writes the entry to its JSON representation.
func (*ListArgument) Serialize ¶ added in v0.8.0
func (a *ListArgument) Serialize(s *serializer.Serializer) error
Serialize argument to its byte representation.
func (*ListArgument) UnmarshalBinary ¶ added in v0.8.0
func (a *ListArgument) UnmarshalBinary(data []byte) error
UnmarshalBinary reads an StringArgument structure from bytes.
func (*ListArgument) UnmarshalJSON ¶ added in v0.8.0
func (a *ListArgument) UnmarshalJSON(value []byte) error
UnmarshalJSON reads the entry from JSON.
type Marshaller ¶ added in v0.7.0
type MassTransferEntry ¶
type MassTransferEntry struct {
Recipient Recipient `json:"recipient"`
Amount uint64 `json:"amount"`
}
func (*MassTransferEntry) BinarySize ¶ added in v0.5.0
func (e *MassTransferEntry) BinarySize() int
func (*MassTransferEntry) MarshalBinary ¶
func (e *MassTransferEntry) MarshalBinary() ([]byte, error)
func (*MassTransferEntry) ToProtobuf ¶ added in v0.5.0
func (e *MassTransferEntry) ToProtobuf() (*g.MassTransferTransactionData_Transfer, error)
func (*MassTransferEntry) UnmarshalBinary ¶
func (e *MassTransferEntry) UnmarshalBinary(data []byte) error
type MassTransferWithProofs ¶ added in v0.5.0
type MassTransferWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Asset OptionalAsset `json:"assetId"`
Transfers []MassTransferEntry `json:"transfers"`
Timestamp uint64 `json:"timestamp,omitempty"`
Fee uint64 `json:"fee"`
Attachment Attachment `json:"attachment,omitempty"`
}
MassTransferWithProofs is a transaction that performs multiple transfers of one asset to the accounts at once.
func NewUnsignedMassTransferWithProofs ¶ added in v0.5.0
func NewUnsignedMassTransferWithProofs(v byte, senderPK crypto.PublicKey, asset OptionalAsset, transfers []MassTransferEntry, fee, timestamp uint64, attachment Attachment) *MassTransferWithProofs
NewUnsignedMassTransferWithProofs creates new MassTransferWithProofs transaction structure without signature and ID.
func (MassTransferWithProofs) BinarySize ¶ added in v0.5.0
func (tx MassTransferWithProofs) BinarySize() int
func (*MassTransferWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *MassTransferWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*MassTransferWithProofs) Clone ¶ added in v0.5.0
func (tx *MassTransferWithProofs) Clone() *MassTransferWithProofs
func (*MassTransferWithProofs) GenerateID ¶ added in v0.5.0
func (tx *MassTransferWithProofs) GenerateID(scheme Scheme) error
func (MassTransferWithProofs) GetFee ¶ added in v0.5.0
func (tx MassTransferWithProofs) GetFee() uint64
func (MassTransferWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx MassTransferWithProofs) GetFeeAsset() OptionalAsset
func (*MassTransferWithProofs) GetID ¶ added in v0.5.0
func (tx *MassTransferWithProofs) GetID(scheme Scheme) ([]byte, error)
func (MassTransferWithProofs) GetSender ¶ added in v0.10.0
func (tx MassTransferWithProofs) GetSender(scheme Scheme) (Address, error)
func (MassTransferWithProofs) GetSenderPK ¶ added in v0.5.0
func (tx MassTransferWithProofs) GetSenderPK() crypto.PublicKey
func (MassTransferWithProofs) GetTimestamp ¶ added in v0.5.0
func (tx MassTransferWithProofs) GetTimestamp() uint64
func (MassTransferWithProofs) GetType ¶ added in v0.11.0
func (tx MassTransferWithProofs) GetType() TransactionType
func (MassTransferWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx MassTransferWithProofs) GetTypeInfo() TransactionTypeInfo
func (MassTransferWithProofs) GetVersion ¶ added in v0.5.0
func (tx MassTransferWithProofs) GetVersion() byte
func (MassTransferWithProofs) HasRecipient ¶ added in v0.5.0
func (tx MassTransferWithProofs) HasRecipient(rcp Recipient) bool
func (*MassTransferWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *MassTransferWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves the transaction to its binary representation.
func (*MassTransferWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *MassTransferWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*MassTransferWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *MassTransferWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*MassTransferWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *MassTransferWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*MassTransferWithProofs) Sign ¶ added in v0.5.0
func (tx *MassTransferWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign calculates signature and ID of the transaction.
func (*MassTransferWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *MassTransferWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*MassTransferWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *MassTransferWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*MassTransferWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *MassTransferWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary loads transaction from its binary representation.
func (*MassTransferWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *MassTransferWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*MassTransferWithProofs) UnmarshalJSON ¶ added in v0.5.0
func (tx *MassTransferWithProofs) UnmarshalJSON(data []byte) error
func (*MassTransferWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *MassTransferWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*MassTransferWithProofs) Validate ¶ added in v0.8.0
func (tx *MassTransferWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type Message ¶ added in v0.3.0
type Message interface {
io.ReaderFrom
io.WriterTo
encoding.BinaryUnmarshaler
encoding.BinaryMarshaler
SetPayload(Payload) (Message, error)
// contains filtered or unexported methods
}
func CreateMessageByContentID ¶ added in v0.11.0
func CreateMessageByContentID(contentID PeerMessageID) (Message, error)
func MessageByBlock ¶ added in v0.5.0
func ReadMessageFrom ¶ added in v0.11.0
ReadMessageFrom reads message from io.Reader. Use this function to read messages defined in this package only.
func ReadMessageFromWith ¶ added in v0.11.0
func ReadMessageFromWith(r io.Reader, pp PayloadProducer, mp MessageProducer) (Message, int64, error)
ReadMessageFromWith reads message from io.Reader with custom payload and message producers. Use this function to read custom sets of messages.
func UnmarshalMessage ¶ added in v0.3.0
UnmarshalMessage tries unmarshal bytes to proper Message type. It uses CreateMessageByContentID to create a message type. And can be used to unmarshal messages defined in this package only. Function returns error if message type is not supported.
func UnmarshalMessageWith ¶ added in v0.11.0
func UnmarshalMessageWith(b []byte, mp MessageProducer) (Message, error)
UnmarshalMessageWith tries unmarshal bytes to proper Message type with a given MessageProducer to create a message type. Use this function to unmarshal custom sets of messages.
type MessageProducer ¶ added in v0.11.0
type MessageProducer func(PeerMessageID) (Message, error)
MessageProducer is a function that creates a message by provided content ID.
type MicroBlock ¶ added in v0.3.0
type MicroBlock struct {
VersionField byte
// Reference for previous block.
Reference BlockID
// Block signature.
TotalResBlockSigField crypto.Signature
TotalBlockID BlockID
TransactionCount uint32
Transactions Transactions
SenderPK crypto.PublicKey
Signature crypto.Signature
StateHash *crypto.Digest // is nil before protocol version 1.5
PartialFinalization *FinalizationVoting
}
func (*MicroBlock) GetPartialFinalization ¶ added in v0.11.0
func (a *MicroBlock) GetPartialFinalization() (FinalizationVoting, bool)
func (*MicroBlock) GetStateHash ¶ added in v0.11.0
func (a *MicroBlock) GetStateHash() (crypto.Digest, bool)
func (*MicroBlock) MarshalBinary ¶ added in v0.6.0
func (a *MicroBlock) MarshalBinary(scheme Scheme) ([]byte, error)
func (*MicroBlock) MarshalToProtobuf ¶ added in v0.5.0
func (a *MicroBlock) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*MicroBlock) Sign ¶ added in v0.3.0
func (a *MicroBlock) Sign(scheme Scheme, secret crypto.SecretKey) error
func (*MicroBlock) ToProtobuf ¶ added in v0.5.0
func (a *MicroBlock) ToProtobuf(scheme Scheme) (*g.SignedMicroBlock, error)
func (*MicroBlock) UnmarshalBinary ¶ added in v0.3.0
func (a *MicroBlock) UnmarshalBinary(b []byte, scheme Scheme) error
func (*MicroBlock) UnmarshalFromProtobuf ¶ added in v0.5.0
func (a *MicroBlock) UnmarshalFromProtobuf(b []byte) error
func (*MicroBlock) VerifySignature ¶ added in v0.3.0
func (a *MicroBlock) VerifySignature(scheme Scheme) (bool, error)
func (*MicroBlock) WriteWithoutSignature ¶ added in v0.3.0
type MicroBlockInv ¶ added in v0.3.0
type MicroBlockInv struct {
PublicKey crypto.PublicKey
TotalBlockID BlockID
Reference BlockID
Signature crypto.Signature
}
func NewUnsignedMicroblockInv ¶ added in v0.3.0
func NewUnsignedMicroblockInv(PublicKey crypto.PublicKey, TotalBlockID BlockID, Reference BlockID) *MicroBlockInv
func (*MicroBlockInv) MarshalBinary ¶ added in v0.3.0
func (a *MicroBlockInv) MarshalBinary() ([]byte, error)
func (*MicroBlockInv) Sign ¶ added in v0.3.0
func (a *MicroBlockInv) Sign(key crypto.SecretKey, schema Scheme) error
func (*MicroBlockInv) UnmarshalBinary ¶ added in v0.3.0
func (a *MicroBlockInv) UnmarshalBinary(data []byte) error
type MicroBlockInvMessage ¶ added in v0.3.0
type MicroBlockInvMessage struct {
Body BytesPayload
}
func (*MicroBlockInvMessage) IsMessage ¶ added in v0.11.0
func (m *MicroBlockInvMessage) IsMessage()
func (*MicroBlockInvMessage) MarshalBinary ¶ added in v0.3.0
func (m *MicroBlockInvMessage) MarshalBinary() ([]byte, error)
func (*MicroBlockInvMessage) ReadFrom ¶ added in v0.3.0
func (m *MicroBlockInvMessage) ReadFrom(r io.Reader) (int64, error)
func (*MicroBlockInvMessage) SetPayload ¶ added in v0.11.0
func (m *MicroBlockInvMessage) SetPayload(payload Payload) (Message, error)
func (*MicroBlockInvMessage) UnmarshalBinary ¶ added in v0.3.0
func (m *MicroBlockInvMessage) UnmarshalBinary(data []byte) error
type MicroBlockMessage ¶ added in v0.3.0
type MicroBlockMessage struct {
Body BytesPayload
}
MicroBlockMessage represents a MicroBlock message.
func (*MicroBlockMessage) IsMessage ¶ added in v0.11.0
func (m *MicroBlockMessage) IsMessage()
func (*MicroBlockMessage) MarshalBinary ¶ added in v0.3.0
func (m *MicroBlockMessage) MarshalBinary() ([]byte, error)
func (*MicroBlockMessage) ReadFrom ¶ added in v0.3.0
func (m *MicroBlockMessage) ReadFrom(r io.Reader) (int64, error)
func (*MicroBlockMessage) SetPayload ¶ added in v0.11.0
func (m *MicroBlockMessage) SetPayload(payload Payload) (Message, error)
func (*MicroBlockMessage) UnmarshalBinary ¶ added in v0.3.0
func (m *MicroBlockMessage) UnmarshalBinary(data []byte) error
type MicroBlockRequestMessage ¶ added in v0.3.0
type MicroBlockRequestMessage struct {
TotalBlockSig BlockID
}
MicroBlockRequestMessage total block signature or ID.
func (*MicroBlockRequestMessage) IsMessage ¶ added in v0.11.0
func (m *MicroBlockRequestMessage) IsMessage()
func (*MicroBlockRequestMessage) MarshalBinary ¶ added in v0.3.0
func (m *MicroBlockRequestMessage) MarshalBinary() ([]byte, error)
func (*MicroBlockRequestMessage) ReadFrom ¶ added in v0.3.0
func (m *MicroBlockRequestMessage) ReadFrom(r io.Reader) (int64, error)
func (*MicroBlockRequestMessage) SetPayload ¶ added in v0.11.0
func (m *MicroBlockRequestMessage) SetPayload(payload Payload) (Message, error)
func (*MicroBlockRequestMessage) UnmarshalBinary ¶ added in v0.3.0
func (m *MicroBlockRequestMessage) UnmarshalBinary(data []byte) error
type MicroBlockSnapshotMessage ¶ added in v0.11.0
type MicroBlockSnapshotMessage struct {
Bytes BytesPayload
}
func (*MicroBlockSnapshotMessage) IsMessage ¶ added in v0.11.0
func (m *MicroBlockSnapshotMessage) IsMessage()
func (*MicroBlockSnapshotMessage) MarshalBinary ¶ added in v0.11.0
func (m *MicroBlockSnapshotMessage) MarshalBinary() ([]byte, error)
func (*MicroBlockSnapshotMessage) ReadFrom ¶ added in v0.11.0
func (m *MicroBlockSnapshotMessage) ReadFrom(r io.Reader) (int64, error)
func (*MicroBlockSnapshotMessage) SetPayload ¶ added in v0.11.0
func (m *MicroBlockSnapshotMessage) SetPayload(payload Payload) (Message, error)
func (*MicroBlockSnapshotMessage) UnmarshalBinary ¶ added in v0.11.0
func (m *MicroBlockSnapshotMessage) UnmarshalBinary(data []byte) error
type MicroBlockSnapshotRequestMessage ¶ added in v0.11.0
type MicroBlockSnapshotRequestMessage struct {
BlockID BlockID
}
func (*MicroBlockSnapshotRequestMessage) IsMessage ¶ added in v0.11.0
func (m *MicroBlockSnapshotRequestMessage) IsMessage()
func (*MicroBlockSnapshotRequestMessage) MarshalBinary ¶ added in v0.11.0
func (m *MicroBlockSnapshotRequestMessage) MarshalBinary() ([]byte, error)
func (*MicroBlockSnapshotRequestMessage) ReadFrom ¶ added in v0.11.0
func (m *MicroBlockSnapshotRequestMessage) ReadFrom(r io.Reader) (int64, error)
func (*MicroBlockSnapshotRequestMessage) SetPayload ¶ added in v0.11.0
func (m *MicroBlockSnapshotRequestMessage) SetPayload(payload Payload) (Message, error)
func (*MicroBlockSnapshotRequestMessage) UnmarshalBinary ¶ added in v0.11.0
func (m *MicroBlockSnapshotRequestMessage) UnmarshalBinary(data []byte) error
type MicroblockTotalSig ¶ added in v0.3.0
type MiningLimits ¶ added in v0.6.0
type NewAssetSnapshot ¶ added in v0.11.0
type NewAssetSnapshot struct {
AssetID crypto.Digest `json:"id"`
IssuerPublicKey crypto.PublicKey `json:"issuer"`
Decimals uint8 `json:"decimals"`
IsNFT bool `json:"nft"`
}
func (NewAssetSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s NewAssetSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (NewAssetSnapshot) Apply ¶ added in v0.11.0
func (s NewAssetSnapshot) Apply(a SnapshotApplier) error
func (*NewAssetSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *NewAssetSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_NewAsset) error
func (NewAssetSnapshot) ToProtobuf ¶ added in v0.11.0
func (s NewAssetSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_NewAsset, error)
type NewLeaseSnapshot ¶ added in v0.11.0
type NewLeaseSnapshot struct {
LeaseID crypto.Digest `json:"id"`
Amount uint64 `json:"amount"`
SenderPK crypto.PublicKey `json:"sender"`
RecipientAddr WavesAddress `json:"recipient"`
}
func (NewLeaseSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s NewLeaseSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (NewLeaseSnapshot) Apply ¶ added in v0.11.0
func (s NewLeaseSnapshot) Apply(a SnapshotApplier) error
func (*NewLeaseSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *NewLeaseSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_NewLease) error
func (NewLeaseSnapshot) ToProtobuf ¶ added in v0.11.0
func (s NewLeaseSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_NewLease, error)
type NonNullableSlice ¶ added in v0.11.0
type NonNullableSlice[T any] []T
func (NonNullableSlice[T]) MarshalJSON ¶ added in v0.11.0
func (s NonNullableSlice[T]) MarshalJSON() ([]byte, error)
MarshalJSON writes NonNullableSlice as JSON array. If NonNullableSlice is empty or nil, it is written always as empty JSON array.
func (*NonNullableSlice[T]) UnmarshalJSON ¶ added in v0.11.0
func (s *NonNullableSlice[T]) UnmarshalJSON(data []byte) error
UnmarshalJSON reads NonNullableSlice from JSON array or null. If JSON array is empty or null, NonNullableSlice is set to nil.
type NxtConsensus ¶ added in v0.3.0
type NxtConsensus struct {
BaseTarget uint64 `json:"base-target"`
GenSignature B58Bytes `json:"generation-signature"`
}
func (*NxtConsensus) BinarySize ¶ added in v0.5.0
func (nc *NxtConsensus) BinarySize() int
type OptionalAsset ¶
OptionalAsset represents an optional asset identification
func NewOptionalAsset ¶ added in v0.10.0
func NewOptionalAsset(present bool, id crypto.Digest) OptionalAsset
func NewOptionalAssetFromBytes ¶ added in v0.2.0
func NewOptionalAssetFromBytes(b []byte) (*OptionalAsset, error)
NewOptionalAssetFromBytes parses bytes as crypto.Digest and returns OptionalAsset.
func NewOptionalAssetFromDigest ¶ added in v0.2.0
func NewOptionalAssetFromDigest(d crypto.Digest) *OptionalAsset
func NewOptionalAssetFromString ¶
func NewOptionalAssetFromString(s string) (*OptionalAsset, error)
NewOptionalAssetFromString creates an OptionalAsset structure from its string representation.
func NewOptionalAssetWaves ¶ added in v0.9.0
func NewOptionalAssetWaves() OptionalAsset
func (OptionalAsset) BinarySize ¶ added in v0.5.0
func (a OptionalAsset) BinarySize() int
func (OptionalAsset) Eq ¶ added in v0.5.0
func (a OptionalAsset) Eq(b OptionalAsset) bool
func (OptionalAsset) MarshalBinary ¶
func (a OptionalAsset) MarshalBinary() ([]byte, error)
MarshalBinary marshals the optional asset to its binary representation.
func (OptionalAsset) MarshalJSON ¶
func (a OptionalAsset) MarshalJSON() ([]byte, error)
MarshalJSON writes OptionalAsset as a JSON string Value
func (OptionalAsset) Serialize ¶ added in v0.3.0
func (a OptionalAsset) Serialize(s *serializer.Serializer) error
Serialize into binary representation.
func (OptionalAsset) String ¶
func (a OptionalAsset) String() string
String method converts OptionalAsset to its text representation
func (*OptionalAsset) ToDigest ¶ added in v0.10.0
func (a *OptionalAsset) ToDigest() *crypto.Digest
func (*OptionalAsset) ToID ¶ added in v0.2.0
func (a *OptionalAsset) ToID() []byte
func (*OptionalAsset) UnmarshalBinary ¶
func (a *OptionalAsset) UnmarshalBinary(data []byte) error
UnmarshalBinary reads the OptionalAsset structure from its binary representation.
func (*OptionalAsset) UnmarshalJSON ¶
func (a *OptionalAsset) UnmarshalJSON(value []byte) error
UnmarshalJSON reads OptionalAsset from a JSON string Value
type Order ¶
type Order interface {
GetID() ([]byte, error)
GetVersion() OrderVersion
GetPriceMode() OrderPriceMode
GetOrderType() OrderType
GetMatcherPK() crypto.PublicKey
GetAssetPair() AssetPair
GetPrice() uint64
GetExpiration() uint64
Valid() (bool, error)
GetAmount() uint64
GetTimestamp() uint64
GetMatcherFee() uint64
GetMatcherFeeAsset() OptionalAsset
GetSenderPKBytes() []byte
GetSender(scheme Scheme) (Address, error)
GenerateID(scheme Scheme) error
GetProofs() (*ProofsV1, error)
GetAttachment() Attachment
Verify(Scheme) (bool, error)
ToProtobuf(Scheme) *g.Order
ToProtobufSigned(Scheme) *g.Order
BinarySize() int
}
type OrderBody ¶ added in v0.3.0
type OrderBody struct {
SenderPK crypto.PublicKey `json:"senderPublicKey"`
MatcherPK crypto.PublicKey `json:"matcherPublicKey"`
AssetPair AssetPair `json:"assetPair"`
OrderType OrderType `json:"orderType"`
Price uint64 `json:"price"`
Amount uint64 `json:"amount"`
Timestamp uint64 `json:"timestamp"`
Expiration uint64 `json:"expiration"`
MatcherFee uint64 `json:"matcherFee"`
}
func (OrderBody) BinarySize ¶ added in v0.5.0
func (OrderBody) GetSenderPKBytes ¶ added in v0.10.0
func (*OrderBody) Serialize ¶ added in v0.3.0
func (o *OrderBody) Serialize(s *serializer.Serializer) error
func (*OrderBody) SpendAsset ¶ added in v0.3.0
func (o *OrderBody) SpendAsset() OptionalAsset
func (*OrderBody) UnmarshalBinary ¶ added in v0.5.0
type OrderPriceMode ¶ added in v0.10.0
type OrderPriceMode byte
const ( OrderPriceModeDefault OrderPriceMode = iota OrderPriceModeFixedDecimals OrderPriceModeAssetDecimals )
func (*OrderPriceMode) FromProtobuf ¶ added in v0.10.0
func (m *OrderPriceMode) FromProtobuf(gm g.Order_PriceMode) error
func (OrderPriceMode) MarshalJSON ¶ added in v0.10.0
func (m OrderPriceMode) MarshalJSON() ([]byte, error)
func (OrderPriceMode) String ¶ added in v0.10.0
func (m OrderPriceMode) String() string
func (OrderPriceMode) ToProtobuf ¶ added in v0.10.0
func (m OrderPriceMode) ToProtobuf() g.Order_PriceMode
func (*OrderPriceMode) UnmarshalJSON ¶ added in v0.10.0
func (m *OrderPriceMode) UnmarshalJSON(val []byte) error
func (OrderPriceMode) Valid ¶ added in v0.10.0
func (m OrderPriceMode) Valid(orderVersion OrderVersion) (bool, error)
type OrderType ¶
type OrderType byte
OrderType an alias for byte that encodes the type of OrderV1 (BUY|SELL).
func (OrderType) MarshalJSON ¶
MarshalJSON writes value of OrderType to JSON representation.
func (OrderType) ToProtobuf ¶ added in v0.5.0
func (t OrderType) ToProtobuf() g.Order_Side
func (*OrderType) UnmarshalJSON ¶
UnmarshalJSON reads the OrderType value from JSON value.
type OrderV1 ¶ added in v0.1.2
type OrderV1 struct {
ID *crypto.Digest `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
OrderBody
}
OrderV1 is an order created and signed by user. Two matched orders builds up an Exchange transaction.
func NewUnsignedOrderV1 ¶ added in v0.1.2
func NewUnsignedOrderV1(senderPK, matcherPK crypto.PublicKey, amountAsset, priceAsset OptionalAsset, orderType OrderType, price, amount, timestamp, expiration, matcherFee uint64) *OrderV1
NewUnsignedOrderV1 creates the new unsigned order.
func (OrderV1) BinarySize ¶ added in v0.5.0
func (OrderV1) BodyMarshalBinary ¶ added in v0.3.0
func (OrderV1) BodySerialize ¶ added in v0.3.0
func (o OrderV1) BodySerialize(s *serializer.Serializer) error
func (*OrderV1) GenerateID ¶ added in v0.5.0
func (*OrderV1) GetAssetPair ¶ added in v0.3.0
func (*OrderV1) GetAttachment ¶ added in v0.11.0
func (o *OrderV1) GetAttachment() Attachment
func (*OrderV1) GetExpiration ¶ added in v0.3.0
func (OrderV1) GetMatcherFee ¶ added in v0.3.0
func (OrderV1) GetMatcherFeeAsset ¶ added in v0.3.0
func (o OrderV1) GetMatcherFeeAsset() OptionalAsset
func (*OrderV1) GetMatcherPK ¶ added in v0.1.2
func (*OrderV1) GetOrderType ¶ added in v0.1.2
func (*OrderV1) GetPriceMode ¶ added in v0.10.0
func (o *OrderV1) GetPriceMode() OrderPriceMode
func (OrderV1) GetTimestamp ¶ added in v0.3.0
func (*OrderV1) GetVersion ¶ added in v0.1.2
func (o *OrderV1) GetVersion() OrderVersion
func (*OrderV1) MarshalBinary ¶ added in v0.1.2
MarshalBinary writes order to its bytes representation.
func (*OrderV1) Serialize ¶ added in v0.3.0
func (o *OrderV1) Serialize(s *serializer.Serializer) error
Serialize order to its bytes representation.
func (OrderV1) ToProtobufSigned ¶ added in v0.5.0
func (*OrderV1) UnmarshalBinary ¶ added in v0.1.2
UnmarshalBinary reads an order from its binary representation.
type OrderV2 ¶ added in v0.1.2
type OrderV2 struct {
Version OrderVersion `json:"version"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
OrderBody
}
OrderV2 is an order created and signed by user. Two matched orders builds up an Exchange transaction. Version 2 with proofs.
func NewUnsignedOrderV2 ¶ added in v0.1.2
func NewUnsignedOrderV2(senderPK, matcherPK crypto.PublicKey, amountAsset, priceAsset OptionalAsset, orderType OrderType, price, amount, timestamp, expiration, matcherFee uint64) *OrderV2
NewUnsignedOrderV2 creates the new unsigned order.
func (OrderV2) BinarySize ¶ added in v0.5.0
func (OrderV2) BodyMarshalBinary ¶ added in v0.3.0
func (*OrderV2) GenerateID ¶ added in v0.5.0
func (*OrderV2) GetAssetPair ¶ added in v0.3.0
func (*OrderV2) GetAttachment ¶ added in v0.11.0
func (o *OrderV2) GetAttachment() Attachment
func (*OrderV2) GetExpiration ¶ added in v0.3.0
func (OrderV2) GetMatcherFee ¶ added in v0.3.0
func (OrderV2) GetMatcherFeeAsset ¶ added in v0.3.0
func (o OrderV2) GetMatcherFeeAsset() OptionalAsset
func (*OrderV2) GetMatcherPK ¶ added in v0.1.2
func (*OrderV2) GetOrderType ¶ added in v0.1.2
func (*OrderV2) GetPriceMode ¶ added in v0.10.0
func (o *OrderV2) GetPriceMode() OrderPriceMode
func (OrderV2) GetTimestamp ¶ added in v0.3.0
func (*OrderV2) GetVersion ¶ added in v0.1.2
func (o *OrderV2) GetVersion() OrderVersion
func (*OrderV2) MarshalBinary ¶ added in v0.1.2
MarshalBinary writes order to its bytes representation.
func (OrderV2) ToProtobufSigned ¶ added in v0.5.0
func (*OrderV2) UnmarshalBinary ¶ added in v0.1.2
UnmarshalBinary reads an order from its binary representation.
type OrderV3 ¶ added in v0.3.0
type OrderV3 struct {
Version OrderVersion `json:"version"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
MatcherFeeAsset OptionalAsset `json:"matcherFeeAssetId"`
OrderBody
}
OrderV3 is an order that supports matcher's fee in assets.
func NewUnsignedOrderV3 ¶ added in v0.3.0
func NewUnsignedOrderV3(senderPK, matcherPK crypto.PublicKey, amountAsset, priceAsset OptionalAsset, orderType OrderType, price, amount, timestamp, expiration, matcherFee uint64, matcherFeeAsset OptionalAsset) *OrderV3
NewUnsignedOrderV3 creates the new unsigned order.
func (OrderV3) BinarySize ¶ added in v0.5.0
func (*OrderV3) BodyMarshalBinary ¶ added in v0.3.0
func (*OrderV3) GenerateID ¶ added in v0.5.0
func (*OrderV3) GetAssetPair ¶ added in v0.3.0
func (*OrderV3) GetAttachment ¶ added in v0.11.0
func (o *OrderV3) GetAttachment() Attachment
func (*OrderV3) GetExpiration ¶ added in v0.3.0
func (OrderV3) GetMatcherFee ¶ added in v0.3.0
func (OrderV3) GetMatcherFeeAsset ¶ added in v0.3.0
func (o OrderV3) GetMatcherFeeAsset() OptionalAsset
func (*OrderV3) GetMatcherPK ¶ added in v0.3.0
func (*OrderV3) GetOrderType ¶ added in v0.3.0
func (*OrderV3) GetPriceMode ¶ added in v0.10.0
func (o *OrderV3) GetPriceMode() OrderPriceMode
func (OrderV3) GetTimestamp ¶ added in v0.3.0
func (*OrderV3) GetVersion ¶ added in v0.3.0
func (o *OrderV3) GetVersion() OrderVersion
func (*OrderV3) MarshalBinary ¶ added in v0.3.0
MarshalBinary writes order to its bytes representation.
func (OrderV3) ToProtobufSigned ¶ added in v0.5.0
func (*OrderV3) UnmarshalBinary ¶ added in v0.3.0
UnmarshalBinary reads an order from its binary representation.
type OrderV4 ¶ added in v0.5.0
type OrderV4 struct {
Version OrderVersion `json:"version"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
MatcherFeeAsset OptionalAsset `json:"matcherFeeAssetId"`
PriceMode OrderPriceMode `json:"priceMode"`
Attachment Attachment `json:"attachment,omitempty"`
OrderBody
}
OrderV4 is for Protobuf.
func NewUnsignedOrderV4 ¶ added in v0.5.0
func NewUnsignedOrderV4(senderPK, matcherPK crypto.PublicKey, amountAsset, priceAsset OptionalAsset, orderType OrderType, price, amount, timestamp, expiration, matcherFee uint64, matcherFeeAsset OptionalAsset, priceMode OrderPriceMode, attachment Attachment, ) *OrderV4
NewUnsignedOrderV4 creates the new unsigned order.
func (OrderV4) BinarySize ¶ added in v0.5.0
func (*OrderV4) BodyMarshalBinary ¶ added in v0.5.0
func (*OrderV4) GenerateID ¶ added in v0.5.0
func (*OrderV4) GetAssetPair ¶ added in v0.5.0
func (*OrderV4) GetAttachment ¶ added in v0.11.0
func (o *OrderV4) GetAttachment() Attachment
func (*OrderV4) GetExpiration ¶ added in v0.5.0
func (OrderV4) GetMatcherFee ¶ added in v0.5.0
func (OrderV4) GetMatcherFeeAsset ¶ added in v0.5.0
func (o OrderV4) GetMatcherFeeAsset() OptionalAsset
func (*OrderV4) GetMatcherPK ¶ added in v0.5.0
func (*OrderV4) GetOrderType ¶ added in v0.5.0
func (*OrderV4) GetPriceMode ¶ added in v0.10.0
func (o *OrderV4) GetPriceMode() OrderPriceMode
func (OrderV4) GetTimestamp ¶ added in v0.5.0
func (*OrderV4) GetVersion ¶ added in v0.5.0
func (o *OrderV4) GetVersion() OrderVersion
func (OrderV4) ToProtobufSigned ¶ added in v0.5.0
type OrderVersion ¶ added in v0.2.0
type OrderVersion byte
const ( OrderVersionV1 OrderVersion = iota + 1 OrderVersionV2 OrderVersionV3 OrderVersionV4 )
type PBBlockMessage ¶ added in v0.5.0
type PBBlockMessage struct {
PBBlockBytes BytesPayload
}
PBBlockMessage represents Protobuf Block message
func (*PBBlockMessage) IsMessage ¶ added in v0.11.0
func (m *PBBlockMessage) IsMessage()
func (*PBBlockMessage) MarshalBinary ¶ added in v0.5.0
func (m *PBBlockMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes PBBlockMessage to binary form
func (*PBBlockMessage) ReadFrom ¶ added in v0.5.0
func (m *PBBlockMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads PBBlockMessage from io.Reader
func (*PBBlockMessage) SetPayload ¶ added in v0.11.0
func (m *PBBlockMessage) SetPayload(payload Payload) (Message, error)
func (*PBBlockMessage) UnmarshalBinary ¶ added in v0.5.0
func (m *PBBlockMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes PBBlockMessage from binary from
type PBMicroBlockMessage ¶ added in v0.5.0
type PBMicroBlockMessage struct {
MicroBlockBytes BytesPayload
}
PBMicroBlockMessage represents a Protobuf MicroBlock message.
func (*PBMicroBlockMessage) IsMessage ¶ added in v0.11.0
func (m *PBMicroBlockMessage) IsMessage()
func (*PBMicroBlockMessage) MarshalBinary ¶ added in v0.5.0
func (m *PBMicroBlockMessage) MarshalBinary() ([]byte, error)
func (*PBMicroBlockMessage) ReadFrom ¶ added in v0.5.0
func (m *PBMicroBlockMessage) ReadFrom(r io.Reader) (int64, error)
func (*PBMicroBlockMessage) SetPayload ¶ added in v0.11.0
func (m *PBMicroBlockMessage) SetPayload(payload Payload) (Message, error)
func (*PBMicroBlockMessage) UnmarshalBinary ¶ added in v0.5.0
func (m *PBMicroBlockMessage) UnmarshalBinary(data []byte) error
type PBTransactionMessage ¶ added in v0.5.0
type PBTransactionMessage struct {
Transaction BytesPayload
}
PBTransactionMessage represents Protobuf TransactionsSend message
func (*PBTransactionMessage) IsMessage ¶ added in v0.11.0
func (m *PBTransactionMessage) IsMessage()
func (*PBTransactionMessage) MarshalBinary ¶ added in v0.5.0
func (m *PBTransactionMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes PBTransactionMessage to binary form
func (*PBTransactionMessage) ReadFrom ¶ added in v0.5.0
func (m *PBTransactionMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads PBTransactionMessage from io.Reader.
func (*PBTransactionMessage) SetPayload ¶ added in v0.11.0
func (m *PBTransactionMessage) SetPayload(payload Payload) (Message, error)
func (*PBTransactionMessage) UnmarshalBinary ¶ added in v0.5.0
func (m *PBTransactionMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes PBTransactionMessage from binary form
type Payload ¶ added in v0.11.0
type Payload interface {
WriteTo(w io.Writer) (int64, error)
ReadFrom(r io.Reader) (int64, error)
// contains filtered or unexported methods
}
func CreatePayloadByContentID ¶ added in v0.11.0
func CreatePayloadByContentID(contentID PeerMessageID) (Payload, error)
type PayloadProducer ¶ added in v0.11.0
type PayloadProducer func(PeerMessageID) (Payload, error)
PayloadProducer is a function that creates an instance of Payload by provided PeerMessageID.
type Payment ¶
type Payment struct {
Type TransactionType `json:"type"`
Version byte `json:"version"`
ID *crypto.Signature `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Recipient WavesAddress `json:"recipient"`
Amount uint64 `json:"amount"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp"`
}
Payment transaction is deprecated and can be used only for validation of blockchain.
func NewUnsignedPayment ¶
func NewUnsignedPayment(senderPK crypto.PublicKey, recipient WavesAddress, amount, fee, timestamp uint64) *Payment
NewUnsignedPayment creates new Payment transaction with empty Signature and ID fields.
func (Payment) BinarySize ¶ added in v0.5.0
func (*Payment) BodyMarshalBinary ¶ added in v0.3.0
func (*Payment) GenerateID ¶ added in v0.3.0
func (Payment) GetFeeAsset ¶ added in v0.11.0
func (tx Payment) GetFeeAsset() OptionalAsset
func (Payment) GetSenderPK ¶ added in v0.3.0
func (Payment) GetTimestamp ¶ added in v0.3.0
func (Payment) GetType ¶ added in v0.11.0
func (tx Payment) GetType() TransactionType
func (Payment) GetTypeInfo ¶ added in v0.5.0
func (tx Payment) GetTypeInfo() TransactionTypeInfo
func (Payment) GetVersion ¶ added in v0.5.0
func (*Payment) MarshalBinary ¶
MarshalBinary returns a bytes representation of Payment transaction.
func (*Payment) MarshalSignedToProtobuf ¶ added in v0.5.0
func (*Payment) MarshalToProtobuf ¶ added in v0.5.0
func (Payment) MerkleBytes ¶ added in v0.10.0
func (*Payment) ToProtobuf ¶ added in v0.5.0
func (tx *Payment) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*Payment) ToProtobufSigned ¶ added in v0.5.0
func (tx *Payment) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*Payment) UnmarshalBinary ¶
UnmarshalBinary reads Payment transaction from its binary representation.
func (*Payment) UnmarshalFromProtobuf ¶ added in v0.5.0
func (*Payment) UnmarshalJSON ¶ added in v0.5.0
func (*Payment) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (*Payment) Validate ¶ added in v0.8.0
func (tx *Payment) Validate(_ TransactionValidationParams) (Transaction, error)
type PeerInfo ¶
PeerInfo represents the address of a single peer
func NewPeerInfoFromString ¶ added in v0.3.0
NewPeerInfoFromString creates PeerInfo from string 'host:port'. It resolves host to IPv4 addresses and selects the random one using math/rand/v2.
func NewPeerInfosFromString ¶ added in v0.11.0
NewPeerInfosFromString creates PeerInfo slice from string 'host:port'. It resolves host to IPv4 addresses and creates PeerInfo for each of them.
func (*PeerInfo) MarshalBinary ¶
MarshalBinary encodes PeerInfo message to binary form
func (PeerInfo) MarshalJSON ¶
MarshalJSON writes PeerInfo Value as JSON string
func (*PeerInfo) UnmarshalBinary ¶
UnmarshalBinary decodes PeerInfo message from binary form
func (*PeerInfo) UnmarshalJSON ¶
UnmarshalJSON reads PeerInfo from JSON string
type PeerInfos ¶ added in v0.11.0
type PeerInfos []PeerInfo
type PeerMessageID ¶ added in v0.10.0
type PeerMessageID byte
const ( ContentIDGetPeers PeerMessageID = 0x1 ContentIDPeers PeerMessageID = 0x2 ContentIDGetSignatures PeerMessageID = 0x14 ContentIDSignatures PeerMessageID = 0x15 ContentIDGetBlock PeerMessageID = 0x16 ContentIDBlock PeerMessageID = 0x17 ContentIDScore PeerMessageID = 0x18 ContentIDTransaction PeerMessageID = 0x19 ContentIDInvMicroblock PeerMessageID = 0x1A ContentIDMicroblockRequest PeerMessageID = 27 ContentIDMicroblock PeerMessageID = 28 ContentIDPBBlock PeerMessageID = 29 ContentIDPBMicroBlock PeerMessageID = 30 ContentIDPBTransaction PeerMessageID = 31 ContentIDGetBlockIDs PeerMessageID = 32 ContentIDBlockIDs PeerMessageID = 33 ContentIDGetBlockSnapshot PeerMessageID = 34 ContentIDMicroBlockSnapshotRequest PeerMessageID = 35 ContentIDBlockSnapshot PeerMessageID = 36 ContentIDMicroBlockSnapshot PeerMessageID = 37 ContentIDEndorseBlock PeerMessageID = 38 )
Constants for message IDs
type PeerMessageIDs ¶ added in v0.10.0
type PeerMessageIDs []PeerMessageID
type PeersMessage ¶
type PeersMessage struct {
Peers PeerInfos
}
PeersMessage represents the peers message
func (*PeersMessage) IsMessage ¶ added in v0.11.0
func (m *PeersMessage) IsMessage()
func (*PeersMessage) MarshalBinary ¶
func (m *PeersMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes PeersMessage message to binary form
func (*PeersMessage) ReadFrom ¶
func (m *PeersMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads PeersMessage from io.Reader.
func (*PeersMessage) SetPayload ¶ added in v0.11.0
func (m *PeersMessage) SetPayload(payload Payload) (Message, error)
func (*PeersMessage) UnmarshalBinary ¶
func (m *PeersMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes PeersMessage from binary form
type ProofsV1 ¶
ProofsV1 is a collection of proofs.
func NewProofsFromSignature ¶ added in v0.5.0
func (*ProofsV1) BinarySize ¶ added in v0.5.0
func (*ProofsV1) ExtractSignature ¶ added in v0.10.0
ExtractSignature tries to extract a signature from ProofsV1.Proofs slice.
func (*ProofsV1) IsSimpleSigned ¶ added in v0.10.0
IsSimpleSigned performs basics checks of signature correctness.
func (*ProofsV1) MarshalBinary ¶
MarshalBinary writes the proofs to its binary form.
func (ProofsV1) MarshalJSON ¶
MarshalJSON writes the proofs to JSON.
func (*ProofsV1) Serialize ¶ added in v0.3.0
func (p *ProofsV1) Serialize(s *serializer.Serializer) error
Serialize proofs to its binary form.
func (*ProofsV1) UnmarshalBinary ¶
UnmarshalBinary reads the proofs from its binary representation.
func (*ProofsV1) UnmarshalJSON ¶
UnmarshalJSON reads the proofs from JSON.
type ProtobufConverter ¶ added in v0.5.0
type ProtobufConverter struct {
FallbackChainID byte
// contains filtered or unexported fields
}
func (*ProtobufConverter) Address ¶ added in v0.5.0
func (c *ProtobufConverter) Address(scheme byte, addr []byte) (WavesAddress, error)
func (*ProtobufConverter) Block ¶ added in v0.5.0
func (c *ProtobufConverter) Block(block *g.Block) (Block, error)
func (*ProtobufConverter) BlockHeader ¶ added in v0.5.0
func (c *ProtobufConverter) BlockHeader(block *g.Block) (BlockHeader, error)
func (*ProtobufConverter) BurnScriptActions ¶ added in v0.5.0
func (c *ProtobufConverter) BurnScriptActions(burns []*g.InvokeScriptResult_Burn) ([]*BurnScriptAction, error)
func (*ProtobufConverter) EndorseBlock ¶ added in v0.11.0
func (c *ProtobufConverter) EndorseBlock(endorsement *g.EndorseBlock) (EndorseBlock, error)
func (*ProtobufConverter) Entry ¶ added in v0.5.0
func (c *ProtobufConverter) Entry(entry *g.DataEntry) (DataEntry, error)
func (*ProtobufConverter) ErrorMessage ¶ added in v0.6.0
func (c *ProtobufConverter) ErrorMessage(msg *g.InvokeScriptResult_ErrorMessage) (ScriptErrorMessage, error)
func (*ProtobufConverter) FinalizationVoting ¶ added in v0.11.0
func (c *ProtobufConverter) FinalizationVoting(finalizationVoting *g.FinalizationVoting) (FinalizationVoting, error)
func (*ProtobufConverter) IssueScriptActions ¶ added in v0.5.0
func (c *ProtobufConverter) IssueScriptActions(issues []*g.InvokeScriptResult_Issue) ([]*IssueScriptAction, error)
func (*ProtobufConverter) LeaseCancelScriptActions ¶ added in v0.9.0
func (c *ProtobufConverter) LeaseCancelScriptActions(cancels []*g.InvokeScriptResult_LeaseCancel) ([]*LeaseCancelScriptAction, error)
func (*ProtobufConverter) LeaseScriptActions ¶ added in v0.9.0
func (c *ProtobufConverter) LeaseScriptActions(scheme byte, leases []*g.InvokeScriptResult_Lease) ([]*LeaseScriptAction, error)
func (*ProtobufConverter) MicroBlock ¶ added in v0.5.0
func (c *ProtobufConverter) MicroBlock(mb *g.SignedMicroBlock) (MicroBlock, error)
func (*ProtobufConverter) PartialBlockHeader ¶ added in v0.11.0
func (c *ProtobufConverter) PartialBlockHeader(pbHeader *g.Block_Header) (BlockHeader, error)
PartialBlockHeader converts protobuf block header to domain block header. Some fields can't be set in this conversion because the information is not available in the protobuf message. The following fields are not set:
- BlockHeader.BlockSignature - the field is not set because it requires the whole block message;
- BlockHeader.TransactionCount - the field is not set because it requires the whole block message;
- BlockHeader.ID - the field is not set because it requires the scheme and filled block signature field.
func (*ProtobufConverter) ReissueScriptActions ¶ added in v0.5.0
func (c *ProtobufConverter) ReissueScriptActions(reissues []*g.InvokeScriptResult_Reissue) ([]*ReissueScriptAction, error)
func (*ProtobufConverter) SignedTransaction ¶ added in v0.5.0
func (c *ProtobufConverter) SignedTransaction(stx *g.SignedTransaction) (Transaction, error)
func (*ProtobufConverter) SignedTransactions ¶ added in v0.5.0
func (c *ProtobufConverter) SignedTransactions(txs []*g.SignedTransaction) ([]Transaction, error)
func (*ProtobufConverter) SponsorshipScriptActions ¶ added in v0.7.0
func (c *ProtobufConverter) SponsorshipScriptActions(sponsorships []*g.InvokeScriptResult_SponsorFee) ([]*SponsorshipScriptAction, error)
func (*ProtobufConverter) Transaction ¶ added in v0.5.0
func (c *ProtobufConverter) Transaction(tx *g.Transaction) (Transaction, error)
func (*ProtobufConverter) TransferScriptActions ¶ added in v0.5.0
func (c *ProtobufConverter) TransferScriptActions(scheme byte, payments []*g.InvokeScriptResult_Payment) ([]*TransferScriptAction, error)
type RLPDecoder ¶ added in v0.10.0
type RLPEncoder ¶ added in v0.10.0
type Recipient ¶ added in v0.2.0
type Recipient struct {
// contains filtered or unexported fields
}
Recipient could be an Alias or an WavesAddress.
func NewRecipientFromAddress ¶ added in v0.2.0
func NewRecipientFromAddress(a WavesAddress) Recipient
NewRecipientFromAddress creates the Recipient from given address.
func NewRecipientFromAlias ¶ added in v0.2.0
NewRecipientFromAlias creates a Recipient with the given Alias inside.
func NewRecipientFromString ¶ added in v0.3.0
func (Recipient) Address ¶ added in v0.2.0
func (r Recipient) Address() *WavesAddress
func (*Recipient) BinarySize ¶ added in v0.5.0
func (Recipient) EqAddr ¶ added in v0.10.4
func (r Recipient) EqAddr(addr WavesAddress) (bool, error)
func (*Recipient) MarshalBinary ¶ added in v0.2.0
MarshalBinary makes bytes of the Recipient.
func (Recipient) MarshalJSON ¶ added in v0.2.0
MarshalJSON converts the Recipient to its JSON representation.
func (*Recipient) Serialize ¶ added in v0.3.0
func (r *Recipient) Serialize(s *serializer.Serializer) error
func (*Recipient) UnmarshalBinary ¶ added in v0.2.0
UnmarshalBinary reads the Recipient from bytes. Validates the result.
func (*Recipient) UnmarshalJSON ¶ added in v0.2.0
UnmarshalJSON reads the Recipient from its JSON representation.
type Reissue ¶ added in v0.3.0
type Reissue struct {
SenderPK crypto.PublicKey `json:"senderPublicKey"`
AssetID crypto.Digest `json:"assetId"`
Quantity uint64 `json:"quantity"`
Reissuable bool `json:"reissuable"`
Timestamp uint64 `json:"timestamp,omitempty"`
Fee uint64 `json:"fee"`
}
func (Reissue) BinarySize ¶ added in v0.5.0
func (Reissue) GetFeeAsset ¶ added in v0.11.0
func (r Reissue) GetFeeAsset() OptionalAsset
func (Reissue) GetSenderPK ¶ added in v0.3.0
func (Reissue) GetTimestamp ¶ added in v0.3.0
func (Reissue) ToProtobuf ¶ added in v0.5.0
func (r Reissue) ToProtobuf() *g.Transaction_Reissue
func (*Reissue) UnmarshalBinary ¶ added in v0.5.0
type ReissueScriptAction ¶ added in v0.5.0
type ReissueScriptAction struct {
Sender *crypto.PublicKey
AssetID crypto.Digest // assetId
Quantity int64 // quantity
Reissuable bool // isReissuable
}
ReissueScriptAction is an action to emit Reissue transaction as a result of script invocation.
func (*ReissueScriptAction) GroupType ¶ added in v0.10.0
func (a *ReissueScriptAction) GroupType() ScriptActionGroupType
func (*ReissueScriptAction) SenderPK ¶ added in v0.9.0
func (a *ReissueScriptAction) SenderPK() *crypto.PublicKey
func (*ReissueScriptAction) ToProtobuf ¶ added in v0.5.0
func (a *ReissueScriptAction) ToProtobuf() *g.InvokeScriptResult_Reissue
type ReissueWithProofs ¶ added in v0.5.0
type ReissueWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
Reissue
}
ReissueWithProofs same as ReissueWithSig but version 2 with Proofs.
func NewUnsignedReissueWithProofs ¶ added in v0.5.0
func NewUnsignedReissueWithProofs(v byte, senderPK crypto.PublicKey, assetID crypto.Digest, quantity uint64, reissuable bool, timestamp, fee uint64) *ReissueWithProofs
NewUnsignedReissueWithProofs creates new ReissueWithProofs transaction without signature and ID.
func (ReissueWithProofs) BinarySize ¶ added in v0.5.0
func (tx ReissueWithProofs) BinarySize() int
func (*ReissueWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *ReissueWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
func (*ReissueWithProofs) Clone ¶ added in v0.5.0
func (tx *ReissueWithProofs) Clone() *ReissueWithProofs
func (*ReissueWithProofs) GenerateID ¶ added in v0.5.0
func (tx *ReissueWithProofs) GenerateID(scheme Scheme) error
func (*ReissueWithProofs) GetID ¶ added in v0.5.0
func (tx *ReissueWithProofs) GetID(scheme Scheme) ([]byte, error)
func (ReissueWithProofs) GetType ¶ added in v0.11.0
func (tx ReissueWithProofs) GetType() TransactionType
func (ReissueWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx ReissueWithProofs) GetTypeInfo() TransactionTypeInfo
func (ReissueWithProofs) GetVersion ¶ added in v0.5.0
func (tx ReissueWithProofs) GetVersion() byte
func (*ReissueWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *ReissueWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary writes ReissueWithProofs transaction to its byte representation.
func (*ReissueWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *ReissueWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*ReissueWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *ReissueWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*ReissueWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *ReissueWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*ReissueWithProofs) Sign ¶ added in v0.5.0
func (tx *ReissueWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*ReissueWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *ReissueWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*ReissueWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *ReissueWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*ReissueWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *ReissueWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads ReissueWithProofs from its byte representation.
func (*ReissueWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *ReissueWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*ReissueWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *ReissueWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*ReissueWithProofs) Validate ¶ added in v0.8.0
func (tx *ReissueWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type ReissueWithSig ¶ added in v0.5.0
type ReissueWithSig struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
Reissue
}
ReissueWithSig is a transaction that allows to issue new amount of existing token, if it was issued as reissuable.
func NewUnsignedReissueWithSig ¶ added in v0.5.0
func NewUnsignedReissueWithSig(senderPK crypto.PublicKey, assetID crypto.Digest, quantity uint64, reissuable bool, timestamp, fee uint64) *ReissueWithSig
NewUnsignedReissueWithSig creates new ReissueWithSig transaction without signature and ID.
func (ReissueWithSig) BinarySize ¶ added in v0.5.0
func (tx ReissueWithSig) BinarySize() int
func (*ReissueWithSig) BodyMarshalBinary ¶ added in v0.5.0
func (tx *ReissueWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
func (*ReissueWithSig) Clone ¶ added in v0.5.0
func (tx *ReissueWithSig) Clone() *ReissueWithSig
func (*ReissueWithSig) GenerateID ¶ added in v0.5.0
func (tx *ReissueWithSig) GenerateID(scheme Scheme) error
func (*ReissueWithSig) GetID ¶ added in v0.5.0
func (tx *ReissueWithSig) GetID(scheme Scheme) ([]byte, error)
func (ReissueWithSig) GetType ¶ added in v0.11.0
func (tx ReissueWithSig) GetType() TransactionType
func (ReissueWithSig) GetTypeInfo ¶ added in v0.5.0
func (tx ReissueWithSig) GetTypeInfo() TransactionTypeInfo
func (ReissueWithSig) GetVersion ¶ added in v0.5.0
func (tx ReissueWithSig) GetVersion() byte
func (*ReissueWithSig) MarshalBinary ¶ added in v0.5.0
func (tx *ReissueWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves the transaction to its binary representation.
func (*ReissueWithSig) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *ReissueWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*ReissueWithSig) MarshalToProtobuf ¶ added in v0.5.0
func (tx *ReissueWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*ReissueWithSig) MerkleBytes ¶ added in v0.10.0
func (tx *ReissueWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
func (*ReissueWithSig) Sign ¶ added in v0.5.0
func (tx *ReissueWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign use given private key to calculate signature of the transaction. This function also calculates digest of transaction data and assigns it to ID field.
func (*ReissueWithSig) ToProtobuf ¶ added in v0.5.0
func (tx *ReissueWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*ReissueWithSig) ToProtobufSigned ¶ added in v0.5.0
func (tx *ReissueWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*ReissueWithSig) UnmarshalBinary ¶ added in v0.5.0
func (tx *ReissueWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads transaction from its binary representation.
func (*ReissueWithSig) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *ReissueWithSig) UnmarshalFromProtobuf(data []byte) error
func (*ReissueWithSig) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *ReissueWithSig) UnmarshalSignedFromProtobuf(data []byte) error
func (*ReissueWithSig) Validate ¶ added in v0.8.0
func (tx *ReissueWithSig) Validate(_ TransactionValidationParams) (Transaction, error)
type Reward ¶ added in v0.10.5
type Reward struct {
// contains filtered or unexported fields
}
func NewReward ¶ added in v0.10.5
func NewReward(address WavesAddress, amount uint64) Reward
func (*Reward) Address ¶ added in v0.10.5
func (r *Reward) Address() WavesAddress
type RewardVotes ¶ added in v0.11.0
type ScoreMessage ¶
type ScoreMessage struct {
Score BytesPayload
}
ScoreMessage represents Score message
func (*ScoreMessage) IsMessage ¶ added in v0.11.0
func (m *ScoreMessage) IsMessage()
func (*ScoreMessage) MarshalBinary ¶
func (m *ScoreMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes ScoreMessage to binary form
func (*ScoreMessage) ReadFrom ¶
func (m *ScoreMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads ScoreMessage from io.Reader
func (*ScoreMessage) SetPayload ¶ added in v0.11.0
func (m *ScoreMessage) SetPayload(payload Payload) (Message, error)
func (*ScoreMessage) UnmarshalBinary ¶
func (m *ScoreMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes ScoreMessage from binary form
type Script ¶
type Script []byte
func (Script) IsEmpty ¶ added in v0.10.0
IsEmpty checks that script bytes slice is nil or slice length equals zero
func (Script) MarshalJSON ¶ added in v0.2.0
MarshalJSON writes Script as JSON
func (Script) String ¶ added in v0.2.0
String gives a string representation of Script bytes, script bytes encoded as BASE64 with prefix
func (*Script) UnmarshalJSON ¶ added in v0.2.0
UnmarshalJSON reads Script from it's JSON representation
type ScriptAction ¶ added in v0.5.0
type ScriptAction interface {
GroupType() ScriptActionGroupType
SenderPK() *crypto.PublicKey
// contains filtered or unexported methods
}
ScriptAction common interface of script invocation actions.
type ScriptActionGroupType ¶ added in v0.10.0
type ScriptActionGroupType byte
type ScriptBasicInfo ¶ added in v0.10.2
type ScriptErrorMessage ¶ added in v0.6.0
type ScriptErrorMessage struct {
Code TxFailureReason
Text string
}
func (*ScriptErrorMessage) ToProtobuf ¶ added in v0.6.0
func (msg *ScriptErrorMessage) ToProtobuf() *g.InvokeScriptResult_ErrorMessage
type ScriptInfo ¶ added in v0.5.0
func (*ScriptInfo) ToProtobuf ¶ added in v0.5.0
func (s *ScriptInfo) ToProtobuf() *pb.ScriptData
func (*ScriptInfo) ToScriptResponseProtobuf ¶ added in v0.11.0
func (s *ScriptInfo) ToScriptResponseProtobuf() *pb.ScriptResponse
type ScriptPayment ¶ added in v0.3.0
type ScriptPayment struct {
Amount uint64 `json:"amount"`
Asset OptionalAsset `json:"assetId"`
}
ScriptPayment part of InvokeScriptTransaction that describes attached payments that comes in with invoke.
func (*ScriptPayment) BinarySize ¶ added in v0.5.0
func (p *ScriptPayment) BinarySize() int
func (ScriptPayment) MarshalBinary ¶ added in v0.3.0
func (p ScriptPayment) MarshalBinary() ([]byte, error)
func (ScriptPayment) Serialize ¶ added in v0.3.0
func (p ScriptPayment) Serialize(s *serializer.Serializer) error
func (*ScriptPayment) UnmarshalBinary ¶ added in v0.3.0
func (p *ScriptPayment) UnmarshalBinary(data []byte) error
type ScriptPayments ¶ added in v0.3.0
type ScriptPayments []ScriptPayment
ScriptPayments list of payments attached to InvokeScriptTransaction.
func (*ScriptPayments) Append ¶ added in v0.3.0
func (sps *ScriptPayments) Append(sp ScriptPayment)
func (ScriptPayments) BinarySize ¶ added in v0.5.0
func (sps ScriptPayments) BinarySize() int
func (ScriptPayments) MarshalBinary ¶ added in v0.3.0
func (sps ScriptPayments) MarshalBinary() ([]byte, error)
func (ScriptPayments) Serialize ¶ added in v0.3.0
func (sps ScriptPayments) Serialize(s *serializer.Serializer) error
func (*ScriptPayments) UnmarshalBinary ¶ added in v0.3.0
func (sps *ScriptPayments) UnmarshalBinary(data []byte) error
type ScriptResult ¶ added in v0.3.0
type ScriptResult struct {
DataEntries []*DataEntryScriptAction
Transfers []*TransferScriptAction
Issues []*IssueScriptAction
Reissues []*ReissueScriptAction
Burns []*BurnScriptAction
Sponsorships []*SponsorshipScriptAction
Leases []*LeaseScriptAction
LeaseCancels []*LeaseCancelScriptAction
ErrorMsg ScriptErrorMessage
}
func (*ScriptResult) FromProtobuf ¶ added in v0.5.0
func (sr *ScriptResult) FromProtobuf(scheme byte, msg *g.InvokeScriptResult) error
func (*ScriptResult) ToProtobuf ¶ added in v0.5.0
func (sr *ScriptResult) ToProtobuf() (*g.InvokeScriptResult, error)
type SetAssetScriptWithProofs ¶ added in v0.5.0
type SetAssetScriptWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
AssetID crypto.Digest `json:"assetId"`
Script Script `json:"script"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
SetAssetScriptWithProofs is a transaction to set smart script on an asset.
func NewUnsignedSetAssetScriptWithProofs ¶ added in v0.5.0
func NewUnsignedSetAssetScriptWithProofs(v byte, senderPK crypto.PublicKey, assetID crypto.Digest, script []byte, fee, timestamp uint64) *SetAssetScriptWithProofs
NewUnsignedSetAssetScriptWithProofs creates new unsigned SetAssetScriptWithProofs transaction.
func (SetAssetScriptWithProofs) BinarySize ¶ added in v0.5.0
func (tx SetAssetScriptWithProofs) BinarySize() int
func (*SetAssetScriptWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
func (*SetAssetScriptWithProofs) Clone ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) Clone() *SetAssetScriptWithProofs
func (*SetAssetScriptWithProofs) GenerateID ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) GenerateID(scheme Scheme) error
func (SetAssetScriptWithProofs) GetFee ¶ added in v0.5.0
func (tx SetAssetScriptWithProofs) GetFee() uint64
func (SetAssetScriptWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx SetAssetScriptWithProofs) GetFeeAsset() OptionalAsset
func (*SetAssetScriptWithProofs) GetID ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) GetID(scheme Scheme) ([]byte, error)
func (SetAssetScriptWithProofs) GetSender ¶ added in v0.10.0
func (tx SetAssetScriptWithProofs) GetSender(scheme Scheme) (Address, error)
func (SetAssetScriptWithProofs) GetSenderPK ¶ added in v0.5.0
func (tx SetAssetScriptWithProofs) GetSenderPK() crypto.PublicKey
func (SetAssetScriptWithProofs) GetTimestamp ¶ added in v0.5.0
func (tx SetAssetScriptWithProofs) GetTimestamp() uint64
func (SetAssetScriptWithProofs) GetType ¶ added in v0.11.0
func (tx SetAssetScriptWithProofs) GetType() TransactionType
func (SetAssetScriptWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx SetAssetScriptWithProofs) GetTypeInfo() TransactionTypeInfo
func (SetAssetScriptWithProofs) GetVersion ¶ added in v0.5.0
func (tx SetAssetScriptWithProofs) GetVersion() byte
func (*SetAssetScriptWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary writes SetAssetScriptWithProofs transaction to its byte representation.
func (*SetAssetScriptWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*SetAssetScriptWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*SetAssetScriptWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *SetAssetScriptWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*SetAssetScriptWithProofs) NonEmptyScript ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) NonEmptyScript() bool
NonEmptyScript returns true if transaction contains non-empty script.
func (*SetAssetScriptWithProofs) Sign ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*SetAssetScriptWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*SetAssetScriptWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*SetAssetScriptWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads SetAssetScriptWithProofs transaction from its binary representation.
func (*SetAssetScriptWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*SetAssetScriptWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *SetAssetScriptWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*SetAssetScriptWithProofs) Validate ¶ added in v0.8.0
func (tx *SetAssetScriptWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type SetScriptWithProofs ¶ added in v0.5.0
type SetScriptWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
Script Script `json:"script"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
SetScriptWithProofs is a transaction to set smart script on an account.
func NewUnsignedSetScriptWithProofs ¶ added in v0.5.0
func NewUnsignedSetScriptWithProofs(v byte, senderPK crypto.PublicKey, script []byte, fee, timestamp uint64) *SetScriptWithProofs
NewUnsignedSetScriptWithProofs creates new unsigned SetScriptWithProofs transaction.
func (SetScriptWithProofs) BinarySize ¶ added in v0.5.0
func (tx SetScriptWithProofs) BinarySize() int
func (*SetScriptWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *SetScriptWithProofs) BodyMarshalBinary(scheme Scheme) ([]byte, error)
func (*SetScriptWithProofs) GenerateID ¶ added in v0.5.0
func (tx *SetScriptWithProofs) GenerateID(scheme Scheme) error
func (SetScriptWithProofs) GetFee ¶ added in v0.5.0
func (tx SetScriptWithProofs) GetFee() uint64
func (SetScriptWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx SetScriptWithProofs) GetFeeAsset() OptionalAsset
func (*SetScriptWithProofs) GetID ¶ added in v0.5.0
func (tx *SetScriptWithProofs) GetID(scheme Scheme) ([]byte, error)
func (SetScriptWithProofs) GetSender ¶ added in v0.10.0
func (tx SetScriptWithProofs) GetSender(scheme Scheme) (Address, error)
func (SetScriptWithProofs) GetSenderPK ¶ added in v0.5.0
func (tx SetScriptWithProofs) GetSenderPK() crypto.PublicKey
func (SetScriptWithProofs) GetTimestamp ¶ added in v0.5.0
func (tx SetScriptWithProofs) GetTimestamp() uint64
func (SetScriptWithProofs) GetType ¶ added in v0.11.0
func (tx SetScriptWithProofs) GetType() TransactionType
func (SetScriptWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx SetScriptWithProofs) GetTypeInfo() TransactionTypeInfo
func (SetScriptWithProofs) GetVersion ¶ added in v0.5.0
func (tx SetScriptWithProofs) GetVersion() byte
func (*SetScriptWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *SetScriptWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary writes SetScriptWithProofs transaction to its byte representation.
func (*SetScriptWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *SetScriptWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*SetScriptWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *SetScriptWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*SetScriptWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *SetScriptWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*SetScriptWithProofs) NonEmptyScript ¶ added in v0.5.0
func (tx *SetScriptWithProofs) NonEmptyScript() bool
NonEmptyScript returns true if transaction contains non-empty script.
func (*SetScriptWithProofs) Sign ¶ added in v0.5.0
func (tx *SetScriptWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*SetScriptWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *SetScriptWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*SetScriptWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *SetScriptWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*SetScriptWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *SetScriptWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads SetScriptWithProofs transaction from its binary representation.
func (*SetScriptWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *SetScriptWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*SetScriptWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *SetScriptWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*SetScriptWithProofs) Validate ¶ added in v0.8.0
func (tx *SetScriptWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type Signatures ¶ added in v0.11.0
func (*Signatures) IsPayload ¶ added in v0.11.0
func (p *Signatures) IsPayload()
type SignaturesMessage ¶
type SignaturesMessage struct {
Signatures Signatures
}
SignaturesMessage represents Signatures message
func (*SignaturesMessage) IsMessage ¶ added in v0.11.0
func (m *SignaturesMessage) IsMessage()
func (*SignaturesMessage) MarshalBinary ¶
func (m *SignaturesMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes SignaturesMessage to binary form
func (*SignaturesMessage) ReadFrom ¶
func (m *SignaturesMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads SignaturesMessage from binary form
func (*SignaturesMessage) SetPayload ¶ added in v0.11.0
func (m *SignaturesMessage) SetPayload(payload Payload) (Message, error)
func (*SignaturesMessage) UnmarshalBinary ¶
func (m *SignaturesMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes SignaturesMessage from binary form
type SizedBlockID ¶ added in v0.11.0
type SizedBlockID BlockID
type SnapshotApplier ¶ added in v0.11.0
type SnapshotApplier interface {
ApplyWavesBalance(snapshot WavesBalanceSnapshot) error
ApplyLeaseBalance(snapshot LeaseBalanceSnapshot) error
ApplyAssetBalance(snapshot AssetBalanceSnapshot) error
ApplyAlias(snapshot AliasSnapshot) error
ApplyNewAsset(snapshot NewAssetSnapshot) error
ApplyAssetDescription(snapshot AssetDescriptionSnapshot) error
ApplyAssetVolume(snapshot AssetVolumeSnapshot) error
ApplyAssetScript(snapshot AssetScriptSnapshot) error
ApplySponsorship(snapshot SponsorshipSnapshot) error
ApplyAccountScript(snapshot AccountScriptSnapshot) error
ApplyFilledVolumeAndFee(snapshot FilledVolumeFeeSnapshot) error
ApplyDataEntries(snapshot DataEntriesSnapshot) error
ApplyNewLease(snapshot NewLeaseSnapshot) error
ApplyCancelledLease(snapshot CancelledLeaseSnapshot) error
ApplyTransactionsStatus(snapshot TransactionStatusSnapshot) error
ApplyCommitToGeneration(snapshot GenerationCommitmentSnapshot) error
}
type SponsorshipScriptAction ¶ added in v0.7.0
type SponsorshipScriptAction struct {
Sender *crypto.PublicKey
AssetID crypto.Digest // assetId
MinFee int64 // minSponsoredAssetFee
}
SponsorshipScriptAction is an action to set sponsorship for given asset in response to script invocation.
func (*SponsorshipScriptAction) GroupType ¶ added in v0.10.0
func (a *SponsorshipScriptAction) GroupType() ScriptActionGroupType
func (*SponsorshipScriptAction) SenderPK ¶ added in v0.9.0
func (a *SponsorshipScriptAction) SenderPK() *crypto.PublicKey
func (*SponsorshipScriptAction) ToProtobuf ¶ added in v0.7.0
func (a *SponsorshipScriptAction) ToProtobuf() *g.InvokeScriptResult_SponsorFee
type SponsorshipSnapshot ¶ added in v0.11.0
type SponsorshipSnapshot struct {
AssetID crypto.Digest `json:"id"`
MinSponsoredFee uint64 `json:"minSponsoredAssetFee"`
}
func (SponsorshipSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s SponsorshipSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (SponsorshipSnapshot) Apply ¶ added in v0.11.0
func (s SponsorshipSnapshot) Apply(a SnapshotApplier) error
func (*SponsorshipSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *SponsorshipSnapshot) FromProtobuf(p *g.TransactionStateSnapshot_Sponsorship) error
func (SponsorshipSnapshot) ToProtobuf ¶ added in v0.11.0
func (s SponsorshipSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_Sponsorship, error)
type SponsorshipWithProofs ¶ added in v0.5.0
type SponsorshipWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
AssetID crypto.Digest `json:"assetId"`
MinAssetFee uint64 `json:"minSponsoredAssetFee"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
SponsorshipWithProofs is a transaction to set up fee sponsorship for an asset.
func NewUnsignedSponsorshipWithProofs ¶ added in v0.5.0
func NewUnsignedSponsorshipWithProofs(v byte, senderPK crypto.PublicKey, assetID crypto.Digest, minAssetFee, fee, timestamp uint64) *SponsorshipWithProofs
NewUnsignedSponsorshipWithProofs creates new unsigned SponsorshipWithProofs transaction
func (SponsorshipWithProofs) BinarySize ¶ added in v0.5.0
func (tx SponsorshipWithProofs) BinarySize() int
func (*SponsorshipWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*SponsorshipWithProofs) Clone ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) Clone() *SponsorshipWithProofs
func (*SponsorshipWithProofs) GenerateID ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) GenerateID(scheme Scheme) error
func (SponsorshipWithProofs) GetFee ¶ added in v0.5.0
func (tx SponsorshipWithProofs) GetFee() uint64
func (SponsorshipWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx SponsorshipWithProofs) GetFeeAsset() OptionalAsset
func (*SponsorshipWithProofs) GetID ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) GetID(scheme Scheme) ([]byte, error)
func (SponsorshipWithProofs) GetSender ¶ added in v0.10.0
func (tx SponsorshipWithProofs) GetSender(scheme Scheme) (Address, error)
func (SponsorshipWithProofs) GetSenderPK ¶ added in v0.5.0
func (tx SponsorshipWithProofs) GetSenderPK() crypto.PublicKey
func (SponsorshipWithProofs) GetTimestamp ¶ added in v0.5.0
func (tx SponsorshipWithProofs) GetTimestamp() uint64
func (SponsorshipWithProofs) GetType ¶ added in v0.11.0
func (tx SponsorshipWithProofs) GetType() TransactionType
func (SponsorshipWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx SponsorshipWithProofs) GetTypeInfo() TransactionTypeInfo
func (SponsorshipWithProofs) GetVersion ¶ added in v0.5.0
func (tx SponsorshipWithProofs) GetVersion() byte
func (*SponsorshipWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary writes SponsorshipWithProofs transaction to its byte representation.
func (*SponsorshipWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*SponsorshipWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*SponsorshipWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *SponsorshipWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*SponsorshipWithProofs) Sign ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*SponsorshipWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*SponsorshipWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*SponsorshipWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads SponsorshipWithProofs from its byte representation.
func (*SponsorshipWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*SponsorshipWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *SponsorshipWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*SponsorshipWithProofs) Validate ¶ added in v0.8.0
func (tx *SponsorshipWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type StateActionsCounter ¶ added in v0.10.5
type StateActionsCounter struct {
// contains filtered or unexported fields
}
func (*StateActionsCounter) NextIssueActionNumber ¶ added in v0.10.5
func (c *StateActionsCounter) NextIssueActionNumber() uint32
type StateHash ¶ added in v0.6.0
type StateHash interface {
json.Marshaler
json.Unmarshaler
GetBlockID() BlockID
GetSumHash() crypto.Digest
GetFieldsHashes() json.Marshaler
Equal(StateHash) bool
GenerateSumHash(prevSumHash []byte) error
MarshalBinary() ([]byte, error)
UnmarshalBinary(data []byte) error
}
func EmptyLegacyStateHash ¶ added in v0.11.0
EmptyLegacyStateHash creates an empty legacy StateHash depending on whether the Deterministic Finality feature is activated.
func NewLegacyStateHash ¶ added in v0.11.0
func NewLegacyStateHash( blockID BlockID, fh FieldsHashesV1, f LegacyStateHashFeatureActivated, option ...LegacyStateHashOption, ) (StateHash, error)
NewLegacyStateHash creates a new legacy StateHash depending on whether the Deterministic Finality feature is activated. When finality is activated, both generatorsHash and generatorsBalancesHash must be provided via LegacyStateHashV2Opt, otherwise NewLegacyStateHash returns an error.
type StateHashDebug ¶ added in v0.10.4
type StateHashDebug interface {
GetBlockID() BlockID
GetSumHash() crypto.Digest
GetSnapshotHash() crypto.Digest
GetStateHash() StateHash
}
func NewStateHashDebug ¶ added in v0.11.0
func NewStateHashDebug( finalityActivated bool, stateHash StateHash, heigh Height, ver string, snapSH crypto.Digest, bt uint64, ) (StateHashDebug, error)
NewStateHashDebug creates a new StateHashDebug instance depending on whether the Deterministic Finality feature is activated.
type StateHashDebugV1 ¶ added in v0.11.0
type StateHashDebugV1 struct {
Height uint64 `json:"height,omitempty"`
Version string `json:"version,omitempty"`
SnapshotHash crypto.Digest `json:"snapshotHash"`
// contains filtered or unexported fields
}
func NewStateHashDebugV1 ¶ added in v0.11.0
func NewStateHashDebugV1(s StateHashV1, h uint64, v string, snapshotStateHash crypto.Digest) *StateHashDebugV1
func (StateHashDebugV1) GetBlockID ¶ added in v0.11.0
func (s StateHashDebugV1) GetBlockID() BlockID
func (StateHashDebugV1) GetSnapshotHash ¶ added in v0.11.0
func (s StateHashDebugV1) GetSnapshotHash() crypto.Digest
func (StateHashDebugV1) GetStateHash ¶ added in v0.11.0
func (s StateHashDebugV1) GetStateHash() StateHash
func (StateHashDebugV1) GetSumHash ¶ added in v0.11.0
func (s StateHashDebugV1) GetSumHash() crypto.Digest
type StateHashDebugV2 ¶ added in v0.11.0
type StateHashDebugV2 struct {
Height uint64 `json:"height,omitempty"`
Version string `json:"version,omitempty"`
SnapshotHash crypto.Digest `json:"snapshotHash"`
BaseTarget uint64 `json:"baseTarget,omitempty"`
// contains filtered or unexported fields
}
func NewStateHashDebugV2 ¶ added in v0.11.0
func NewStateHashDebugV2( s StateHashV2, h uint64, v string, snapshotStateHash crypto.Digest, baseTarget uint64, ) *StateHashDebugV2
func (StateHashDebugV2) GetBlockID ¶ added in v0.11.0
func (s StateHashDebugV2) GetBlockID() BlockID
func (StateHashDebugV2) GetSnapshotHash ¶ added in v0.11.0
func (s StateHashDebugV2) GetSnapshotHash() crypto.Digest
func (StateHashDebugV2) GetStateHash ¶ added in v0.11.0
func (s StateHashDebugV2) GetStateHash() StateHash
func (StateHashDebugV2) GetSumHash ¶ added in v0.11.0
func (s StateHashDebugV2) GetSumHash() crypto.Digest
type StateHashV1 ¶ added in v0.11.0
type StateHashV1 struct {
BlockID BlockID
SumHash crypto.Digest
FieldsHashesV1
}
StateHashV1 is the legacy state hash structure used prior the activation of Deterministic Finality feature.
func (*StateHashV1) Equal ¶ added in v0.11.0
func (s *StateHashV1) Equal(other StateHash) bool
func (*StateHashV1) GenerateSumHash ¶ added in v0.11.0
func (s *StateHashV1) GenerateSumHash(prevSumHash []byte) error
func (*StateHashV1) GetBlockID ¶ added in v0.11.0
func (s *StateHashV1) GetBlockID() BlockID
func (*StateHashV1) GetFieldsHashes ¶ added in v0.11.0
func (s *StateHashV1) GetFieldsHashes() json.Marshaler
func (*StateHashV1) GetSumHash ¶ added in v0.11.0
func (s *StateHashV1) GetSumHash() crypto.Digest
func (*StateHashV1) MarshalBinary ¶ added in v0.11.0
func (s *StateHashV1) MarshalBinary() ([]byte, error)
func (StateHashV1) MarshalJSON ¶ added in v0.11.0
func (s StateHashV1) MarshalJSON() ([]byte, error)
func (*StateHashV1) UnmarshalBinary ¶ added in v0.11.0
func (s *StateHashV1) UnmarshalBinary(data []byte) error
func (*StateHashV1) UnmarshalJSON ¶ added in v0.11.0
func (s *StateHashV1) UnmarshalJSON(value []byte) error
type StateHashV2 ¶ added in v0.11.0
type StateHashV2 struct {
BlockID BlockID
SumHash crypto.Digest
FieldsHashesV2
}
StateHashV2 is the legacy state hash structure used after the activation of Deterministic Finality feature.
func (*StateHashV2) Equal ¶ added in v0.11.0
func (s *StateHashV2) Equal(other StateHash) bool
func (*StateHashV2) GenerateSumHash ¶ added in v0.11.0
func (s *StateHashV2) GenerateSumHash(prevSumHash []byte) error
func (*StateHashV2) GetBlockID ¶ added in v0.11.0
func (s *StateHashV2) GetBlockID() BlockID
func (*StateHashV2) GetFieldsHashes ¶ added in v0.11.0
func (s *StateHashV2) GetFieldsHashes() json.Marshaler
func (*StateHashV2) GetSumHash ¶ added in v0.11.0
func (s *StateHashV2) GetSumHash() crypto.Digest
func (*StateHashV2) MarshalBinary ¶ added in v0.11.0
func (s *StateHashV2) MarshalBinary() ([]byte, error)
func (StateHashV2) MarshalJSON ¶ added in v0.11.0
func (s StateHashV2) MarshalJSON() ([]byte, error)
func (*StateHashV2) UnmarshalBinary ¶ added in v0.11.0
func (s *StateHashV2) UnmarshalBinary(data []byte) error
func (*StateHashV2) UnmarshalJSON ¶ added in v0.11.0
func (s *StateHashV2) UnmarshalJSON(value []byte) error
type StringArgument ¶ added in v0.3.0
type StringArgument struct {
Value string
}
StringArgument structure is an argument that store a string value.
func NewStringArgument ¶ added in v0.3.0
func NewStringArgument(s string) *StringArgument
func (*StringArgument) BinarySize ¶ added in v0.5.0
func (a *StringArgument) BinarySize() int
func (*StringArgument) GetValueType ¶ added in v0.3.0
func (a *StringArgument) GetValueType() ArgumentValueType
GetValueType returns the type of value of the argument.
func (*StringArgument) MarshalBinary ¶ added in v0.3.0
func (a *StringArgument) MarshalBinary() ([]byte, error)
MarshalBinary converts the argument to its byte representation.
func (*StringArgument) MarshalJSON ¶ added in v0.3.0
func (a *StringArgument) MarshalJSON() ([]byte, error)
MarshalJSON writes the entry to its JSON representation.
func (*StringArgument) Serialize ¶ added in v0.3.0
func (a *StringArgument) Serialize(s *serializer.Serializer) error
Serialize argument to its byte representation.
func (*StringArgument) UnmarshalBinary ¶ added in v0.3.0
func (a *StringArgument) UnmarshalBinary(data []byte) error
UnmarshalBinary reads an StringArgument structure from bytes.
func (*StringArgument) UnmarshalJSON ¶ added in v0.3.0
func (a *StringArgument) UnmarshalJSON(value []byte) error
UnmarshalJSON reads the entry from JSON.
type StringDataEntry ¶
StringDataEntry structure is a key-value pair to store a string value.
func (StringDataEntry) BinarySize ¶ added in v0.5.0
func (e StringDataEntry) BinarySize() int
func (StringDataEntry) GetKey ¶
func (e StringDataEntry) GetKey() string
GetKey returns the key of key-value pair.
func (StringDataEntry) GetValueType ¶
func (e StringDataEntry) GetValueType() DataValueType
GetValueType returns the type of value in key-value entry.
func (StringDataEntry) MarshalBinary ¶
func (e StringDataEntry) MarshalBinary() ([]byte, error)
MarshalBinary converts the data entry to its byte representation.
func (StringDataEntry) MarshalJSON ¶
func (e StringDataEntry) MarshalJSON() ([]byte, error)
MarshalJSON writes the entry to its JSON representation.
func (StringDataEntry) MarshalValue ¶ added in v0.3.0
func (e StringDataEntry) MarshalValue() ([]byte, error)
MarshalValue converts the data entry value to its byte representation.
func (*StringDataEntry) MarshaledValueSize ¶ added in v0.11.0
func (e *StringDataEntry) MarshaledValueSize() int
func (StringDataEntry) PayloadSize ¶ added in v0.10.0
func (e StringDataEntry) PayloadSize() int
func (*StringDataEntry) SetKey ¶ added in v0.3.0
func (e *StringDataEntry) SetKey(key string)
SetKey sets the key of data entry.
func (StringDataEntry) ToProtobuf ¶ added in v0.5.0
func (e StringDataEntry) ToProtobuf() *g.DataEntry
func (*StringDataEntry) UnmarshalBinary ¶
func (e *StringDataEntry) UnmarshalBinary(data []byte) error
UnmarshalBinary reads StringDataEntry structure from bytes.
func (*StringDataEntry) UnmarshalJSON ¶
func (e *StringDataEntry) UnmarshalJSON(value []byte) error
UnmarshalJSON reads the entry from JSON.
func (*StringDataEntry) UnmarshalValue ¶ added in v0.3.0
func (e *StringDataEntry) UnmarshalValue(data []byte) error
UnmarshalValue reads StringDataEntry value from bytes.
func (StringDataEntry) Valid ¶ added in v0.3.0
func (e StringDataEntry) Valid(forbidEmptyKey, utf16KeyLen bool) error
func (*StringDataEntry) WriteValueTo ¶ added in v0.11.0
func (e *StringDataEntry) WriteValueTo(w io.Writer) error
type TCPAddr ¶ added in v0.3.0
func NewTCPAddrFromString ¶ added in v0.3.0
NewTCPAddrFromString creates TCPAddr from string. Returns empty TCPAddr if string can't be parsed.
func NewTcpAddrFromUint64
deprecated
added in
v0.8.1
func (TCPAddr) Empty ¶ added in v0.3.0
Empty checks if IP of TCPAddr is empty or unspecified (e.g., 0.0.0.0 or ::).
func (TCPAddr) EmptyNoPort ¶ added in v0.11.0
EmptyNoPort checks if IP of TCPAddr is empty AND port is 0.
type Transaction ¶ added in v0.1.2
type Transaction interface {
// GetTypeInfo returns information which describes which Golang structure
// we deal with (tx type + proof/signature flag).
// <TODO>:
// This is temporary workaround until we have the same struct for both
// Signature and Proofs transactions.
GetTypeInfo() TransactionTypeInfo
GetType() TransactionType
GetVersion() byte
GetID(scheme Scheme) ([]byte, error)
GetSender(scheme Scheme) (Address, error)
GetFee() uint64
GetFeeAsset() OptionalAsset
GetTimestamp() uint64
// Validate checks that all transaction fields are valid.
// This includes ranges checks, and sanity checks specific for each transaction type:
// for example, negative amounts for transfers.
Validate(params TransactionValidationParams) (Transaction, error)
// GenerateID sets transaction ID.
// For most transactions ID is hash of transaction body.
// For Payment transactions ID is Signature.
GenerateID(scheme Scheme) error
// Sign transaction with given secret key.
// It also sets transaction ID.
Sign(scheme Scheme, sk crypto.SecretKey) error
// MerkleBytes returns array of bytes for block's merle root calculation
MerkleBytes(scheme Scheme) ([]byte, error)
// MarshalBinary functions for custom binary format serialization.
// MarshalBinary() is analogous to MarshalSignedToProtobuf() for Protobuf.
MarshalBinary(Scheme) ([]byte, error)
// UnmarshalBinary parse Bytes without signature.
UnmarshalBinary([]byte, Scheme) error
// BodyMarshalBinary is analogous to MarshalToProtobuf() for Protobuf.
BodyMarshalBinary(Scheme) ([]byte, error)
// BinarySize gets size in bytes in binary format.
BinarySize() int
// Protobuf-related functions.
// Conversion to/from Protobuf wire byte format.
MarshalToProtobuf(scheme Scheme) ([]byte, error)
UnmarshalFromProtobuf([]byte) error
MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
UnmarshalSignedFromProtobuf([]byte) error
// Conversion to Protobuf types.
ToProtobuf(scheme Scheme) (*g.Transaction, error)
ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
}
Transaction is a set of common transaction functions.
func BytesToTransaction ¶ added in v0.2.0
func BytesToTransaction(tx []byte, scheme Scheme) (Transaction, error)
func BytesToTransactions ¶ added in v0.3.0
func BytesToTransactions(count int, txs []byte, scheme Scheme) ([]Transaction, error)
func GuessTransactionType ¶ added in v0.3.0
func GuessTransactionType(t *TransactionTypeVersion) (Transaction, error)
GuessTransactionType guesses transaction from type and version.
func SignedTxFromProtobuf ¶ added in v0.5.0
func SignedTxFromProtobuf(data []byte) (Transaction, error)
func TxFromProtobuf ¶ added in v0.5.0
func TxFromProtobuf(data []byte) (Transaction, error)
type TransactionMessage ¶
type TransactionMessage struct {
Transaction BytesPayload
}
TransactionMessage represents TransactionsSend message
func (*TransactionMessage) IsMessage ¶ added in v0.11.0
func (m *TransactionMessage) IsMessage()
func (*TransactionMessage) MarshalBinary ¶
func (m *TransactionMessage) MarshalBinary() ([]byte, error)
MarshalBinary encodes TransactionMessage to binary form
func (*TransactionMessage) ReadFrom ¶
func (m *TransactionMessage) ReadFrom(r io.Reader) (int64, error)
ReadFrom reads TransactionMessage from io.Reader
func (*TransactionMessage) SetPayload ¶ added in v0.11.0
func (m *TransactionMessage) SetPayload(payload Payload) (Message, error)
func (*TransactionMessage) UnmarshalBinary ¶
func (m *TransactionMessage) UnmarshalBinary(data []byte) error
UnmarshalBinary decodes TransactionMessage from binary form
type TransactionProofVersion ¶ added in v0.5.0
type TransactionProofVersion byte
const ( Signature TransactionProofVersion = iota + 1 Proof )
type TransactionStatus ¶ added in v0.11.0
type TransactionStatus byte
const ( TransactionSucceeded TransactionStatus TransactionFailed TransactionElided )
func (TransactionStatus) IsNotSucceeded ¶ added in v0.11.0
func (s TransactionStatus) IsNotSucceeded() bool
func (TransactionStatus) MarshalJSON ¶ added in v0.11.0
func (s TransactionStatus) MarshalJSON() ([]byte, error)
func (TransactionStatus) String ¶ added in v0.11.0
func (s TransactionStatus) String() string
func (*TransactionStatus) UnmarshalJSON ¶ added in v0.11.0
func (s *TransactionStatus) UnmarshalJSON(b []byte) error
type TransactionStatusSnapshot ¶ added in v0.11.0
type TransactionStatusSnapshot struct {
Status TransactionStatus `json:"transactionStatus"` // this is not canonical json representation
}
func (TransactionStatusSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s TransactionStatusSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (TransactionStatusSnapshot) Apply ¶ added in v0.11.0
func (s TransactionStatusSnapshot) Apply(a SnapshotApplier) error
func (*TransactionStatusSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *TransactionStatusSnapshot) FromProtobuf(p g.TransactionStatus) error
type TransactionType ¶
type TransactionType byte
const ( GenesisTransaction TransactionType = iota + 1 // 1 - Genesis transaction PaymentTransaction // 2 - Payment transaction IssueTransaction // 3 - Issue transaction TransferTransaction // 4 - Transfer transaction ReissueTransaction // 5 - Reissue transaction BurnTransaction // 6 - Burn transaction ExchangeTransaction // 7 - Exchange transaction LeaseTransaction // 8 - Lease transaction LeaseCancelTransaction // 9 - LeaseCancel transaction CreateAliasTransaction // 10 - CreateAlias transaction MassTransferTransaction // 11 - MassTransfer transaction DataTransaction // 12 - Data transaction SetScriptTransaction // 13 - SetScript transaction SponsorshipTransaction // 14 - Sponsorship transaction SetAssetScriptTransaction // 15 - SetAssetScript transaction InvokeScriptTransaction // 16 - InvokeScript transaction UpdateAssetInfoTransaction // 17 - UpdateAssetInfo transaction EthereumMetamaskTransaction // 18 - EthereumMetamask transaction: received from MetaMask CommitToGenerationTransaction // 19 - CommitToGeneration transaction InvokeExpressionTransaction // 20 - InvokeExpression transaction )
All transaction types supported.
func (TransactionType) String ¶ added in v0.11.0
func (i TransactionType) String() string
type TransactionTypeInfo ¶ added in v0.5.0
type TransactionTypeInfo struct {
Type TransactionType
ProofVersion TransactionProofVersion
}
func (TransactionTypeInfo) String ¶ added in v0.8.0
func (a TransactionTypeInfo) String() string
type TransactionTypeVersion ¶ added in v0.3.0
type TransactionTypeVersion struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
}
type TransactionValidationParams ¶ added in v0.11.0
TransactionValidationParams contains parameters for transaction validation.
type Transactions ¶ added in v0.3.0
type Transactions []Transaction
func NewTransactionsFromBytes ¶ added in v0.5.0
func NewTransactionsFromBytes(data []byte, count int, scheme Scheme) (Transactions, error)
func (Transactions) BinarySize ¶ added in v0.5.0
func (a Transactions) BinarySize() int
func (Transactions) Count ¶ added in v0.3.0
func (a Transactions) Count() int
func (Transactions) Join ¶ added in v0.5.0
func (a Transactions) Join(other Transactions) Transactions
func (Transactions) MarshalBinary ¶ added in v0.5.0
func (a Transactions) MarshalBinary(scheme Scheme) ([]byte, error)
func (Transactions) MarshalJSON ¶ added in v0.5.0
func (a Transactions) MarshalJSON() ([]byte, error)
func (Transactions) ToProtobuf ¶ added in v0.5.0
func (a Transactions) ToProtobuf(scheme Scheme) ([]*g.SignedTransaction, error)
func (*Transactions) UnmarshalFromProtobuf ¶ added in v0.5.0
func (a *Transactions) UnmarshalFromProtobuf(data []byte) error
func (*Transactions) UnmarshalJSON ¶ added in v0.5.0
func (a *Transactions) UnmarshalJSON(data []byte) error
func (Transactions) WriteToBinary ¶ added in v0.8.0
type Transfer ¶ added in v0.3.0
type Transfer struct {
SenderPK crypto.PublicKey `json:"senderPublicKey"`
AmountAsset OptionalAsset `json:"assetId"`
FeeAsset OptionalAsset `json:"feeAssetId"`
Timestamp uint64 `json:"timestamp,omitempty"`
Amount uint64 `json:"amount"`
Fee uint64 `json:"fee"`
Recipient Recipient `json:"recipient"`
Attachment Attachment `json:"attachment,omitempty"`
}
func (Transfer) BinarySize ¶ added in v0.5.0
func (Transfer) GetAttachment ¶ added in v0.8.0
func (Transfer) GetFeeAsset ¶ added in v0.11.0
func (tr Transfer) GetFeeAsset() OptionalAsset
func (Transfer) GetSenderPK ¶ added in v0.3.0
func (Transfer) GetTimestamp ¶ added in v0.3.0
func (*Transfer) Serialize ¶ added in v0.3.0
func (tr *Transfer) Serialize(s *serializer.Serializer) error
func (*Transfer) ToProtobuf ¶ added in v0.5.0
func (tr *Transfer) ToProtobuf() (*g.Transaction_Transfer, error)
func (*Transfer) UnmarshalBinary ¶ added in v0.5.0
type TransferScriptAction ¶ added in v0.5.0
type TransferScriptAction struct {
Sender *crypto.PublicKey
Recipient Recipient
Amount int64
Asset OptionalAsset
}
TransferScriptAction is an action to emit transfer of asset.
func (*TransferScriptAction) GroupType ¶ added in v0.10.0
func (a *TransferScriptAction) GroupType() ScriptActionGroupType
func (*TransferScriptAction) SenderPK ¶ added in v0.9.0
func (a *TransferScriptAction) SenderPK() *crypto.PublicKey
func (*TransferScriptAction) ToProtobuf ¶ added in v0.5.0
func (a *TransferScriptAction) ToProtobuf() (*g.InvokeScriptResult_Payment, error)
type TransferWithProofs ¶ added in v0.5.0
type TransferWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
Transfer
}
TransferWithProofs transaction to transfer any token from one account to another. Version 2.
func NewUnsignedTransferWithProofs ¶ added in v0.5.0
func NewUnsignedTransferWithProofs(v byte, senderPK crypto.PublicKey, amountAsset, feeAsset OptionalAsset, timestamp, amount, fee uint64, recipient Recipient, attachment Attachment) *TransferWithProofs
NewUnsignedTransferWithProofs creates new TransferWithProofs transaction without proofs and ID.
func (TransferWithProofs) BinarySize ¶ added in v0.5.0
func (tx TransferWithProofs) BinarySize() int
func (*TransferWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *TransferWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*TransferWithProofs) BodySerialize ¶ added in v0.5.0
func (tx *TransferWithProofs) BodySerialize(s *serializer.Serializer) error
func (*TransferWithProofs) BodyUnmarshalBinary ¶ added in v0.5.0
func (tx *TransferWithProofs) BodyUnmarshalBinary(data []byte) error
func (*TransferWithProofs) Clone ¶ added in v0.5.0
func (tx *TransferWithProofs) Clone() *TransferWithProofs
func (*TransferWithProofs) GenerateID ¶ added in v0.5.0
func (tx *TransferWithProofs) GenerateID(scheme Scheme) error
func (*TransferWithProofs) GetID ¶ added in v0.5.0
func (tx *TransferWithProofs) GetID(scheme Scheme) ([]byte, error)
func (TransferWithProofs) GetProofs ¶ added in v0.8.0
func (tx TransferWithProofs) GetProofs() *ProofsV1
func (TransferWithProofs) GetSenderPK ¶ added in v0.11.0
func (tx TransferWithProofs) GetSenderPK() crypto.PublicKey
func (TransferWithProofs) GetType ¶ added in v0.11.0
func (tx TransferWithProofs) GetType() TransactionType
func (TransferWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx TransferWithProofs) GetTypeInfo() TransactionTypeInfo
func (TransferWithProofs) GetVersion ¶ added in v0.5.0
func (tx TransferWithProofs) GetVersion() byte
func (*TransferWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *TransferWithProofs) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary writes TransferWithProofs transaction to its byte representation.
func (*TransferWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *TransferWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*TransferWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *TransferWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*TransferWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *TransferWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*TransferWithProofs) Serialize ¶ added in v0.5.0
func (tx *TransferWithProofs) Serialize(s *serializer.Serializer) error
func (*TransferWithProofs) Sign ¶ added in v0.5.0
func (tx *TransferWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign adds signature as a proof at first position.
func (*TransferWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *TransferWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*TransferWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *TransferWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*TransferWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *TransferWithProofs) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads TransferWithProofs from its byte representation.
func (*TransferWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *TransferWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*TransferWithProofs) UnmarshalJSON ¶ added in v0.5.0
func (tx *TransferWithProofs) UnmarshalJSON(data []byte) error
func (*TransferWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *TransferWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*TransferWithProofs) Validate ¶ added in v0.8.0
func (tx *TransferWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type TransferWithSig ¶ added in v0.5.0
type TransferWithSig struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Signature *crypto.Signature `json:"signature,omitempty"`
Transfer
}
TransferWithSig transaction to transfer any token from one account to another. Version 1.
func NewUnsignedTransferWithSig ¶ added in v0.5.0
func NewUnsignedTransferWithSig(senderPK crypto.PublicKey, amountAsset, feeAsset OptionalAsset, timestamp, amount, fee uint64, recipient Recipient, attachment Attachment) *TransferWithSig
NewUnsignedTransferWithSig creates new TransferWithSig transaction without signature and ID.
func (TransferWithSig) BinarySize ¶ added in v0.5.0
func (tx TransferWithSig) BinarySize() int
func (*TransferWithSig) BodyMarshalBinary ¶ added in v0.5.0
func (tx *TransferWithSig) BodyMarshalBinary(Scheme) ([]byte, error)
func (*TransferWithSig) BodySerialize ¶ added in v0.5.0
func (tx *TransferWithSig) BodySerialize(s *serializer.Serializer) error
func (*TransferWithSig) Clone ¶ added in v0.5.0
func (tx *TransferWithSig) Clone() *TransferWithSig
func (*TransferWithSig) GenerateID ¶ added in v0.5.0
func (tx *TransferWithSig) GenerateID(scheme Scheme) error
func (*TransferWithSig) GetID ¶ added in v0.5.0
func (tx *TransferWithSig) GetID(scheme Scheme) ([]byte, error)
func (TransferWithSig) GetProofs ¶ added in v0.8.0
func (tx TransferWithSig) GetProofs() *ProofsV1
func (TransferWithSig) GetType ¶ added in v0.11.0
func (tx TransferWithSig) GetType() TransactionType
func (TransferWithSig) GetTypeInfo ¶ added in v0.5.0
func (tx TransferWithSig) GetTypeInfo() TransactionTypeInfo
func (TransferWithSig) GetVersion ¶ added in v0.5.0
func (tx TransferWithSig) GetVersion() byte
func (*TransferWithSig) MarshalBinary ¶ added in v0.5.0
func (tx *TransferWithSig) MarshalBinary(scheme Scheme) ([]byte, error)
MarshalBinary saves transaction to its binary representation.
func (*TransferWithSig) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *TransferWithSig) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*TransferWithSig) MarshalToProtobuf ¶ added in v0.5.0
func (tx *TransferWithSig) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*TransferWithSig) MerkleBytes ¶ added in v0.10.0
func (tx *TransferWithSig) MerkleBytes(scheme Scheme) ([]byte, error)
func (*TransferWithSig) Serialize ¶ added in v0.5.0
func (tx *TransferWithSig) Serialize(s *serializer.Serializer) error
func (*TransferWithSig) Sign ¶ added in v0.5.0
func (tx *TransferWithSig) Sign(scheme Scheme, secretKey crypto.SecretKey) error
Sign calculates a signature and a digest as an ID of the transaction.
func (*TransferWithSig) ToProtobuf ¶ added in v0.5.0
func (tx *TransferWithSig) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*TransferWithSig) ToProtobufSigned ¶ added in v0.5.0
func (tx *TransferWithSig) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*TransferWithSig) UnmarshalBinary ¶ added in v0.5.0
func (tx *TransferWithSig) UnmarshalBinary(data []byte, scheme Scheme) error
UnmarshalBinary reads transaction from its binary representation.
func (*TransferWithSig) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *TransferWithSig) UnmarshalFromProtobuf(data []byte) error
func (*TransferWithSig) UnmarshalJSON ¶ added in v0.5.0
func (tx *TransferWithSig) UnmarshalJSON(data []byte) error
func (*TransferWithSig) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *TransferWithSig) UnmarshalSignedFromProtobuf(data []byte) error
func (*TransferWithSig) Validate ¶ added in v0.8.0
func (tx *TransferWithSig) Validate(params TransactionValidationParams) (Transaction, error)
type TxFailureReason ¶ added in v0.7.0
type TxFailureReason byte
TxFailureReason indicates Transactions failure reasons.
const ( DAppError TxFailureReason = iota + 1 InsufficientActionsFee SmartAssetOnActionFailure SmartAssetOnPaymentFailure )
type U8String ¶ added in v0.3.0
type U8String struct {
S string
}
func NewU8String ¶ added in v0.3.0
func (U8String) MarshalBinary ¶ added in v0.3.0
MarshalBinary encodes U8String to binary form with a one byte length prefix.
type UpdateAssetInfoWithProofs ¶ added in v0.5.0
type UpdateAssetInfoWithProofs struct {
Type TransactionType `json:"type"`
Version byte `json:"version,omitempty"`
ID *crypto.Digest `json:"id,omitempty"`
Proofs *ProofsV1 `json:"proofs,omitempty"`
SenderPK crypto.PublicKey `json:"senderPublicKey"`
AssetID crypto.Digest `json:"assetId"`
Name string `json:"name"`
Description string `json:"description"`
FeeAsset OptionalAsset `json:"feeAssetId"`
Fee uint64 `json:"fee"`
Timestamp uint64 `json:"timestamp,omitempty"`
}
func NewUnsignedUpdateAssetInfoWithProofs ¶ added in v0.5.0
func NewUnsignedUpdateAssetInfoWithProofs(v byte, assetID crypto.Digest, senderPK crypto.PublicKey, name, description string, timestamp uint64, feeAsset OptionalAsset, fee uint64) *UpdateAssetInfoWithProofs
func (*UpdateAssetInfoWithProofs) BinarySize ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) BinarySize() int
func (*UpdateAssetInfoWithProofs) BodyMarshalBinary ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) BodyMarshalBinary(Scheme) ([]byte, error)
func (*UpdateAssetInfoWithProofs) GenerateID ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) GenerateID(scheme Scheme) error
func (UpdateAssetInfoWithProofs) GetFee ¶ added in v0.5.0
func (tx UpdateAssetInfoWithProofs) GetFee() uint64
func (UpdateAssetInfoWithProofs) GetFeeAsset ¶ added in v0.11.0
func (tx UpdateAssetInfoWithProofs) GetFeeAsset() OptionalAsset
func (*UpdateAssetInfoWithProofs) GetID ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) GetID(scheme Scheme) ([]byte, error)
func (UpdateAssetInfoWithProofs) GetSender ¶ added in v0.10.0
func (tx UpdateAssetInfoWithProofs) GetSender(scheme Scheme) (Address, error)
func (UpdateAssetInfoWithProofs) GetSenderPK ¶ added in v0.5.0
func (tx UpdateAssetInfoWithProofs) GetSenderPK() crypto.PublicKey
func (UpdateAssetInfoWithProofs) GetTimestamp ¶ added in v0.5.0
func (tx UpdateAssetInfoWithProofs) GetTimestamp() uint64
func (UpdateAssetInfoWithProofs) GetType ¶ added in v0.11.0
func (tx UpdateAssetInfoWithProofs) GetType() TransactionType
func (UpdateAssetInfoWithProofs) GetTypeInfo ¶ added in v0.5.0
func (tx UpdateAssetInfoWithProofs) GetTypeInfo() TransactionTypeInfo
func (UpdateAssetInfoWithProofs) GetVersion ¶ added in v0.5.0
func (tx UpdateAssetInfoWithProofs) GetVersion() byte
func (*UpdateAssetInfoWithProofs) MarshalBinary ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) MarshalBinary(Scheme) ([]byte, error)
func (*UpdateAssetInfoWithProofs) MarshalSignedToProtobuf ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) MarshalSignedToProtobuf(scheme Scheme) ([]byte, error)
func (*UpdateAssetInfoWithProofs) MarshalToProtobuf ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) MarshalToProtobuf(scheme Scheme) ([]byte, error)
func (*UpdateAssetInfoWithProofs) MerkleBytes ¶ added in v0.10.0
func (tx *UpdateAssetInfoWithProofs) MerkleBytes(scheme Scheme) ([]byte, error)
func (*UpdateAssetInfoWithProofs) Sign ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) Sign(scheme Scheme, secretKey crypto.SecretKey) error
func (*UpdateAssetInfoWithProofs) ToProtobuf ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) ToProtobuf(scheme Scheme) (*g.Transaction, error)
func (*UpdateAssetInfoWithProofs) ToProtobufSigned ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) ToProtobufSigned(scheme Scheme) (*g.SignedTransaction, error)
func (*UpdateAssetInfoWithProofs) UnmarshalBinary ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) UnmarshalBinary(_ []byte, _ Scheme) error
func (*UpdateAssetInfoWithProofs) UnmarshalFromProtobuf ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) UnmarshalFromProtobuf(data []byte) error
func (*UpdateAssetInfoWithProofs) UnmarshalSignedFromProtobuf ¶ added in v0.5.0
func (tx *UpdateAssetInfoWithProofs) UnmarshalSignedFromProtobuf(data []byte) error
func (*UpdateAssetInfoWithProofs) Validate ¶ added in v0.8.0
func (tx *UpdateAssetInfoWithProofs) Validate(params TransactionValidationParams) (Transaction, error)
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version represents the version of the protocol
func NewVersion ¶ added in v0.6.0
func NewVersionFromString ¶ added in v0.3.0
func ProtocolVersion ¶ added in v0.10.0
func ProtocolVersion() Version
func (Version) CmpMinor ¶ added in v0.8.1
CmpMinor compares minor version. If equal return 0. If diff only 1 version (for example 1.14 and 1.13), then 1 If more than 1 version, then return 2.
func (Version) MarshalJSON ¶ added in v0.3.0
type WavesAddress ¶ added in v0.10.0
type WavesAddress [WavesAddressSize]byte
WavesAddress is the transformed Public Key with additional bytes of the version, a blockchain scheme and a checksum.
func MustAddressFromPublicKey ¶ added in v0.3.0
func MustAddressFromPublicKey(scheme byte, publicKey crypto.PublicKey) WavesAddress
func MustAddressFromString ¶ added in v0.8.0
func MustAddressFromString(s string) WavesAddress
func NewAddressFromBytes ¶
func NewAddressFromBytes(b []byte) (WavesAddress, error)
NewAddressFromBytes creates an WavesAddress from the slice of bytes and checks that the result address is a valid address.
func NewAddressFromBytesChecked ¶ added in v0.10.4
func NewAddressFromBytesChecked(scheme Scheme, b []byte) (WavesAddress, error)
NewAddressFromBytesChecked creates an WavesAddress from the slice of bytes and checks that the result address is a valid address with valid scheme.
func NewAddressFromPublicKey ¶
func NewAddressFromPublicKey(scheme byte, publicKey crypto.PublicKey) (WavesAddress, error)
NewAddressFromPublicKey produces an WavesAddress from given scheme and Public Key bytes.
func NewAddressFromString ¶
func NewAddressFromString(s string) (WavesAddress, error)
NewAddressFromString creates an WavesAddress from its string representation. This function checks that the address is valid.
func NewAddressLikeFromAnyBytes ¶ added in v0.3.0
func NewAddressLikeFromAnyBytes(scheme byte, b []byte) (WavesAddress, error)
NewAddressLikeFromAnyBytes produces an WavesAddress from given scheme and bytes.
func RebuildAddress ¶ added in v0.3.0
func RebuildAddress(scheme Scheme, bodyBytes []byte) (WavesAddress, error)
func (WavesAddress) Body ¶ added in v0.10.0
func (a WavesAddress) Body() []byte
func (WavesAddress) Bytes ¶ added in v0.10.0
func (a WavesAddress) Bytes() []byte
Bytes converts the fixed-length byte array of the WavesAddress to a slice of bytes.
func (WavesAddress) Equal ¶ added in v0.10.0
func (a WavesAddress) Equal(address Address) bool
func (*WavesAddress) EthereumAddress ¶ added in v0.10.0
func (a *WavesAddress) EthereumAddress() EthereumAddress
func (WavesAddress) ID ¶ added in v0.10.0
func (a WavesAddress) ID() AddressID
func (WavesAddress) MarshalJSON ¶ added in v0.10.0
func (a WavesAddress) MarshalJSON() ([]byte, error)
MarshalJSON is the custom JSON marshal function for the WavesAddress.
func (WavesAddress) MarshalText ¶ added in v0.10.4
func (a WavesAddress) MarshalText() (text []byte, err error)
func (WavesAddress) Scheme ¶ added in v0.10.4
func (a WavesAddress) Scheme() Scheme
func (WavesAddress) String ¶ added in v0.10.0
func (a WavesAddress) String() string
String produces the BASE58 string representation of the WavesAddress.
func (WavesAddress) ToWavesAddress ¶ added in v0.10.0
func (a WavesAddress) ToWavesAddress(_ Scheme) (WavesAddress, error)
func (*WavesAddress) UnmarshalJSON ¶ added in v0.10.0
func (a *WavesAddress) UnmarshalJSON(value []byte) error
UnmarshalJSON tries to unmarshal an WavesAddress from it's JSON representation. This method does not perform validation of the result address.
func (*WavesAddress) UnmarshalText ¶ added in v0.10.4
func (a *WavesAddress) UnmarshalText(text []byte) error
type WavesBalanceSnapshot ¶ added in v0.11.0
type WavesBalanceSnapshot struct {
Address WavesAddress `json:"address"`
Balance uint64 `json:"balance"`
}
func (WavesBalanceSnapshot) AppendToProtobuf ¶ added in v0.11.0
func (s WavesBalanceSnapshot) AppendToProtobuf(txSnapshots *g.TransactionStateSnapshot) error
func (WavesBalanceSnapshot) Apply ¶ added in v0.11.0
func (s WavesBalanceSnapshot) Apply(a SnapshotApplier) error
func (*WavesBalanceSnapshot) FromProtobuf ¶ added in v0.11.0
func (s *WavesBalanceSnapshot) FromProtobuf(scheme Scheme, p *g.TransactionStateSnapshot_Balance) error
func (WavesBalanceSnapshot) MarshalJSON ¶ added in v0.11.0
func (s WavesBalanceSnapshot) MarshalJSON() ([]byte, error)
func (WavesBalanceSnapshot) ToProtobuf ¶ added in v0.11.0
func (s WavesBalanceSnapshot) ToProtobuf() (*g.TransactionStateSnapshot_Balance, error)
Source Files
¶
- actions_validator.go
- addresses.go
- asset.go
- block.go
- block_snapshot.go
- blockchain_updates_types.go
- common.go
- errors.go
- eth_access_list_tx.go
- eth_crypto.go
- eth_dynamic_fee_tx.go
- eth_hash.go
- eth_legacy_tx.go
- eth_math.go
- eth_signer.go
- eth_transaction.go
- eth_transaction_signing.go
- eth_tx_kind_resolver.go
- eth_typed_data.go
- eth_utils.go
- finalization.go
- info.go
- keypair.go
- lease.go
- legacy_state_hash.go
- microblock.go
- payloads.go
- proto.go
- protobuf_converters.go
- reward.go
- scripting.go
- snapshot_types.go
- transaction_validators.go
- transactions.go
- transactions_with_proofs.go
- transactions_with_sig.go
- transactiontype.go
- transactiontype_string.go
- types.go