types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArithmeticError_ArithmeticErrorType_name = map[int32]string{
	0: "UnknownArithmeticError",
	1: "Underflow",
	2: "Overflow",
	3: "DivisionByZero",
}
View Source
var ArithmeticError_ArithmeticErrorType_value = map[string]int32{
	"UnknownArithmeticError": 0,
	"Underflow":              1,
	"Overflow":               2,
	"DivisionByZero":         3,
}
View Source
var BinaryError_name = map[int32]string{
	0:  "UnknownBinaryError",
	1:  "Malformed",
	2:  "BadMagic",
	3:  "UnknownVersion",
	4:  "UnknownTableType",
	5:  "UnknownSignatureType",
	6:  "UnknownSerializedType",
	7:  "UnknownOpcode",
	8:  "BadHeaderTable",
	9:  "UnexpectedSignatureType",
	10: "DuplicateTable",
}
View Source
var BinaryError_value = map[string]int32{
	"UnknownBinaryError":      0,
	"Malformed":               1,
	"BadMagic":                2,
	"UnknownVersion":          3,
	"UnknownTableType":        4,
	"UnknownSignatureType":    5,
	"UnknownSerializedType":   6,
	"UnknownOpcode":           7,
	"BadHeaderTable":          8,
	"UnexpectedSignatureType": 9,
	"DuplicateTable":          10,
}
View Source
var DynamicReferenceError_DynamicReferenceErrorType_name = map[int32]string{
	0: "UnknownDynamicReferenceError",
	1: "MoveOfBorrowedResource",
	2: "GlobalRefAlreadyReleased",
	3: "MissingReleaseRef",
	4: "GlobalAlreadyBorrowed",
}
View Source
var DynamicReferenceError_DynamicReferenceErrorType_value = map[string]int32{
	"UnknownDynamicReferenceError": 0,
	"MoveOfBorrowedResource":       1,
	"GlobalRefAlreadyReleased":     2,
	"MissingReleaseRef":            3,
	"GlobalAlreadyBorrowed":        4,
}
View Source
var RuntimeStatus_name = map[int32]string{
	0:  "UnknownRuntimeStatus",
	1:  "Executed",
	2:  "OutOfGas",
	3:  "ResourceDoesNotExist",
	4:  "ResourceAlreadyExists",
	5:  "EvictedAccountAccess",
	6:  "AccountAddressAlreadyExists",
	7:  "TypeError",
	8:  "MissingData",
	9:  "DataFormatError",
	10: "InvalidData",
	11: "RemoteDataError",
	12: "CannotWriteExistingResource",
	13: "ValueSerializationError",
	14: "ValueDeserializationError",
	15: "DuplicateModuleName",
}
View Source
var RuntimeStatus_value = map[string]int32{
	"UnknownRuntimeStatus":        0,
	"Executed":                    1,
	"OutOfGas":                    2,
	"ResourceDoesNotExist":        3,
	"ResourceAlreadyExists":       4,
	"EvictedAccountAccess":        5,
	"AccountAddressAlreadyExists": 6,
	"TypeError":                   7,
	"MissingData":                 8,
	"DataFormatError":             9,
	"InvalidData":                 10,
	"RemoteDataError":             11,
	"CannotWriteExistingResource": 12,
	"ValueSerializationError":     13,
	"ValueDeserializationError":   14,
	"DuplicateModuleName":         15,
}
View Source
var TransactionArgument_ArgType_name = map[int32]string{
	0: "U64",
	1: "ADDRESS",
	2: "STRING",
	3: "BYTEARRAY",
}
View Source
var TransactionArgument_ArgType_value = map[string]int32{
	"U64":       0,
	"ADDRESS":   1,
	"STRING":    2,
	"BYTEARRAY": 3,
}
View Source
var VMInvariantViolationError_name = map[int32]string{
	0: "UnknownInvariantViolationError",
	1: "OutOfBoundsIndex",
	2: "OutOfBoundsRange",
	3: "EmptyValueStack",
	4: "EmptyCallStack",
	5: "PCOverflow",
	6: "LinkerError",
	7: "LocalReferenceError",
	8: "StorageError",
}
View Source
var VMInvariantViolationError_value = map[string]int32{
	"UnknownInvariantViolationError": 0,
	"OutOfBoundsIndex":               1,
	"OutOfBoundsRange":               2,
	"EmptyValueStack":                3,
	"EmptyCallStack":                 4,
	"PCOverflow":                     5,
	"LinkerError":                    6,
	"LocalReferenceError":            7,
	"StorageError":                   8,
}
View Source
var VMValidationStatusCode_name = map[int32]string{
	0:  "UnknownValidationStatus",
	1:  "InvalidSignature",
	2:  "InvalidAuthKey",
	3:  "SequenceNumberTooOld",
	4:  "SequenceNumberTooNew",
	5:  "InsufficientBalanceForTransactionFee",
	6:  "TransactionExpired",
	7:  "SendingAccountDoesNotExist",
	8:  "RejectedWriteSet",
	9:  "InvalidWriteSet",
	10: "ExceededMaxTransactionSize",
	11: "UnknownScript",
	12: "UnknownModule",
	13: "MaxGasUnitsExceedsMaxGasUnitsBound",
	14: "MaxGasUnitsBelowMinTransactionGasUnits",
	15: "GasUnitPriceBelowMinBound",
	16: "GasUnitPriceAboveMaxBound",
}
View Source
var VMValidationStatusCode_value = map[string]int32{
	"UnknownValidationStatus":                0,
	"InvalidSignature":                       1,
	"InvalidAuthKey":                         2,
	"SequenceNumberTooOld":                   3,
	"SequenceNumberTooNew":                   4,
	"InsufficientBalanceForTransactionFee":   5,
	"TransactionExpired":                     6,
	"SendingAccountDoesNotExist":             7,
	"RejectedWriteSet":                       8,
	"InvalidWriteSet":                        9,
	"ExceededMaxTransactionSize":             10,
	"UnknownScript":                          11,
	"UnknownModule":                          12,
	"MaxGasUnitsExceedsMaxGasUnitsBound":     13,
	"MaxGasUnitsBelowMinTransactionGasUnits": 14,
	"GasUnitPriceBelowMinBound":              15,
	"GasUnitPriceAboveMaxBound":              16,
}
View Source
var VMVerificationErrorKind_name = map[int32]string{
	0:  "UnknownVerificationError",
	1:  "IndexOutOfBounds",
	2:  "RangeOutOfBounds",
	3:  "InvalidSignatureToken",
	4:  "InvalidFieldDefReference",
	5:  "RecursiveStructDefinition",
	6:  "InvalidResourceField",
	7:  "InvalidFallThrough",
	8:  "JoinFailure",
	9:  "NegativeStackSizeWithinBlock",
	10: "UnbalancedStack",
	11: "InvalidMainFunctionSignature",
	12: "DuplicateElement",
	13: "InvalidModuleHandle",
	14: "UnimplementedHandle",
	15: "InconsistentFields",
	16: "UnusedFields",
	17: "LookupFailed",
	18: "VisibilityMismatch",
	19: "TypeResolutionFailure",
	20: "TypeMismatch",
	21: "MissingDependency",
	22: "PopReferenceError",
	23: "PopResourceError",
	24: "ReleaseRefTypeMismatchError",
	25: "BrTypeMismatchError",
	26: "AssertTypeMismatchError",
	27: "StLocTypeMismatchError",
	28: "StLocUnsafeToDestroyError",
	29: "RetUnsafeToDestroyError",
	30: "RetTypeMismatchError",
	31: "FreezeRefTypeMismatchError",
	32: "FreezeRefExistsMutableBorrowError",
	33: "BorrowFieldTypeMismatchError",
	34: "BorrowFieldBadFieldError",
	35: "BorrowFieldExistsMutableBorrowError",
	36: "CopyLocUnavailableError",
	37: "CopyLocResourceError",
	38: "CopyLocExistsBorrowError",
	39: "MoveLocUnavailableError",
	40: "MoveLocExistsBorrowError",
	41: "BorrowLocReferenceError",
	42: "BorrowLocUnavailableError",
	43: "BorrowLocExistsBorrowError",
	44: "CallTypeMismatchError",
	45: "CallBorrowedMutableReferenceError",
	46: "PackTypeMismatchError",
	47: "UnpackTypeMismatchError",
	48: "ReadRefTypeMismatchError",
	49: "ReadRefResourceError",
	50: "ReadRefExistsMutableBorrowError",
	51: "WriteRefTypeMismatchError",
	52: "WriteRefResourceError",
	53: "WriteRefExistsBorrowError",
	54: "WriteRefNoMutableReferenceError",
	55: "IntegerOpTypeMismatchError",
	56: "BooleanOpTypeMismatchError",
	57: "EqualityOpTypeMismatchError",
	58: "ExistsResourceTypeMismatchError",
	59: "BorrowGlobalTypeMismatchError",
	60: "BorrowGlobalNoResourceError",
	61: "MoveFromTypeMismatchError",
	62: "MoveFromNoResourceError",
	63: "MoveToSenderTypeMismatchError",
	64: "MoveToSenderNoResourceError",
	65: "CreateAccountTypeMismatchError",
	66: "ModuleAddressDoesNotMatchSender",
	67: "NoModuleHandles",
}
View Source
var VMVerificationErrorKind_value = map[string]int32{
	"UnknownVerificationError":            0,
	"IndexOutOfBounds":                    1,
	"RangeOutOfBounds":                    2,
	"InvalidSignatureToken":               3,
	"InvalidFieldDefReference":            4,
	"RecursiveStructDefinition":           5,
	"InvalidResourceField":                6,
	"InvalidFallThrough":                  7,
	"JoinFailure":                         8,
	"NegativeStackSizeWithinBlock":        9,
	"UnbalancedStack":                     10,
	"InvalidMainFunctionSignature":        11,
	"DuplicateElement":                    12,
	"InvalidModuleHandle":                 13,
	"UnimplementedHandle":                 14,
	"InconsistentFields":                  15,
	"UnusedFields":                        16,
	"LookupFailed":                        17,
	"VisibilityMismatch":                  18,
	"TypeResolutionFailure":               19,
	"TypeMismatch":                        20,
	"MissingDependency":                   21,
	"PopReferenceError":                   22,
	"PopResourceError":                    23,
	"ReleaseRefTypeMismatchError":         24,
	"BrTypeMismatchError":                 25,
	"AssertTypeMismatchError":             26,
	"StLocTypeMismatchError":              27,
	"StLocUnsafeToDestroyError":           28,
	"RetUnsafeToDestroyError":             29,
	"RetTypeMismatchError":                30,
	"FreezeRefTypeMismatchError":          31,
	"FreezeRefExistsMutableBorrowError":   32,
	"BorrowFieldTypeMismatchError":        33,
	"BorrowFieldBadFieldError":            34,
	"BorrowFieldExistsMutableBorrowError": 35,
	"CopyLocUnavailableError":             36,
	"CopyLocResourceError":                37,
	"CopyLocExistsBorrowError":            38,
	"MoveLocUnavailableError":             39,
	"MoveLocExistsBorrowError":            40,
	"BorrowLocReferenceError":             41,
	"BorrowLocUnavailableError":           42,
	"BorrowLocExistsBorrowError":          43,
	"CallTypeMismatchError":               44,
	"CallBorrowedMutableReferenceError":   45,
	"PackTypeMismatchError":               46,
	"UnpackTypeMismatchError":             47,
	"ReadRefTypeMismatchError":            48,
	"ReadRefResourceError":                49,
	"ReadRefExistsMutableBorrowError":     50,
	"WriteRefTypeMismatchError":           51,
	"WriteRefResourceError":               52,
	"WriteRefExistsBorrowError":           53,
	"WriteRefNoMutableReferenceError":     54,
	"IntegerOpTypeMismatchError":          55,
	"BooleanOpTypeMismatchError":          56,
	"EqualityOpTypeMismatchError":         57,
	"ExistsResourceTypeMismatchError":     58,
	"BorrowGlobalTypeMismatchError":       59,
	"BorrowGlobalNoResourceError":         60,
	"MoveFromTypeMismatchError":           61,
	"MoveFromNoResourceError":             62,
	"MoveToSenderTypeMismatchError":       63,
	"MoveToSenderNoResourceError":         64,
	"CreateAccountTypeMismatchError":      65,
	"ModuleAddressDoesNotMatchSender":     66,
	"NoModuleHandles":                     67,
}
View Source
var VMVerificationStatus_StatusKind_name = map[int32]string{
	0: "SCRIPT",
	1: "MODULE",
	2: "DEPENDENCY",
}
View Source
var VMVerificationStatus_StatusKind_value = map[string]int32{
	"SCRIPT":     0,
	"MODULE":     1,
	"DEPENDENCY": 2,
}
View Source
var WriteOpType_name = map[int32]string{
	0: "Write",
	1: "Delete",
}
View Source
var WriteOpType_value = map[string]int32{
	"Write":  0,
	"Delete": 1,
}

Functions

This section is empty.

Types

type AccessPath

type AccessPath struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Path                 []byte   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccessPath) Descriptor

func (*AccessPath) Descriptor() ([]byte, []int)

func (*AccessPath) GetAddress

func (m *AccessPath) GetAddress() []byte

func (*AccessPath) GetPath

func (m *AccessPath) GetPath() []byte

func (*AccessPath) ProtoMessage

func (*AccessPath) ProtoMessage()

func (*AccessPath) Reset

func (m *AccessPath) Reset()

func (*AccessPath) String

func (m *AccessPath) String() string

func (*AccessPath) XXX_DiscardUnknown

func (m *AccessPath) XXX_DiscardUnknown()

func (*AccessPath) XXX_Marshal

func (m *AccessPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccessPath) XXX_Merge

func (m *AccessPath) XXX_Merge(src proto.Message)

func (*AccessPath) XXX_Size

func (m *AccessPath) XXX_Size() int

func (*AccessPath) XXX_Unmarshal

func (m *AccessPath) XXX_Unmarshal(b []byte) error

type AccountState

type AccountState struct {
	// Account address
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Account state blob
	Blob                 []byte   `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Account state as a whole. After execution, updates to accounts are passed in this form to storage for persistence.

func (*AccountState) Descriptor

func (*AccountState) Descriptor() ([]byte, []int)

func (*AccountState) GetAddress

func (m *AccountState) GetAddress() []byte

func (*AccountState) GetBlob

func (m *AccountState) GetBlob() []byte

func (*AccountState) ProtoMessage

func (*AccountState) ProtoMessage()

func (*AccountState) Reset

func (m *AccountState) Reset()

func (*AccountState) String

func (m *AccountState) String() string

func (*AccountState) XXX_DiscardUnknown

func (m *AccountState) XXX_DiscardUnknown()

func (*AccountState) XXX_Marshal

func (m *AccountState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountState) XXX_Merge

func (m *AccountState) XXX_Merge(src proto.Message)

func (*AccountState) XXX_Size

func (m *AccountState) XXX_Size() int

func (*AccountState) XXX_Unmarshal

func (m *AccountState) XXX_Unmarshal(b []byte) error

type AccountStateBlob

type AccountStateBlob struct {
	Blob                 []byte   `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccountStateBlob) Descriptor

func (*AccountStateBlob) Descriptor() ([]byte, []int)

func (*AccountStateBlob) GetBlob

func (m *AccountStateBlob) GetBlob() []byte

func (*AccountStateBlob) ProtoMessage

func (*AccountStateBlob) ProtoMessage()

func (*AccountStateBlob) Reset

func (m *AccountStateBlob) Reset()

func (*AccountStateBlob) String

func (m *AccountStateBlob) String() string

func (*AccountStateBlob) XXX_DiscardUnknown

func (m *AccountStateBlob) XXX_DiscardUnknown()

func (*AccountStateBlob) XXX_Marshal

func (m *AccountStateBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountStateBlob) XXX_Merge

func (m *AccountStateBlob) XXX_Merge(src proto.Message)

func (*AccountStateBlob) XXX_Size

func (m *AccountStateBlob) XXX_Size() int

func (*AccountStateBlob) XXX_Unmarshal

func (m *AccountStateBlob) XXX_Unmarshal(b []byte) error

type AccountStateProof

type AccountStateProof struct {
	LedgerInfoToTransactionInfoProof *AccumulatorProof  `` /* 165-byte string literal not displayed */
	TransactionInfo                  *TransactionInfo   `protobuf:"bytes,2,opt,name=transaction_info,json=transactionInfo,proto3" json:"transaction_info,omitempty"`
	TransactionInfoToAccountProof    *SparseMerkleProof `` /* 154-byte string literal not displayed */
	XXX_NoUnkeyedLiteral             struct{}           `json:"-"`
	XXX_unrecognized                 []byte             `json:"-"`
	XXX_sizecache                    int32              `json:"-"`
}

The complete proof used to authenticate an account state.

func (*AccountStateProof) Descriptor

func (*AccountStateProof) Descriptor() ([]byte, []int)

func (*AccountStateProof) GetLedgerInfoToTransactionInfoProof

func (m *AccountStateProof) GetLedgerInfoToTransactionInfoProof() *AccumulatorProof

func (*AccountStateProof) GetTransactionInfo

func (m *AccountStateProof) GetTransactionInfo() *TransactionInfo

func (*AccountStateProof) GetTransactionInfoToAccountProof

func (m *AccountStateProof) GetTransactionInfoToAccountProof() *SparseMerkleProof

func (*AccountStateProof) ProtoMessage

func (*AccountStateProof) ProtoMessage()

func (*AccountStateProof) Reset

func (m *AccountStateProof) Reset()

func (*AccountStateProof) String

func (m *AccountStateProof) String() string

func (*AccountStateProof) XXX_DiscardUnknown

func (m *AccountStateProof) XXX_DiscardUnknown()

func (*AccountStateProof) XXX_Marshal

func (m *AccountStateProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountStateProof) XXX_Merge

func (m *AccountStateProof) XXX_Merge(src proto.Message)

func (*AccountStateProof) XXX_Size

func (m *AccountStateProof) XXX_Size() int

func (*AccountStateProof) XXX_Unmarshal

func (m *AccountStateProof) XXX_Unmarshal(b []byte) error

type AccountStateWithProof

type AccountStateWithProof struct {
	Version              uint64             `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Blob                 *AccountStateBlob  `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"`
	Proof                *AccountStateProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*AccountStateWithProof) Descriptor

func (*AccountStateWithProof) Descriptor() ([]byte, []int)

func (*AccountStateWithProof) GetBlob

func (*AccountStateWithProof) GetProof

func (*AccountStateWithProof) GetVersion

func (m *AccountStateWithProof) GetVersion() uint64

func (*AccountStateWithProof) ProtoMessage

func (*AccountStateWithProof) ProtoMessage()

func (*AccountStateWithProof) Reset

func (m *AccountStateWithProof) Reset()

func (*AccountStateWithProof) String

func (m *AccountStateWithProof) String() string

func (*AccountStateWithProof) XXX_DiscardUnknown

func (m *AccountStateWithProof) XXX_DiscardUnknown()

func (*AccountStateWithProof) XXX_Marshal

func (m *AccountStateWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountStateWithProof) XXX_Merge

func (m *AccountStateWithProof) XXX_Merge(src proto.Message)

func (*AccountStateWithProof) XXX_Size

func (m *AccountStateWithProof) XXX_Size() int

func (*AccountStateWithProof) XXX_Unmarshal

func (m *AccountStateWithProof) XXX_Unmarshal(b []byte) error

type AccumulatorProof

type AccumulatorProof struct {
	// The bitmap indicating which siblings are default. 1 means non-default and
	// 0 means default. The LSB corresponds to the sibling at the bottom of the
	// accumulator. The leftmost 1-bit corresponds to the sibling at the level
	// just below root level in the accumulator, since this one is always
	// non-default.
	Bitmap uint64 `protobuf:"varint,1,opt,name=bitmap,proto3" json:"bitmap,omitempty"`
	// The non-default siblings. The ones near the root are at the beginning of
	// the list.
	NonDefaultSiblings   [][]byte `protobuf:"bytes,2,rep,name=non_default_siblings,json=nonDefaultSiblings,proto3" json:"non_default_siblings,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AccumulatorProof) Descriptor

func (*AccumulatorProof) Descriptor() ([]byte, []int)

func (*AccumulatorProof) GetBitmap

func (m *AccumulatorProof) GetBitmap() uint64

func (*AccumulatorProof) GetNonDefaultSiblings

func (m *AccumulatorProof) GetNonDefaultSiblings() [][]byte

func (*AccumulatorProof) ProtoMessage

func (*AccumulatorProof) ProtoMessage()

func (*AccumulatorProof) Reset

func (m *AccumulatorProof) Reset()

func (*AccumulatorProof) String

func (m *AccumulatorProof) String() string

func (*AccumulatorProof) XXX_DiscardUnknown

func (m *AccumulatorProof) XXX_DiscardUnknown()

func (*AccumulatorProof) XXX_Marshal

func (m *AccumulatorProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccumulatorProof) XXX_Merge

func (m *AccumulatorProof) XXX_Merge(src proto.Message)

func (*AccumulatorProof) XXX_Size

func (m *AccumulatorProof) XXX_Size() int

func (*AccumulatorProof) XXX_Unmarshal

func (m *AccumulatorProof) XXX_Unmarshal(b []byte) error

type ArithmeticError

type ArithmeticError struct {
	ErrorCode            ArithmeticError_ArithmeticErrorType `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

func (*ArithmeticError) Descriptor

func (*ArithmeticError) Descriptor() ([]byte, []int)

func (*ArithmeticError) GetErrorCode

func (*ArithmeticError) ProtoMessage

func (*ArithmeticError) ProtoMessage()

func (*ArithmeticError) Reset

func (m *ArithmeticError) Reset()

func (*ArithmeticError) String

func (m *ArithmeticError) String() string

func (*ArithmeticError) XXX_DiscardUnknown

func (m *ArithmeticError) XXX_DiscardUnknown()

func (*ArithmeticError) XXX_Marshal

func (m *ArithmeticError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArithmeticError) XXX_Merge

func (m *ArithmeticError) XXX_Merge(src proto.Message)

func (*ArithmeticError) XXX_Size

func (m *ArithmeticError) XXX_Size() int

func (*ArithmeticError) XXX_Unmarshal

func (m *ArithmeticError) XXX_Unmarshal(b []byte) error

type ArithmeticError_ArithmeticErrorType

type ArithmeticError_ArithmeticErrorType int32
const (
	ArithmeticError_UnknownArithmeticError ArithmeticError_ArithmeticErrorType = 0
	ArithmeticError_Underflow              ArithmeticError_ArithmeticErrorType = 1
	ArithmeticError_Overflow               ArithmeticError_ArithmeticErrorType = 2
	ArithmeticError_DivisionByZero         ArithmeticError_ArithmeticErrorType = 3
)

func (ArithmeticError_ArithmeticErrorType) EnumDescriptor

func (ArithmeticError_ArithmeticErrorType) EnumDescriptor() ([]byte, []int)

func (ArithmeticError_ArithmeticErrorType) String

type AssertionFailure

type AssertionFailure struct {
	AssertionErrorCode   uint64   `protobuf:"varint,1,opt,name=assertion_error_code,json=assertionErrorCode,proto3" json:"assertion_error_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

user-defined assertion error code number

func (*AssertionFailure) Descriptor

func (*AssertionFailure) Descriptor() ([]byte, []int)

func (*AssertionFailure) GetAssertionErrorCode

func (m *AssertionFailure) GetAssertionErrorCode() uint64

func (*AssertionFailure) ProtoMessage

func (*AssertionFailure) ProtoMessage()

func (*AssertionFailure) Reset

func (m *AssertionFailure) Reset()

func (*AssertionFailure) String

func (m *AssertionFailure) String() string

func (*AssertionFailure) XXX_DiscardUnknown

func (m *AssertionFailure) XXX_DiscardUnknown()

func (*AssertionFailure) XXX_Marshal

func (m *AssertionFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssertionFailure) XXX_Merge

func (m *AssertionFailure) XXX_Merge(src proto.Message)

func (*AssertionFailure) XXX_Size

func (m *AssertionFailure) XXX_Size() int

func (*AssertionFailure) XXX_Unmarshal

func (m *AssertionFailure) XXX_Unmarshal(b []byte) error

type BinaryError

type BinaryError int32

Errors that can arise from binary decoding (deserialization)

const (
	BinaryError_UnknownBinaryError      BinaryError = 0
	BinaryError_Malformed               BinaryError = 1
	BinaryError_BadMagic                BinaryError = 2
	BinaryError_UnknownVersion          BinaryError = 3
	BinaryError_UnknownTableType        BinaryError = 4
	BinaryError_UnknownSignatureType    BinaryError = 5
	BinaryError_UnknownSerializedType   BinaryError = 6
	BinaryError_UnknownOpcode           BinaryError = 7
	BinaryError_BadHeaderTable          BinaryError = 8
	BinaryError_UnexpectedSignatureType BinaryError = 9
	BinaryError_DuplicateTable          BinaryError = 10
)

func (BinaryError) EnumDescriptor

func (BinaryError) EnumDescriptor() ([]byte, []int)

func (BinaryError) String

func (x BinaryError) String() string

type DynamicReferenceError

type DynamicReferenceError struct {
	ErrorCode            DynamicReferenceError_DynamicReferenceErrorType `` /* 148-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                        `json:"-"`
	XXX_unrecognized     []byte                                          `json:"-"`
	XXX_sizecache        int32                                           `json:"-"`
}

func (*DynamicReferenceError) Descriptor

func (*DynamicReferenceError) Descriptor() ([]byte, []int)

func (*DynamicReferenceError) GetErrorCode

func (*DynamicReferenceError) ProtoMessage

func (*DynamicReferenceError) ProtoMessage()

func (*DynamicReferenceError) Reset

func (m *DynamicReferenceError) Reset()

func (*DynamicReferenceError) String

func (m *DynamicReferenceError) String() string

func (*DynamicReferenceError) XXX_DiscardUnknown

func (m *DynamicReferenceError) XXX_DiscardUnknown()

func (*DynamicReferenceError) XXX_Marshal

func (m *DynamicReferenceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DynamicReferenceError) XXX_Merge

func (m *DynamicReferenceError) XXX_Merge(src proto.Message)

func (*DynamicReferenceError) XXX_Size

func (m *DynamicReferenceError) XXX_Size() int

func (*DynamicReferenceError) XXX_Unmarshal

func (m *DynamicReferenceError) XXX_Unmarshal(b []byte) error

type DynamicReferenceError_DynamicReferenceErrorType

type DynamicReferenceError_DynamicReferenceErrorType int32
const (
	DynamicReferenceError_UnknownDynamicReferenceError DynamicReferenceError_DynamicReferenceErrorType = 0
	DynamicReferenceError_MoveOfBorrowedResource       DynamicReferenceError_DynamicReferenceErrorType = 1
	DynamicReferenceError_GlobalRefAlreadyReleased     DynamicReferenceError_DynamicReferenceErrorType = 2
	DynamicReferenceError_MissingReleaseRef            DynamicReferenceError_DynamicReferenceErrorType = 3
	DynamicReferenceError_GlobalAlreadyBorrowed        DynamicReferenceError_DynamicReferenceErrorType = 4
)

func (DynamicReferenceError_DynamicReferenceErrorType) EnumDescriptor

func (DynamicReferenceError_DynamicReferenceErrorType) String

type Event

type Event struct {
	AccessPath           *AccessPath `protobuf:"bytes,1,opt,name=access_path,json=accessPath,proto3" json:"access_path,omitempty"`
	SequenceNumber       uint64      `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	EventData            []byte      `protobuf:"bytes,3,opt,name=event_data,json=eventData,proto3" json:"event_data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

An event emitted from a smart contract

func (*Event) Descriptor

func (*Event) Descriptor() ([]byte, []int)

func (*Event) GetAccessPath

func (m *Event) GetAccessPath() *AccessPath

func (*Event) GetEventData

func (m *Event) GetEventData() []byte

func (*Event) GetSequenceNumber

func (m *Event) GetSequenceNumber() uint64

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

func (m *Event) XXX_Unmarshal(b []byte) error

type EventProof

type EventProof struct {
	LedgerInfoToTransactionInfoProof *AccumulatorProof `` /* 165-byte string literal not displayed */
	TransactionInfo                  *TransactionInfo  `protobuf:"bytes,2,opt,name=transaction_info,json=transactionInfo,proto3" json:"transaction_info,omitempty"`
	TransactionInfoToEventProof      *AccumulatorProof `` /* 148-byte string literal not displayed */
	XXX_NoUnkeyedLiteral             struct{}          `json:"-"`
	XXX_unrecognized                 []byte            `json:"-"`
	XXX_sizecache                    int32             `json:"-"`
}

The complete proof used to authenticate an event.

func (*EventProof) Descriptor

func (*EventProof) Descriptor() ([]byte, []int)

func (*EventProof) GetLedgerInfoToTransactionInfoProof

func (m *EventProof) GetLedgerInfoToTransactionInfoProof() *AccumulatorProof

func (*EventProof) GetTransactionInfo

func (m *EventProof) GetTransactionInfo() *TransactionInfo

func (*EventProof) GetTransactionInfoToEventProof

func (m *EventProof) GetTransactionInfoToEventProof() *AccumulatorProof

func (*EventProof) ProtoMessage

func (*EventProof) ProtoMessage()

func (*EventProof) Reset

func (m *EventProof) Reset()

func (*EventProof) String

func (m *EventProof) String() string

func (*EventProof) XXX_DiscardUnknown

func (m *EventProof) XXX_DiscardUnknown()

func (*EventProof) XXX_Marshal

func (m *EventProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventProof) XXX_Merge

func (m *EventProof) XXX_Merge(src proto.Message)

func (*EventProof) XXX_Size

func (m *EventProof) XXX_Size() int

func (*EventProof) XXX_Unmarshal

func (m *EventProof) XXX_Unmarshal(b []byte) error

type EventWithProof

type EventWithProof struct {
	TransactionVersion   uint64      `protobuf:"varint,1,opt,name=transaction_version,json=transactionVersion,proto3" json:"transaction_version,omitempty"`
	EventIndex           uint64      `protobuf:"varint,2,opt,name=event_index,json=eventIndex,proto3" json:"event_index,omitempty"`
	Event                *Event      `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"`
	Proof                *EventProof `protobuf:"bytes,4,opt,name=proof,proto3" json:"proof,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

An event along with the proof for the event

func (*EventWithProof) Descriptor

func (*EventWithProof) Descriptor() ([]byte, []int)

func (*EventWithProof) GetEvent

func (m *EventWithProof) GetEvent() *Event

func (*EventWithProof) GetEventIndex

func (m *EventWithProof) GetEventIndex() uint64

func (*EventWithProof) GetProof

func (m *EventWithProof) GetProof() *EventProof

func (*EventWithProof) GetTransactionVersion

func (m *EventWithProof) GetTransactionVersion() uint64

func (*EventWithProof) ProtoMessage

func (*EventWithProof) ProtoMessage()

func (*EventWithProof) Reset

func (m *EventWithProof) Reset()

func (*EventWithProof) String

func (m *EventWithProof) String() string

func (*EventWithProof) XXX_DiscardUnknown

func (m *EventWithProof) XXX_DiscardUnknown()

func (*EventWithProof) XXX_Marshal

func (m *EventWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventWithProof) XXX_Merge

func (m *EventWithProof) XXX_Merge(src proto.Message)

func (*EventWithProof) XXX_Size

func (m *EventWithProof) XXX_Size() int

func (*EventWithProof) XXX_Unmarshal

func (m *EventWithProof) XXX_Unmarshal(b []byte) error

type EventsForVersions

type EventsForVersions struct {
	EventsForVersion     []*EventsList `protobuf:"bytes,1,rep,name=events_for_version,json=eventsForVersion,proto3" json:"events_for_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

A list of EventList's, each representing all events for a transaction.

func (*EventsForVersions) Descriptor

func (*EventsForVersions) Descriptor() ([]byte, []int)

func (*EventsForVersions) GetEventsForVersion

func (m *EventsForVersions) GetEventsForVersion() []*EventsList

func (*EventsForVersions) ProtoMessage

func (*EventsForVersions) ProtoMessage()

func (*EventsForVersions) Reset

func (m *EventsForVersions) Reset()

func (*EventsForVersions) String

func (m *EventsForVersions) String() string

func (*EventsForVersions) XXX_DiscardUnknown

func (m *EventsForVersions) XXX_DiscardUnknown()

func (*EventsForVersions) XXX_Marshal

func (m *EventsForVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventsForVersions) XXX_Merge

func (m *EventsForVersions) XXX_Merge(src proto.Message)

func (*EventsForVersions) XXX_Size

func (m *EventsForVersions) XXX_Size() int

func (*EventsForVersions) XXX_Unmarshal

func (m *EventsForVersions) XXX_Unmarshal(b []byte) error

type EventsList

type EventsList struct {
	Events               []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A list of events.

func (*EventsList) Descriptor

func (*EventsList) Descriptor() ([]byte, []int)

func (*EventsList) GetEvents

func (m *EventsList) GetEvents() []*Event

func (*EventsList) ProtoMessage

func (*EventsList) ProtoMessage()

func (*EventsList) Reset

func (m *EventsList) Reset()

func (*EventsList) String

func (m *EventsList) String() string

func (*EventsList) XXX_DiscardUnknown

func (m *EventsList) XXX_DiscardUnknown()

func (*EventsList) XXX_Marshal

func (m *EventsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventsList) XXX_Merge

func (m *EventsList) XXX_Merge(src proto.Message)

func (*EventsList) XXX_Size

func (m *EventsList) XXX_Size() int

func (*EventsList) XXX_Unmarshal

func (m *EventsList) XXX_Unmarshal(b []byte) error

type ExecutionStatus

type ExecutionStatus struct {
	// Types that are valid to be assigned to ExecutionStatus:
	//	*ExecutionStatus_RuntimeStatus
	//	*ExecutionStatus_AssertionFailure
	//	*ExecutionStatus_ArithmeticError
	//	*ExecutionStatus_ReferenceError
	ExecutionStatus      isExecutionStatus_ExecutionStatus `protobuf_oneof:"execution_status"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

func (*ExecutionStatus) Descriptor

func (*ExecutionStatus) Descriptor() ([]byte, []int)

func (*ExecutionStatus) GetArithmeticError

func (m *ExecutionStatus) GetArithmeticError() *ArithmeticError

func (*ExecutionStatus) GetAssertionFailure

func (m *ExecutionStatus) GetAssertionFailure() *AssertionFailure

func (*ExecutionStatus) GetExecutionStatus

func (m *ExecutionStatus) GetExecutionStatus() isExecutionStatus_ExecutionStatus

func (*ExecutionStatus) GetReferenceError

func (m *ExecutionStatus) GetReferenceError() *DynamicReferenceError

func (*ExecutionStatus) GetRuntimeStatus

func (m *ExecutionStatus) GetRuntimeStatus() RuntimeStatus

func (*ExecutionStatus) ProtoMessage

func (*ExecutionStatus) ProtoMessage()

func (*ExecutionStatus) Reset

func (m *ExecutionStatus) Reset()

func (*ExecutionStatus) String

func (m *ExecutionStatus) String() string

func (*ExecutionStatus) XXX_DiscardUnknown

func (m *ExecutionStatus) XXX_DiscardUnknown()

func (*ExecutionStatus) XXX_Marshal

func (m *ExecutionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExecutionStatus) XXX_Merge

func (m *ExecutionStatus) XXX_Merge(src proto.Message)

func (*ExecutionStatus) XXX_OneofWrappers

func (*ExecutionStatus) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ExecutionStatus) XXX_Size

func (m *ExecutionStatus) XXX_Size() int

func (*ExecutionStatus) XXX_Unmarshal

func (m *ExecutionStatus) XXX_Unmarshal(b []byte) error

type ExecutionStatus_ArithmeticError

type ExecutionStatus_ArithmeticError struct {
	ArithmeticError *ArithmeticError `protobuf:"bytes,3,opt,name=arithmetic_error,json=arithmeticError,proto3,oneof"`
}

type ExecutionStatus_AssertionFailure

type ExecutionStatus_AssertionFailure struct {
	AssertionFailure *AssertionFailure `protobuf:"bytes,2,opt,name=assertion_failure,json=assertionFailure,proto3,oneof"`
}

type ExecutionStatus_ReferenceError

type ExecutionStatus_ReferenceError struct {
	ReferenceError *DynamicReferenceError `protobuf:"bytes,4,opt,name=reference_error,json=referenceError,proto3,oneof"`
}

type ExecutionStatus_RuntimeStatus

type ExecutionStatus_RuntimeStatus struct {
	RuntimeStatus RuntimeStatus `protobuf:"varint,1,opt,name=runtime_status,json=runtimeStatus,proto3,enum=types.RuntimeStatus,oneof"`
}

type GetAccountStateRequest

type GetAccountStateRequest struct {
	// Account for which we are fetching the state.
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Gets latest state for an account.

func (*GetAccountStateRequest) Descriptor

func (*GetAccountStateRequest) Descriptor() ([]byte, []int)

func (*GetAccountStateRequest) GetAddress

func (m *GetAccountStateRequest) GetAddress() []byte

func (*GetAccountStateRequest) ProtoMessage

func (*GetAccountStateRequest) ProtoMessage()

func (*GetAccountStateRequest) Reset

func (m *GetAccountStateRequest) Reset()

func (*GetAccountStateRequest) String

func (m *GetAccountStateRequest) String() string

func (*GetAccountStateRequest) XXX_DiscardUnknown

func (m *GetAccountStateRequest) XXX_DiscardUnknown()

func (*GetAccountStateRequest) XXX_Marshal

func (m *GetAccountStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAccountStateRequest) XXX_Merge

func (m *GetAccountStateRequest) XXX_Merge(src proto.Message)

func (*GetAccountStateRequest) XXX_Size

func (m *GetAccountStateRequest) XXX_Size() int

func (*GetAccountStateRequest) XXX_Unmarshal

func (m *GetAccountStateRequest) XXX_Unmarshal(b []byte) error

type GetAccountStateResponse

type GetAccountStateResponse struct {
	// Blob value representing the account state together with proof the client
	// can utilize to verify it.
	AccountStateWithProof *AccountStateWithProof `` /* 128-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{}               `json:"-"`
	XXX_unrecognized      []byte                 `json:"-"`
	XXX_sizecache         int32                  `json:"-"`
}

State information returned by a get account state query.

func (*GetAccountStateResponse) Descriptor

func (*GetAccountStateResponse) Descriptor() ([]byte, []int)

func (*GetAccountStateResponse) GetAccountStateWithProof

func (m *GetAccountStateResponse) GetAccountStateWithProof() *AccountStateWithProof

func (*GetAccountStateResponse) ProtoMessage

func (*GetAccountStateResponse) ProtoMessage()

func (*GetAccountStateResponse) Reset

func (m *GetAccountStateResponse) Reset()

func (*GetAccountStateResponse) String

func (m *GetAccountStateResponse) String() string

func (*GetAccountStateResponse) XXX_DiscardUnknown

func (m *GetAccountStateResponse) XXX_DiscardUnknown()

func (*GetAccountStateResponse) XXX_Marshal

func (m *GetAccountStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAccountStateResponse) XXX_Merge

func (m *GetAccountStateResponse) XXX_Merge(src proto.Message)

func (*GetAccountStateResponse) XXX_Size

func (m *GetAccountStateResponse) XXX_Size() int

func (*GetAccountStateResponse) XXX_Unmarshal

func (m *GetAccountStateResponse) XXX_Unmarshal(b []byte) error

type GetAccountTransactionBySequenceNumberRequest

type GetAccountTransactionBySequenceNumberRequest struct {
	// Account for which to query transactions
	Account        []byte `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// Set to true to fetch events for the transaction at this version
	FetchEvents          bool     `protobuf:"varint,3,opt,name=fetch_events,json=fetchEvents,proto3" json:"fetch_events,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

----------------------------------------------------------------------------- ---------------- Get single transaction by account + sequence number ----------------------------------------------------------------------------- Get transactions that altered an account - this includes both sent and received. A user of this should check that the data returned matches what they expect. As an example, a potential attack vector would be something like the following: Alice is buying an apple from Bob. Alice's phone signs a transaction X with sequence number N that pays coins to Bob. Alice transmits this signature to Bob's payment terminal which then submits the transaction and checks its status to see if Alice can be given the apple. However, as Bob is doing this Alice constructs a second transaction X' also with sequence number N. Alice gets that transaction inserted in the blockchain. If Bob isn't thoughtful about how he uses this API he may assume that if he asks for the N'th transaction on Alice's account that when the API returns that this means the transaction has gone through. The point here is that one should be careful in reading too much into "transaction X is on the chain" and focus on the logs, which tell you what the transaction did.

If a client submitted a transaction, they should also verify that the hash of the returned transaction matches what they submitted. As an example, if a client has two wallets that share the same account, they may both submit a transaction at the same sequence number and only one will be committed. A client should never assume that if they receive the response that this transaction was included that it means that this is definitely the transaction that was submitted. They should check that the hash matches what they sent

func (*GetAccountTransactionBySequenceNumberRequest) Descriptor

func (*GetAccountTransactionBySequenceNumberRequest) GetAccount

func (*GetAccountTransactionBySequenceNumberRequest) GetFetchEvents

func (*GetAccountTransactionBySequenceNumberRequest) GetSequenceNumber

func (*GetAccountTransactionBySequenceNumberRequest) ProtoMessage

func (*GetAccountTransactionBySequenceNumberRequest) Reset

func (*GetAccountTransactionBySequenceNumberRequest) String

func (*GetAccountTransactionBySequenceNumberRequest) XXX_DiscardUnknown

func (m *GetAccountTransactionBySequenceNumberRequest) XXX_DiscardUnknown()

func (*GetAccountTransactionBySequenceNumberRequest) XXX_Marshal

func (m *GetAccountTransactionBySequenceNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAccountTransactionBySequenceNumberRequest) XXX_Merge

func (*GetAccountTransactionBySequenceNumberRequest) XXX_Size

func (*GetAccountTransactionBySequenceNumberRequest) XXX_Unmarshal

type GetAccountTransactionBySequenceNumberResponse

type GetAccountTransactionBySequenceNumberResponse struct {
	// When the transaction requested is committed, return the committed
	// transaction with proof.
	SignedTransactionWithProof *SignedTransactionWithProof `` /* 143-byte string literal not displayed */
	// When the transaction requested is not committed, we give a proof that
	// shows the current sequence number is smaller than what would have been if
	// the transaction was committed.
	ProofOfCurrentSequenceNumber *AccountStateWithProof `` /* 151-byte string literal not displayed */
	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
	XXX_unrecognized             []byte                 `json:"-"`
	XXX_sizecache                int32                  `json:"-"`
}

Transaction information for transactions requested by GetAccountTransactionsRequest

func (*GetAccountTransactionBySequenceNumberResponse) Descriptor

func (*GetAccountTransactionBySequenceNumberResponse) GetProofOfCurrentSequenceNumber

func (m *GetAccountTransactionBySequenceNumberResponse) GetProofOfCurrentSequenceNumber() *AccountStateWithProof

func (*GetAccountTransactionBySequenceNumberResponse) GetSignedTransactionWithProof

func (*GetAccountTransactionBySequenceNumberResponse) ProtoMessage

func (*GetAccountTransactionBySequenceNumberResponse) Reset

func (*GetAccountTransactionBySequenceNumberResponse) String

func (*GetAccountTransactionBySequenceNumberResponse) XXX_DiscardUnknown

func (m *GetAccountTransactionBySequenceNumberResponse) XXX_DiscardUnknown()

func (*GetAccountTransactionBySequenceNumberResponse) XXX_Marshal

func (m *GetAccountTransactionBySequenceNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAccountTransactionBySequenceNumberResponse) XXX_Merge

func (*GetAccountTransactionBySequenceNumberResponse) XXX_Size

func (*GetAccountTransactionBySequenceNumberResponse) XXX_Unmarshal

type GetEventsByEventAccessPathRequest

type GetEventsByEventAccessPathRequest struct {
	AccessPath *AccessPath `protobuf:"bytes,1,opt,name=access_path,json=accessPath,proto3" json:"access_path,omitempty"`
	// The sequence number of the event to start with for this query. Use a
	// sequence number of MAX_INT to represent the latest.
	StartEventSeqNum uint64 `protobuf:"varint,2,opt,name=start_event_seq_num,json=startEventSeqNum,proto3" json:"start_event_seq_num,omitempty"`
	// If ascending is true this query will return up to `limit` events that were
	// emitted after `start_event_seq_num`. Otherwise it will return up to `limit`
	// events before the offset. Both cases are inclusive.
	Ascending bool `protobuf:"varint,3,opt,name=ascending,proto3" json:"ascending,omitempty"`
	// Limit number of results
	Limit                uint64   `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Get events that exist on an event access path. In the current world, a user may specify events that were received, events that were sent, or any event that modifies their account

func (*GetEventsByEventAccessPathRequest) Descriptor

func (*GetEventsByEventAccessPathRequest) Descriptor() ([]byte, []int)

func (*GetEventsByEventAccessPathRequest) GetAccessPath

func (m *GetEventsByEventAccessPathRequest) GetAccessPath() *AccessPath

func (*GetEventsByEventAccessPathRequest) GetAscending

func (m *GetEventsByEventAccessPathRequest) GetAscending() bool

func (*GetEventsByEventAccessPathRequest) GetLimit

func (*GetEventsByEventAccessPathRequest) GetStartEventSeqNum

func (m *GetEventsByEventAccessPathRequest) GetStartEventSeqNum() uint64

func (*GetEventsByEventAccessPathRequest) ProtoMessage

func (*GetEventsByEventAccessPathRequest) ProtoMessage()

func (*GetEventsByEventAccessPathRequest) Reset

func (*GetEventsByEventAccessPathRequest) String

func (*GetEventsByEventAccessPathRequest) XXX_DiscardUnknown

func (m *GetEventsByEventAccessPathRequest) XXX_DiscardUnknown()

func (*GetEventsByEventAccessPathRequest) XXX_Marshal

func (m *GetEventsByEventAccessPathRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEventsByEventAccessPathRequest) XXX_Merge

func (*GetEventsByEventAccessPathRequest) XXX_Size

func (m *GetEventsByEventAccessPathRequest) XXX_Size() int

func (*GetEventsByEventAccessPathRequest) XXX_Unmarshal

func (m *GetEventsByEventAccessPathRequest) XXX_Unmarshal(b []byte) error

type GetEventsByEventAccessPathResponse

type GetEventsByEventAccessPathResponse struct {
	// Returns an event and proof of each of the events in the request. The first
	// element of proofs will be the closest to `start_event_seq_num`.
	EventsWithProof []*EventWithProof `protobuf:"bytes,1,rep,name=events_with_proof,json=eventsWithProof,proto3" json:"events_with_proof,omitempty"`
	// If the number of events returned is less than `limit` for an ascending
	// query or if start_event_seq_num > the latest seq_num for a descending
	// query,  returns the state of the account containing the given access path
	// in the latest state. This allows the client to verify that there are in
	// fact no extra events.
	//
	// The LedgerInfoWithSignatures which is on the main
	// UpdateToLatestLedgerResponse can be used to validate this.
	ProofOfLatestEvent   *AccountStateWithProof `protobuf:"bytes,2,opt,name=proof_of_latest_event,json=proofOfLatestEvent,proto3" json:"proof_of_latest_event,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*GetEventsByEventAccessPathResponse) Descriptor

func (*GetEventsByEventAccessPathResponse) Descriptor() ([]byte, []int)

func (*GetEventsByEventAccessPathResponse) GetEventsWithProof

func (m *GetEventsByEventAccessPathResponse) GetEventsWithProof() []*EventWithProof

func (*GetEventsByEventAccessPathResponse) GetProofOfLatestEvent

func (m *GetEventsByEventAccessPathResponse) GetProofOfLatestEvent() *AccountStateWithProof

func (*GetEventsByEventAccessPathResponse) ProtoMessage

func (*GetEventsByEventAccessPathResponse) ProtoMessage()

func (*GetEventsByEventAccessPathResponse) Reset

func (*GetEventsByEventAccessPathResponse) String

func (*GetEventsByEventAccessPathResponse) XXX_DiscardUnknown

func (m *GetEventsByEventAccessPathResponse) XXX_DiscardUnknown()

func (*GetEventsByEventAccessPathResponse) XXX_Marshal

func (m *GetEventsByEventAccessPathResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEventsByEventAccessPathResponse) XXX_Merge

func (*GetEventsByEventAccessPathResponse) XXX_Size

func (*GetEventsByEventAccessPathResponse) XXX_Unmarshal

func (m *GetEventsByEventAccessPathResponse) XXX_Unmarshal(b []byte) error

type GetTransactionsRequest

type GetTransactionsRequest struct {
	// The version of the transaction to start with for this query.  Use a version
	// of MAX_INT to represent the latest.
	StartVersion uint64 `protobuf:"varint,1,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"`
	// Limit number of results
	Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// Set to true to fetch events for the transaction at each version
	FetchEvents          bool     `protobuf:"varint,3,opt,name=fetch_events,json=fetchEvents,proto3" json:"fetch_events,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Get up to limit transactions starting from start_version.

func (*GetTransactionsRequest) Descriptor

func (*GetTransactionsRequest) Descriptor() ([]byte, []int)

func (*GetTransactionsRequest) GetFetchEvents

func (m *GetTransactionsRequest) GetFetchEvents() bool

func (*GetTransactionsRequest) GetLimit

func (m *GetTransactionsRequest) GetLimit() uint64

func (*GetTransactionsRequest) GetStartVersion

func (m *GetTransactionsRequest) GetStartVersion() uint64

func (*GetTransactionsRequest) ProtoMessage

func (*GetTransactionsRequest) ProtoMessage()

func (*GetTransactionsRequest) Reset

func (m *GetTransactionsRequest) Reset()

func (*GetTransactionsRequest) String

func (m *GetTransactionsRequest) String() string

func (*GetTransactionsRequest) XXX_DiscardUnknown

func (m *GetTransactionsRequest) XXX_DiscardUnknown()

func (*GetTransactionsRequest) XXX_Marshal

func (m *GetTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTransactionsRequest) XXX_Merge

func (m *GetTransactionsRequest) XXX_Merge(src proto.Message)

func (*GetTransactionsRequest) XXX_Size

func (m *GetTransactionsRequest) XXX_Size() int

func (*GetTransactionsRequest) XXX_Unmarshal

func (m *GetTransactionsRequest) XXX_Unmarshal(b []byte) error

type GetTransactionsResponse

type GetTransactionsResponse struct {
	TxnListWithProof     *TransactionListWithProof `protobuf:"bytes,1,opt,name=txn_list_with_proof,json=txnListWithProof,proto3" json:"txn_list_with_proof,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*GetTransactionsResponse) Descriptor

func (*GetTransactionsResponse) Descriptor() ([]byte, []int)

func (*GetTransactionsResponse) GetTxnListWithProof

func (m *GetTransactionsResponse) GetTxnListWithProof() *TransactionListWithProof

func (*GetTransactionsResponse) ProtoMessage

func (*GetTransactionsResponse) ProtoMessage()

func (*GetTransactionsResponse) Reset

func (m *GetTransactionsResponse) Reset()

func (*GetTransactionsResponse) String

func (m *GetTransactionsResponse) String() string

func (*GetTransactionsResponse) XXX_DiscardUnknown

func (m *GetTransactionsResponse) XXX_DiscardUnknown()

func (*GetTransactionsResponse) XXX_Marshal

func (m *GetTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTransactionsResponse) XXX_Merge

func (m *GetTransactionsResponse) XXX_Merge(src proto.Message)

func (*GetTransactionsResponse) XXX_Size

func (m *GetTransactionsResponse) XXX_Size() int

func (*GetTransactionsResponse) XXX_Unmarshal

func (m *GetTransactionsResponse) XXX_Unmarshal(b []byte) error

type LedgerInfo

type LedgerInfo struct {
	// Current latest version of the system
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Root hash of transaction accumulator at this version
	TransactionAccumulatorHash []byte `` /* 141-byte string literal not displayed */
	// Hash of consensus-specific data that is opaque to all parts of the system
	// other than consensus.  This is needed to verify signatures because
	// consensus signing includes this hash
	ConsensusDataHash []byte `protobuf:"bytes,3,opt,name=consensus_data_hash,json=consensusDataHash,proto3" json:"consensus_data_hash,omitempty"`
	// The block id of the last committed block corresponding to this ledger info.
	// This field is not particularly interesting to the clients, but can be used
	// by the validators for synchronization.
	ConsensusBlockId []byte `protobuf:"bytes,4,opt,name=consensus_block_id,json=consensusBlockId,proto3" json:"consensus_block_id,omitempty"`
	// Epoch number corresponds to the set of validators that are active for this
	// ledger info. The main motivation for keeping the epoch number in the
	// LedgerInfo is to ensure that the client has enough information to verify
	// that the signatures for this info are coming from the validators that
	// indeed form a quorum. Without epoch number a potential attack could reuse
	// the signatures from the validators in one epoch in order to sign the wrong
	// info belonging to another epoch, in which these validators do not form a
	// quorum. The very first epoch number is 0.
	EpochNum uint64 `protobuf:"varint,5,opt,name=epoch_num,json=epochNum,proto3" json:"epoch_num,omitempty"`
	// Timestamp that represents the microseconds since the epoch (unix time) that is
	// generated by the proposer of the block.  This is strictly increasing with every block.
	// If a client reads a timestamp > the one they specified for transaction expiration time,
	// they can be certain that their transaction will never be included in a block in the future
	// (assuming that their transaction has not yet been included)
	TimestampUsecs       uint64   `protobuf:"varint,6,opt,name=timestamp_usecs,json=timestampUsecs,proto3" json:"timestamp_usecs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

/ Even though we don't always need all hashes, we pass them in and return them / always so that we keep them in sync on the client and don't make the client / worry about which one(s) to pass in which cases / / This structure serves a dual purpose. / / First, if this structure is signed by 2f+1 validators it signifies the state / of the ledger at version `version` -- it contains the transaction / accumulator at that version which commits to all historical transactions. / This structure may be expanded to include other information that is derived / from that accumulator (e.g. the current time according to the time contract) / to reduce the number of proofs a client must get. / / Second, the structure contains a `consensus_data_hash` value. This is the / hash of an internal data structure that represents a block that is voted on / by consensus. / / Combining these two concepts when the consensus algorithm votes on a block B / it votes for a LedgerInfo with the `version` being the latest version that / will be committed if B gets 2f+1 votes. It sets `consensus_data_hash` to / represent B so that if those 2f+1 votes are gathered, the block is valid to / commit

func (*LedgerInfo) Descriptor

func (*LedgerInfo) Descriptor() ([]byte, []int)

func (*LedgerInfo) GetConsensusBlockId

func (m *LedgerInfo) GetConsensusBlockId() []byte

func (*LedgerInfo) GetConsensusDataHash

func (m *LedgerInfo) GetConsensusDataHash() []byte

func (*LedgerInfo) GetEpochNum

func (m *LedgerInfo) GetEpochNum() uint64

func (*LedgerInfo) GetTimestampUsecs

func (m *LedgerInfo) GetTimestampUsecs() uint64

func (*LedgerInfo) GetTransactionAccumulatorHash

func (m *LedgerInfo) GetTransactionAccumulatorHash() []byte

func (*LedgerInfo) GetVersion

func (m *LedgerInfo) GetVersion() uint64

func (*LedgerInfo) ProtoMessage

func (*LedgerInfo) ProtoMessage()

func (*LedgerInfo) Reset

func (m *LedgerInfo) Reset()

func (*LedgerInfo) String

func (m *LedgerInfo) String() string

func (*LedgerInfo) XXX_DiscardUnknown

func (m *LedgerInfo) XXX_DiscardUnknown()

func (*LedgerInfo) XXX_Marshal

func (m *LedgerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LedgerInfo) XXX_Merge

func (m *LedgerInfo) XXX_Merge(src proto.Message)

func (*LedgerInfo) XXX_Size

func (m *LedgerInfo) XXX_Size() int

func (*LedgerInfo) XXX_Unmarshal

func (m *LedgerInfo) XXX_Unmarshal(b []byte) error

type LedgerInfoWithSignatures

type LedgerInfoWithSignatures struct {
	// Signatures of the root node from each validator
	Signatures           []*ValidatorSignature `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
	LedgerInfo           *LedgerInfo           `protobuf:"bytes,2,opt,name=ledger_info,json=ledgerInfo,proto3" json:"ledger_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

/ The validator node returns this structure which includes signatures / from each validator to confirm the state. The client needs to only pass / back the LedgerInfo element since the validator node doesn't need to know / the signatures again when the client performs a query, those are only there / for the client to be able to verify the state

func (*LedgerInfoWithSignatures) Descriptor

func (*LedgerInfoWithSignatures) Descriptor() ([]byte, []int)

func (*LedgerInfoWithSignatures) GetLedgerInfo

func (m *LedgerInfoWithSignatures) GetLedgerInfo() *LedgerInfo

func (*LedgerInfoWithSignatures) GetSignatures

func (m *LedgerInfoWithSignatures) GetSignatures() []*ValidatorSignature

func (*LedgerInfoWithSignatures) ProtoMessage

func (*LedgerInfoWithSignatures) ProtoMessage()

func (*LedgerInfoWithSignatures) Reset

func (m *LedgerInfoWithSignatures) Reset()

func (*LedgerInfoWithSignatures) String

func (m *LedgerInfoWithSignatures) String() string

func (*LedgerInfoWithSignatures) XXX_DiscardUnknown

func (m *LedgerInfoWithSignatures) XXX_DiscardUnknown()

func (*LedgerInfoWithSignatures) XXX_Marshal

func (m *LedgerInfoWithSignatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LedgerInfoWithSignatures) XXX_Merge

func (m *LedgerInfoWithSignatures) XXX_Merge(src proto.Message)

func (*LedgerInfoWithSignatures) XXX_Size

func (m *LedgerInfoWithSignatures) XXX_Size() int

func (*LedgerInfoWithSignatures) XXX_Unmarshal

func (m *LedgerInfoWithSignatures) XXX_Unmarshal(b []byte) error

type ModuleId added in v0.2.0

type ModuleId struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

/ The unique identifier for a module on the chain.

func (*ModuleId) Descriptor added in v0.2.0

func (*ModuleId) Descriptor() ([]byte, []int)

func (*ModuleId) GetAddress added in v0.2.0

func (m *ModuleId) GetAddress() []byte

func (*ModuleId) GetName added in v0.2.0

func (m *ModuleId) GetName() string

func (*ModuleId) ProtoMessage added in v0.2.0

func (*ModuleId) ProtoMessage()

func (*ModuleId) Reset added in v0.2.0

func (m *ModuleId) Reset()

func (*ModuleId) String added in v0.2.0

func (m *ModuleId) String() string

func (*ModuleId) XXX_DiscardUnknown added in v0.2.0

func (m *ModuleId) XXX_DiscardUnknown()

func (*ModuleId) XXX_Marshal added in v0.2.0

func (m *ModuleId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ModuleId) XXX_Merge added in v0.2.0

func (m *ModuleId) XXX_Merge(src proto.Message)

func (*ModuleId) XXX_Size added in v0.2.0

func (m *ModuleId) XXX_Size() int

func (*ModuleId) XXX_Unmarshal added in v0.2.0

func (m *ModuleId) XXX_Unmarshal(b []byte) error

type Program

type Program struct {
	Code                 []byte                 `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Arguments            []*TransactionArgument `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"`
	Modules              [][]byte               `protobuf:"bytes,3,rep,name=modules,proto3" json:"modules,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

The code for the transaction to execute

func (*Program) Descriptor

func (*Program) Descriptor() ([]byte, []int)

func (*Program) GetArguments

func (m *Program) GetArguments() []*TransactionArgument

func (*Program) GetCode

func (m *Program) GetCode() []byte

func (*Program) GetModules

func (m *Program) GetModules() [][]byte

func (*Program) ProtoMessage

func (*Program) ProtoMessage()

func (*Program) Reset

func (m *Program) Reset()

func (*Program) String

func (m *Program) String() string

func (*Program) XXX_DiscardUnknown

func (m *Program) XXX_DiscardUnknown()

func (*Program) XXX_Marshal

func (m *Program) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Program) XXX_Merge

func (m *Program) XXX_Merge(src proto.Message)

func (*Program) XXX_Size

func (m *Program) XXX_Size() int

func (*Program) XXX_Unmarshal

func (m *Program) XXX_Unmarshal(b []byte) error

type RawTransaction

type RawTransaction struct {
	// Sender's account address
	SenderAccount []byte `protobuf:"bytes,1,opt,name=sender_account,json=senderAccount,proto3" json:"sender_account,omitempty"`
	// Sequence number of this transaction corresponding to sender's account.
	SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// Types that are valid to be assigned to Payload:
	//	*RawTransaction_Program
	//	*RawTransaction_WriteSet
	Payload isRawTransaction_Payload `protobuf_oneof:"payload"`
	// Maximal total gas specified by wallet to spend for this transaction.
	MaxGasAmount uint64 `protobuf:"varint,5,opt,name=max_gas_amount,json=maxGasAmount,proto3" json:"max_gas_amount,omitempty"`
	// The price to be paid for each unit of gas.
	GasUnitPrice uint64 `protobuf:"varint,6,opt,name=gas_unit_price,json=gasUnitPrice,proto3" json:"gas_unit_price,omitempty"`
	// Expiration time for this transaction.  If storage is queried and
	// the time returned is greater than or equal to this time and this
	// transaction has not been included, you can be certain that it will
	// never be included.
	// If set to 0, there will be no expiration time
	ExpirationTime       uint64   `protobuf:"varint,7,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A generic structure that describes a transaction that a client submits

func (*RawTransaction) Descriptor

func (*RawTransaction) Descriptor() ([]byte, []int)

func (*RawTransaction) GetExpirationTime

func (m *RawTransaction) GetExpirationTime() uint64

func (*RawTransaction) GetGasUnitPrice

func (m *RawTransaction) GetGasUnitPrice() uint64

func (*RawTransaction) GetMaxGasAmount

func (m *RawTransaction) GetMaxGasAmount() uint64

func (*RawTransaction) GetPayload

func (m *RawTransaction) GetPayload() isRawTransaction_Payload

func (*RawTransaction) GetProgram

func (m *RawTransaction) GetProgram() *Program

func (*RawTransaction) GetSenderAccount

func (m *RawTransaction) GetSenderAccount() []byte

func (*RawTransaction) GetSequenceNumber

func (m *RawTransaction) GetSequenceNumber() uint64

func (*RawTransaction) GetWriteSet

func (m *RawTransaction) GetWriteSet() *WriteSet

func (*RawTransaction) ProtoMessage

func (*RawTransaction) ProtoMessage()

func (*RawTransaction) Reset

func (m *RawTransaction) Reset()

func (*RawTransaction) String

func (m *RawTransaction) String() string

func (*RawTransaction) XXX_DiscardUnknown

func (m *RawTransaction) XXX_DiscardUnknown()

func (*RawTransaction) XXX_Marshal

func (m *RawTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RawTransaction) XXX_Merge

func (m *RawTransaction) XXX_Merge(src proto.Message)

func (*RawTransaction) XXX_OneofWrappers

func (*RawTransaction) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*RawTransaction) XXX_Size

func (m *RawTransaction) XXX_Size() int

func (*RawTransaction) XXX_Unmarshal

func (m *RawTransaction) XXX_Unmarshal(b []byte) error

type RawTransaction_Program

type RawTransaction_Program struct {
	Program *Program `protobuf:"bytes,3,opt,name=program,proto3,oneof"`
}

type RawTransaction_WriteSet

type RawTransaction_WriteSet struct {
	WriteSet *WriteSet `protobuf:"bytes,4,opt,name=write_set,json=writeSet,proto3,oneof"`
}

type RequestItem

type RequestItem struct {
	// Types that are valid to be assigned to RequestedItems:
	//	*RequestItem_GetAccountStateRequest
	//	*RequestItem_GetAccountTransactionBySequenceNumberRequest
	//	*RequestItem_GetEventsByEventAccessPathRequest
	//	*RequestItem_GetTransactionsRequest
	RequestedItems       isRequestItem_RequestedItems `protobuf_oneof:"requested_items"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

func (*RequestItem) Descriptor

func (*RequestItem) Descriptor() ([]byte, []int)

func (*RequestItem) GetGetAccountStateRequest

func (m *RequestItem) GetGetAccountStateRequest() *GetAccountStateRequest

func (*RequestItem) GetGetAccountTransactionBySequenceNumberRequest

func (m *RequestItem) GetGetAccountTransactionBySequenceNumberRequest() *GetAccountTransactionBySequenceNumberRequest

func (*RequestItem) GetGetEventsByEventAccessPathRequest

func (m *RequestItem) GetGetEventsByEventAccessPathRequest() *GetEventsByEventAccessPathRequest

func (*RequestItem) GetGetTransactionsRequest

func (m *RequestItem) GetGetTransactionsRequest() *GetTransactionsRequest

func (*RequestItem) GetRequestedItems

func (m *RequestItem) GetRequestedItems() isRequestItem_RequestedItems

func (*RequestItem) ProtoMessage

func (*RequestItem) ProtoMessage()

func (*RequestItem) Reset

func (m *RequestItem) Reset()

func (*RequestItem) String

func (m *RequestItem) String() string

func (*RequestItem) XXX_DiscardUnknown

func (m *RequestItem) XXX_DiscardUnknown()

func (*RequestItem) XXX_Marshal

func (m *RequestItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestItem) XXX_Merge

func (m *RequestItem) XXX_Merge(src proto.Message)

func (*RequestItem) XXX_OneofWrappers

func (*RequestItem) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*RequestItem) XXX_Size

func (m *RequestItem) XXX_Size() int

func (*RequestItem) XXX_Unmarshal

func (m *RequestItem) XXX_Unmarshal(b []byte) error

type RequestItem_GetAccountStateRequest

type RequestItem_GetAccountStateRequest struct {
	GetAccountStateRequest *GetAccountStateRequest `protobuf:"bytes,1,opt,name=get_account_state_request,json=getAccountStateRequest,proto3,oneof"`
}

type RequestItem_GetAccountTransactionBySequenceNumberRequest

type RequestItem_GetAccountTransactionBySequenceNumberRequest struct {
	GetAccountTransactionBySequenceNumberRequest *GetAccountTransactionBySequenceNumberRequest `` /* 141-byte string literal not displayed */
}

type RequestItem_GetEventsByEventAccessPathRequest

type RequestItem_GetEventsByEventAccessPathRequest struct {
	GetEventsByEventAccessPathRequest *GetEventsByEventAccessPathRequest `protobuf:"bytes,3,opt,name=get_events_by_event_access_path_request,json=getEventsByEventAccessPathRequest,proto3,oneof"`
}

type RequestItem_GetTransactionsRequest

type RequestItem_GetTransactionsRequest struct {
	GetTransactionsRequest *GetTransactionsRequest `protobuf:"bytes,4,opt,name=get_transactions_request,json=getTransactionsRequest,proto3,oneof"`
}

type ResponseItem

type ResponseItem struct {
	// Types that are valid to be assigned to ResponseItems:
	//	*ResponseItem_GetAccountStateResponse
	//	*ResponseItem_GetAccountTransactionBySequenceNumberResponse
	//	*ResponseItem_GetEventsByEventAccessPathResponse
	//	*ResponseItem_GetTransactionsResponse
	ResponseItems        isResponseItem_ResponseItems `protobuf_oneof:"response_items"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

Individual response items to the queries posed by the requests

func (*ResponseItem) Descriptor

func (*ResponseItem) Descriptor() ([]byte, []int)

func (*ResponseItem) GetGetAccountStateResponse

func (m *ResponseItem) GetGetAccountStateResponse() *GetAccountStateResponse

func (*ResponseItem) GetGetAccountTransactionBySequenceNumberResponse

func (m *ResponseItem) GetGetAccountTransactionBySequenceNumberResponse() *GetAccountTransactionBySequenceNumberResponse

func (*ResponseItem) GetGetEventsByEventAccessPathResponse

func (m *ResponseItem) GetGetEventsByEventAccessPathResponse() *GetEventsByEventAccessPathResponse

func (*ResponseItem) GetGetTransactionsResponse

func (m *ResponseItem) GetGetTransactionsResponse() *GetTransactionsResponse

func (*ResponseItem) GetResponseItems

func (m *ResponseItem) GetResponseItems() isResponseItem_ResponseItems

func (*ResponseItem) ProtoMessage

func (*ResponseItem) ProtoMessage()

func (*ResponseItem) Reset

func (m *ResponseItem) Reset()

func (*ResponseItem) String

func (m *ResponseItem) String() string

func (*ResponseItem) XXX_DiscardUnknown

func (m *ResponseItem) XXX_DiscardUnknown()

func (*ResponseItem) XXX_Marshal

func (m *ResponseItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResponseItem) XXX_Merge

func (m *ResponseItem) XXX_Merge(src proto.Message)

func (*ResponseItem) XXX_OneofWrappers

func (*ResponseItem) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ResponseItem) XXX_Size

func (m *ResponseItem) XXX_Size() int

func (*ResponseItem) XXX_Unmarshal

func (m *ResponseItem) XXX_Unmarshal(b []byte) error

type ResponseItem_GetAccountStateResponse

type ResponseItem_GetAccountStateResponse struct {
	GetAccountStateResponse *GetAccountStateResponse `protobuf:"bytes,3,opt,name=get_account_state_response,json=getAccountStateResponse,proto3,oneof"`
}

type ResponseItem_GetAccountTransactionBySequenceNumberResponse

type ResponseItem_GetAccountTransactionBySequenceNumberResponse struct {
	GetAccountTransactionBySequenceNumberResponse *GetAccountTransactionBySequenceNumberResponse `` /* 143-byte string literal not displayed */
}

type ResponseItem_GetEventsByEventAccessPathResponse

type ResponseItem_GetEventsByEventAccessPathResponse struct {
	GetEventsByEventAccessPathResponse *GetEventsByEventAccessPathResponse `protobuf:"bytes,5,opt,name=get_events_by_event_access_path_response,json=getEventsByEventAccessPathResponse,proto3,oneof"`
}

type ResponseItem_GetTransactionsResponse

type ResponseItem_GetTransactionsResponse struct {
	GetTransactionsResponse *GetTransactionsResponse `protobuf:"bytes,6,opt,name=get_transactions_response,json=getTransactionsResponse,proto3,oneof"`
}

type RuntimeStatus

type RuntimeStatus int32
const (
	RuntimeStatus_UnknownRuntimeStatus RuntimeStatus = 0
	RuntimeStatus_Executed             RuntimeStatus = 1
	RuntimeStatus_OutOfGas             RuntimeStatus = 2
	// We tried to access a resource that does not exist under the account.
	RuntimeStatus_ResourceDoesNotExist RuntimeStatus = 3
	// We tried to create a resource under an account where that resource
	// already exists.
	RuntimeStatus_ResourceAlreadyExists RuntimeStatus = 4
	// We accessed an account that is evicted.
	RuntimeStatus_EvictedAccountAccess RuntimeStatus = 5
	// We tried to create an account at an address where an account already
	// exists.
	RuntimeStatus_AccountAddressAlreadyExists RuntimeStatus = 6
	RuntimeStatus_TypeError                   RuntimeStatus = 7
	RuntimeStatus_MissingData                 RuntimeStatus = 8
	RuntimeStatus_DataFormatError             RuntimeStatus = 9
	RuntimeStatus_InvalidData                 RuntimeStatus = 10
	RuntimeStatus_RemoteDataError             RuntimeStatus = 11
	RuntimeStatus_CannotWriteExistingResource RuntimeStatus = 12
	RuntimeStatus_ValueSerializationError     RuntimeStatus = 13
	RuntimeStatus_ValueDeserializationError   RuntimeStatus = 14
	// The sender is trying to publish a module named `M`, but the sender's account already contains
	// a module with this name.
	RuntimeStatus_DuplicateModuleName RuntimeStatus = 15
)

func (RuntimeStatus) EnumDescriptor

func (RuntimeStatus) EnumDescriptor() ([]byte, []int)

func (RuntimeStatus) String

func (x RuntimeStatus) String() string

type SignedTransaction

type SignedTransaction struct {
	// The serialized Protobuf bytes for RawTransaction, for which the signature
	// was signed. Protobuf doesn't guarantee the serialized bytes is canonical
	// across different language implementations, but for our use cases for
	// transaction it is not necessary because the client is the only one to
	// produce this bytes, which is then persisted in storage.
	RawTxnBytes []byte `protobuf:"bytes,1,opt,name=raw_txn_bytes,json=rawTxnBytes,proto3" json:"raw_txn_bytes,omitempty"`
	// public key that corresponds to RawTransaction::sender_account
	SenderPublicKey []byte `protobuf:"bytes,2,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"`
	// signature for the hash
	SenderSignature      []byte   `protobuf:"bytes,3,opt,name=sender_signature,json=senderSignature,proto3" json:"sender_signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A generic structure that represents signed RawTransaction

func (*SignedTransaction) Descriptor

func (*SignedTransaction) Descriptor() ([]byte, []int)

func (*SignedTransaction) GetRawTxnBytes

func (m *SignedTransaction) GetRawTxnBytes() []byte

func (*SignedTransaction) GetSenderPublicKey

func (m *SignedTransaction) GetSenderPublicKey() []byte

func (*SignedTransaction) GetSenderSignature

func (m *SignedTransaction) GetSenderSignature() []byte

func (*SignedTransaction) ProtoMessage

func (*SignedTransaction) ProtoMessage()

func (*SignedTransaction) Reset

func (m *SignedTransaction) Reset()

func (*SignedTransaction) String

func (m *SignedTransaction) String() string

func (*SignedTransaction) XXX_DiscardUnknown

func (m *SignedTransaction) XXX_DiscardUnknown()

func (*SignedTransaction) XXX_Marshal

func (m *SignedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedTransaction) XXX_Merge

func (m *SignedTransaction) XXX_Merge(src proto.Message)

func (*SignedTransaction) XXX_Size

func (m *SignedTransaction) XXX_Size() int

func (*SignedTransaction) XXX_Unmarshal

func (m *SignedTransaction) XXX_Unmarshal(b []byte) error

type SignedTransactionProof

type SignedTransactionProof struct {
	LedgerInfoToTransactionInfoProof *AccumulatorProof `` /* 165-byte string literal not displayed */
	TransactionInfo                  *TransactionInfo  `protobuf:"bytes,2,opt,name=transaction_info,json=transactionInfo,proto3" json:"transaction_info,omitempty"`
	XXX_NoUnkeyedLiteral             struct{}          `json:"-"`
	XXX_unrecognized                 []byte            `json:"-"`
	XXX_sizecache                    int32             `json:"-"`
}

The complete proof used to authenticate a signed transaction.

func (*SignedTransactionProof) Descriptor

func (*SignedTransactionProof) Descriptor() ([]byte, []int)

func (*SignedTransactionProof) GetLedgerInfoToTransactionInfoProof

func (m *SignedTransactionProof) GetLedgerInfoToTransactionInfoProof() *AccumulatorProof

func (*SignedTransactionProof) GetTransactionInfo

func (m *SignedTransactionProof) GetTransactionInfo() *TransactionInfo

func (*SignedTransactionProof) ProtoMessage

func (*SignedTransactionProof) ProtoMessage()

func (*SignedTransactionProof) Reset

func (m *SignedTransactionProof) Reset()

func (*SignedTransactionProof) String

func (m *SignedTransactionProof) String() string

func (*SignedTransactionProof) XXX_DiscardUnknown

func (m *SignedTransactionProof) XXX_DiscardUnknown()

func (*SignedTransactionProof) XXX_Marshal

func (m *SignedTransactionProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedTransactionProof) XXX_Merge

func (m *SignedTransactionProof) XXX_Merge(src proto.Message)

func (*SignedTransactionProof) XXX_Size

func (m *SignedTransactionProof) XXX_Size() int

func (*SignedTransactionProof) XXX_Unmarshal

func (m *SignedTransactionProof) XXX_Unmarshal(b []byte) error

type SignedTransactionWithProof

type SignedTransactionWithProof struct {
	// The version of the returned signed transaction.
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// The transaction itself.
	SignedTransaction *SignedTransaction `protobuf:"bytes,2,opt,name=signed_transaction,json=signedTransaction,proto3" json:"signed_transaction,omitempty"`
	// The proof authenticating the signed transaction.
	Proof *SignedTransactionProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
	// The events yielded by executing the transaction, if requested.
	Events               *EventsList `protobuf:"bytes,4,opt,name=events,proto3" json:"events,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*SignedTransactionWithProof) Descriptor

func (*SignedTransactionWithProof) Descriptor() ([]byte, []int)

func (*SignedTransactionWithProof) GetEvents

func (m *SignedTransactionWithProof) GetEvents() *EventsList

func (*SignedTransactionWithProof) GetProof

func (*SignedTransactionWithProof) GetSignedTransaction

func (m *SignedTransactionWithProof) GetSignedTransaction() *SignedTransaction

func (*SignedTransactionWithProof) GetVersion

func (m *SignedTransactionWithProof) GetVersion() uint64

func (*SignedTransactionWithProof) ProtoMessage

func (*SignedTransactionWithProof) ProtoMessage()

func (*SignedTransactionWithProof) Reset

func (m *SignedTransactionWithProof) Reset()

func (*SignedTransactionWithProof) String

func (m *SignedTransactionWithProof) String() string

func (*SignedTransactionWithProof) XXX_DiscardUnknown

func (m *SignedTransactionWithProof) XXX_DiscardUnknown()

func (*SignedTransactionWithProof) XXX_Marshal

func (m *SignedTransactionWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedTransactionWithProof) XXX_Merge

func (m *SignedTransactionWithProof) XXX_Merge(src proto.Message)

func (*SignedTransactionWithProof) XXX_Size

func (m *SignedTransactionWithProof) XXX_Size() int

func (*SignedTransactionWithProof) XXX_Unmarshal

func (m *SignedTransactionWithProof) XXX_Unmarshal(b []byte) error

type SignedTransactionsBlock

type SignedTransactionsBlock struct {
	// Set of Signed Transactions
	Transactions []*SignedTransaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// Public key of the validator that created this block
	ValidatorPublicKey []byte `protobuf:"bytes,2,opt,name=validator_public_key,json=validatorPublicKey,proto3" json:"validator_public_key,omitempty"`
	// Signature of the validator that created this block
	ValidatorSignature   []byte   `protobuf:"bytes,3,opt,name=validator_signature,json=validatorSignature,proto3" json:"validator_signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A generic structure that represents a block of transactions originated from a particular validator instance.

func (*SignedTransactionsBlock) Descriptor

func (*SignedTransactionsBlock) Descriptor() ([]byte, []int)

func (*SignedTransactionsBlock) GetTransactions

func (m *SignedTransactionsBlock) GetTransactions() []*SignedTransaction

func (*SignedTransactionsBlock) GetValidatorPublicKey

func (m *SignedTransactionsBlock) GetValidatorPublicKey() []byte

func (*SignedTransactionsBlock) GetValidatorSignature

func (m *SignedTransactionsBlock) GetValidatorSignature() []byte

func (*SignedTransactionsBlock) ProtoMessage

func (*SignedTransactionsBlock) ProtoMessage()

func (*SignedTransactionsBlock) Reset

func (m *SignedTransactionsBlock) Reset()

func (*SignedTransactionsBlock) String

func (m *SignedTransactionsBlock) String() string

func (*SignedTransactionsBlock) XXX_DiscardUnknown

func (m *SignedTransactionsBlock) XXX_DiscardUnknown()

func (*SignedTransactionsBlock) XXX_Marshal

func (m *SignedTransactionsBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedTransactionsBlock) XXX_Merge

func (m *SignedTransactionsBlock) XXX_Merge(src proto.Message)

func (*SignedTransactionsBlock) XXX_Size

func (m *SignedTransactionsBlock) XXX_Size() int

func (*SignedTransactionsBlock) XXX_Unmarshal

func (m *SignedTransactionsBlock) XXX_Unmarshal(b []byte) error

type SparseMerkleProof

type SparseMerkleProof struct {
	// This proof can be used to authenticate whether a given leaf exists in the
	// tree or not. In Rust:
	//   - If this is `Some(HashValue, HashValue)`
	//     - If the first `HashValue` equals requested key, this is an inclusion
	//       proof and the second `HashValue` equals the hash of the
	//       corresponding account blob.
	//     - Otherwise this is a non-inclusion proof. The first `HashValue` is
	//       the only key that exists in the subtree and the second `HashValue`
	//       equals the hash of the corresponding account blob.
	//   - If this is `None`, this is also a non-inclusion proof which indicates
	//     the subtree is empty.
	//
	// In protobuf, this leaf field should either be
	//   - empty, which corresponds to None in the Rust structure.
	//   - exactly 64 bytes, which corresponds to Some<(HashValue, HashValue)>
	//     in the Rust structure.
	Leaf []byte `protobuf:"bytes,1,opt,name=leaf,proto3" json:"leaf,omitempty"`
	// The bitmap indicating which siblings are default. 1 means non-default and
	// 0 means default. The MSB of the first byte corresponds to the sibling at
	// the top of the Sparse Merkle Tree. The rightmost 1-bit of the last byte
	// corresponds to the sibling at the bottom, since this one is always
	// non-default.
	Bitmap []byte `protobuf:"bytes,2,opt,name=bitmap,proto3" json:"bitmap,omitempty"`
	// The non-default siblings. The ones near the root are at the beginning of
	// the list.
	NonDefaultSiblings   [][]byte `protobuf:"bytes,3,rep,name=non_default_siblings,json=nonDefaultSiblings,proto3" json:"non_default_siblings,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SparseMerkleProof) Descriptor

func (*SparseMerkleProof) Descriptor() ([]byte, []int)

func (*SparseMerkleProof) GetBitmap

func (m *SparseMerkleProof) GetBitmap() []byte

func (*SparseMerkleProof) GetLeaf

func (m *SparseMerkleProof) GetLeaf() []byte

func (*SparseMerkleProof) GetNonDefaultSiblings

func (m *SparseMerkleProof) GetNonDefaultSiblings() [][]byte

func (*SparseMerkleProof) ProtoMessage

func (*SparseMerkleProof) ProtoMessage()

func (*SparseMerkleProof) Reset

func (m *SparseMerkleProof) Reset()

func (*SparseMerkleProof) String

func (m *SparseMerkleProof) String() string

func (*SparseMerkleProof) XXX_DiscardUnknown

func (m *SparseMerkleProof) XXX_DiscardUnknown()

func (*SparseMerkleProof) XXX_Marshal

func (m *SparseMerkleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SparseMerkleProof) XXX_Merge

func (m *SparseMerkleProof) XXX_Merge(src proto.Message)

func (*SparseMerkleProof) XXX_Size

func (m *SparseMerkleProof) XXX_Size() int

func (*SparseMerkleProof) XXX_Unmarshal

func (m *SparseMerkleProof) XXX_Unmarshal(b []byte) error

type TransactionArgument

type TransactionArgument struct {
	Type                 TransactionArgument_ArgType `protobuf:"varint,1,opt,name=type,proto3,enum=types.TransactionArgument_ArgType" json:"type,omitempty"`
	Data                 []byte                      `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

An argument to the transaction if the transaction takes arguments

func (*TransactionArgument) Descriptor

func (*TransactionArgument) Descriptor() ([]byte, []int)

func (*TransactionArgument) GetData

func (m *TransactionArgument) GetData() []byte

func (*TransactionArgument) GetType

func (*TransactionArgument) ProtoMessage

func (*TransactionArgument) ProtoMessage()

func (*TransactionArgument) Reset

func (m *TransactionArgument) Reset()

func (*TransactionArgument) String

func (m *TransactionArgument) String() string

func (*TransactionArgument) XXX_DiscardUnknown

func (m *TransactionArgument) XXX_DiscardUnknown()

func (*TransactionArgument) XXX_Marshal

func (m *TransactionArgument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionArgument) XXX_Merge

func (m *TransactionArgument) XXX_Merge(src proto.Message)

func (*TransactionArgument) XXX_Size

func (m *TransactionArgument) XXX_Size() int

func (*TransactionArgument) XXX_Unmarshal

func (m *TransactionArgument) XXX_Unmarshal(b []byte) error

type TransactionArgument_ArgType

type TransactionArgument_ArgType int32
const (
	TransactionArgument_U64       TransactionArgument_ArgType = 0
	TransactionArgument_ADDRESS   TransactionArgument_ArgType = 1
	TransactionArgument_STRING    TransactionArgument_ArgType = 2
	TransactionArgument_BYTEARRAY TransactionArgument_ArgType = 3
)

func (TransactionArgument_ArgType) EnumDescriptor

func (TransactionArgument_ArgType) EnumDescriptor() ([]byte, []int)

func (TransactionArgument_ArgType) String

type TransactionInfo

type TransactionInfo struct {
	// Hash of the signed transaction that is stored
	SignedTransactionHash []byte `` /* 126-byte string literal not displayed */
	// The root hash of Sparse Merkle Tree describing the world state at the end
	// of this transaction
	StateRootHash []byte `protobuf:"bytes,2,opt,name=state_root_hash,json=stateRootHash,proto3" json:"state_root_hash,omitempty"`
	// The root hash of Merkle Accumulator storing all events emitted during this
	// transaction.
	EventRootHash []byte `protobuf:"bytes,3,opt,name=event_root_hash,json=eventRootHash,proto3" json:"event_root_hash,omitempty"`
	// The amount of gas used by this transaction.
	GasUsed              uint64   `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`TransactionInfo` is the object we store in the transaction accumulator. It consists of the transaction as well as the execution result of this transaction. This are later returned to the client so that a client can validate the tree

func (*TransactionInfo) Descriptor

func (*TransactionInfo) Descriptor() ([]byte, []int)

func (*TransactionInfo) GetEventRootHash

func (m *TransactionInfo) GetEventRootHash() []byte

func (*TransactionInfo) GetGasUsed

func (m *TransactionInfo) GetGasUsed() uint64

func (*TransactionInfo) GetSignedTransactionHash

func (m *TransactionInfo) GetSignedTransactionHash() []byte

func (*TransactionInfo) GetStateRootHash

func (m *TransactionInfo) GetStateRootHash() []byte

func (*TransactionInfo) ProtoMessage

func (*TransactionInfo) ProtoMessage()

func (*TransactionInfo) Reset

func (m *TransactionInfo) Reset()

func (*TransactionInfo) String

func (m *TransactionInfo) String() string

func (*TransactionInfo) XXX_DiscardUnknown

func (m *TransactionInfo) XXX_DiscardUnknown()

func (*TransactionInfo) XXX_Marshal

func (m *TransactionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionInfo) XXX_Merge

func (m *TransactionInfo) XXX_Merge(src proto.Message)

func (*TransactionInfo) XXX_Size

func (m *TransactionInfo) XXX_Size() int

func (*TransactionInfo) XXX_Unmarshal

func (m *TransactionInfo) XXX_Unmarshal(b []byte) error

type TransactionListWithProof

type TransactionListWithProof struct {
	// The list of transactions.
	Transactions []*SignedTransaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// The list of corresponding TransactionInfo objects.
	Infos []*TransactionInfo `protobuf:"bytes,2,rep,name=infos,proto3" json:"infos,omitempty"`
	// The list of corresponding Event objects (only present if fetch_events was set to true in req)
	EventsForVersions *EventsForVersions `protobuf:"bytes,3,opt,name=events_for_versions,json=eventsForVersions,proto3" json:"events_for_versions,omitempty"`
	// If the list is not empty, the version of the first transaction.
	FirstTransactionVersion *wrappers.UInt64Value `` /* 132-byte string literal not displayed */
	// The proofs of the first and last transaction in this chunk. When this is
	// used for state synchronization, the validator who requests the transactions
	// will provide a version in the request and the proofs will be relative to
	// the given version. When this is returned in GetTransactionsResponse, the
	// proofs will be relative to the ledger info returned in
	// UpdateToLatestLedgerResponse.
	ProofOfFirstTransaction *AccumulatorProof `` /* 134-byte string literal not displayed */
	ProofOfLastTransaction  *AccumulatorProof `` /* 131-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{}          `json:"-"`
	XXX_unrecognized        []byte            `json:"-"`
	XXX_sizecache           int32             `json:"-"`
}

A list of consecutive transactions with proof. This is mainly used for state synchronization when a validator would request a list of transactions from a peer, verify the proof, execute the transactions and persist them. Note that the transactions are supposed to belong to the same epoch E, otherwise verification will fail.

func (*TransactionListWithProof) Descriptor

func (*TransactionListWithProof) Descriptor() ([]byte, []int)

func (*TransactionListWithProof) GetEventsForVersions

func (m *TransactionListWithProof) GetEventsForVersions() *EventsForVersions

func (*TransactionListWithProof) GetFirstTransactionVersion

func (m *TransactionListWithProof) GetFirstTransactionVersion() *wrappers.UInt64Value

func (*TransactionListWithProof) GetInfos

func (m *TransactionListWithProof) GetInfos() []*TransactionInfo

func (*TransactionListWithProof) GetProofOfFirstTransaction

func (m *TransactionListWithProof) GetProofOfFirstTransaction() *AccumulatorProof

func (*TransactionListWithProof) GetProofOfLastTransaction

func (m *TransactionListWithProof) GetProofOfLastTransaction() *AccumulatorProof

func (*TransactionListWithProof) GetTransactions

func (m *TransactionListWithProof) GetTransactions() []*SignedTransaction

func (*TransactionListWithProof) ProtoMessage

func (*TransactionListWithProof) ProtoMessage()

func (*TransactionListWithProof) Reset

func (m *TransactionListWithProof) Reset()

func (*TransactionListWithProof) String

func (m *TransactionListWithProof) String() string

func (*TransactionListWithProof) XXX_DiscardUnknown

func (m *TransactionListWithProof) XXX_DiscardUnknown()

func (*TransactionListWithProof) XXX_Marshal

func (m *TransactionListWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionListWithProof) XXX_Merge

func (m *TransactionListWithProof) XXX_Merge(src proto.Message)

func (*TransactionListWithProof) XXX_Size

func (m *TransactionListWithProof) XXX_Size() int

func (*TransactionListWithProof) XXX_Unmarshal

func (m *TransactionListWithProof) XXX_Unmarshal(b []byte) error

type TransactionToCommit

type TransactionToCommit struct {
	// The signed transaction which was executed
	SignedTxn *SignedTransaction `protobuf:"bytes,1,opt,name=signed_txn,json=signedTxn,proto3" json:"signed_txn,omitempty"`
	// State db updates
	AccountStates []*AccountState `protobuf:"bytes,2,rep,name=account_states,json=accountStates,proto3" json:"account_states,omitempty"`
	// Events yielded by the transaction.
	Events []*Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
	// The amount of gas used.
	GasUsed              uint64   `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Transaction struct to commit to storage

func (*TransactionToCommit) Descriptor

func (*TransactionToCommit) Descriptor() ([]byte, []int)

func (*TransactionToCommit) GetAccountStates

func (m *TransactionToCommit) GetAccountStates() []*AccountState

func (*TransactionToCommit) GetEvents

func (m *TransactionToCommit) GetEvents() []*Event

func (*TransactionToCommit) GetGasUsed

func (m *TransactionToCommit) GetGasUsed() uint64

func (*TransactionToCommit) GetSignedTxn

func (m *TransactionToCommit) GetSignedTxn() *SignedTransaction

func (*TransactionToCommit) ProtoMessage

func (*TransactionToCommit) ProtoMessage()

func (*TransactionToCommit) Reset

func (m *TransactionToCommit) Reset()

func (*TransactionToCommit) String

func (m *TransactionToCommit) String() string

func (*TransactionToCommit) XXX_DiscardUnknown

func (m *TransactionToCommit) XXX_DiscardUnknown()

func (*TransactionToCommit) XXX_Marshal

func (m *TransactionToCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionToCommit) XXX_Merge

func (m *TransactionToCommit) XXX_Merge(src proto.Message)

func (*TransactionToCommit) XXX_Size

func (m *TransactionToCommit) XXX_Size() int

func (*TransactionToCommit) XXX_Unmarshal

func (m *TransactionToCommit) XXX_Unmarshal(b []byte) error

type UpdateToLatestLedgerRequest

type UpdateToLatestLedgerRequest struct {
	// This is the version the client already trusts. Usually the client should
	// set this to the version it obtained the last time it synced with the
	// chain. If this is the first time ever the client sends a request, it must
	// use the waypoint hard-coded in its software.
	ClientKnownVersion uint64 `protobuf:"varint,1,opt,name=client_known_version,json=clientKnownVersion,proto3" json:"client_known_version,omitempty"`
	// The items for which we are requesting data in this API call.
	RequestedItems       []*RequestItem `protobuf:"bytes,2,rep,name=requested_items,json=requestedItems,proto3" json:"requested_items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

This API is used to update the client to the latest ledger version and optionally also request 1..n other pieces of data. This allows for batch queries. All queries return proofs that a client should check to validate the data.

Note that if a client only wishes to update to the latest LedgerInfo and receive the proof that this latest ledger extends the client_known_version ledger the client had, they can simply set the requested_items to an empty list.

func (*UpdateToLatestLedgerRequest) Descriptor

func (*UpdateToLatestLedgerRequest) Descriptor() ([]byte, []int)

func (*UpdateToLatestLedgerRequest) GetClientKnownVersion

func (m *UpdateToLatestLedgerRequest) GetClientKnownVersion() uint64

func (*UpdateToLatestLedgerRequest) GetRequestedItems

func (m *UpdateToLatestLedgerRequest) GetRequestedItems() []*RequestItem

func (*UpdateToLatestLedgerRequest) ProtoMessage

func (*UpdateToLatestLedgerRequest) ProtoMessage()

func (*UpdateToLatestLedgerRequest) Reset

func (m *UpdateToLatestLedgerRequest) Reset()

func (*UpdateToLatestLedgerRequest) String

func (m *UpdateToLatestLedgerRequest) String() string

func (*UpdateToLatestLedgerRequest) XXX_DiscardUnknown

func (m *UpdateToLatestLedgerRequest) XXX_DiscardUnknown()

func (*UpdateToLatestLedgerRequest) XXX_Marshal

func (m *UpdateToLatestLedgerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateToLatestLedgerRequest) XXX_Merge

func (m *UpdateToLatestLedgerRequest) XXX_Merge(src proto.Message)

func (*UpdateToLatestLedgerRequest) XXX_Size

func (m *UpdateToLatestLedgerRequest) XXX_Size() int

func (*UpdateToLatestLedgerRequest) XXX_Unmarshal

func (m *UpdateToLatestLedgerRequest) XXX_Unmarshal(b []byte) error

type UpdateToLatestLedgerResponse

type UpdateToLatestLedgerResponse struct {
	// Responses to the queries posed by the requests. The proofs generated will
	// be relative to the version of the latest ledger provided below.
	ResponseItems []*ResponseItem `protobuf:"bytes,1,rep,name=response_items,json=responseItems,proto3" json:"response_items,omitempty"`
	// The latest ledger info this node has. It will come with at least 2f+1
	// validator signatures as well as a proof that shows the latest ledger
	// extends the old ledger the client had.
	LedgerInfoWithSigs *LedgerInfoWithSignatures `protobuf:"bytes,2,opt,name=ledger_info_with_sigs,json=ledgerInfoWithSigs,proto3" json:"ledger_info_with_sigs,omitempty"`
	// Validator change events from what the client last knew.  This is used to
	// inform the client of validator changes from the client's last known version
	// until the current version
	ValidatorChangeEvents []*ValidatorChangeEventWithProof `` /* 126-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{}                         `json:"-"`
	XXX_unrecognized      []byte                           `json:"-"`
	XXX_sizecache         int32                            `json:"-"`
}

Response from getting latest ledger

func (*UpdateToLatestLedgerResponse) Descriptor

func (*UpdateToLatestLedgerResponse) Descriptor() ([]byte, []int)

func (*UpdateToLatestLedgerResponse) GetLedgerInfoWithSigs

func (m *UpdateToLatestLedgerResponse) GetLedgerInfoWithSigs() *LedgerInfoWithSignatures

func (*UpdateToLatestLedgerResponse) GetResponseItems

func (m *UpdateToLatestLedgerResponse) GetResponseItems() []*ResponseItem

func (*UpdateToLatestLedgerResponse) GetValidatorChangeEvents

func (m *UpdateToLatestLedgerResponse) GetValidatorChangeEvents() []*ValidatorChangeEventWithProof

func (*UpdateToLatestLedgerResponse) ProtoMessage

func (*UpdateToLatestLedgerResponse) ProtoMessage()

func (*UpdateToLatestLedgerResponse) Reset

func (m *UpdateToLatestLedgerResponse) Reset()

func (*UpdateToLatestLedgerResponse) String

func (*UpdateToLatestLedgerResponse) XXX_DiscardUnknown

func (m *UpdateToLatestLedgerResponse) XXX_DiscardUnknown()

func (*UpdateToLatestLedgerResponse) XXX_Marshal

func (m *UpdateToLatestLedgerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateToLatestLedgerResponse) XXX_Merge

func (m *UpdateToLatestLedgerResponse) XXX_Merge(src proto.Message)

func (*UpdateToLatestLedgerResponse) XXX_Size

func (m *UpdateToLatestLedgerResponse) XXX_Size() int

func (*UpdateToLatestLedgerResponse) XXX_Unmarshal

func (m *UpdateToLatestLedgerResponse) XXX_Unmarshal(b []byte) error

type VMInvariantViolationError

type VMInvariantViolationError int32

These are errors that the VM might raise if a violation of internal invariants takes place.

const (
	VMInvariantViolationError_UnknownInvariantViolationError VMInvariantViolationError = 0
	VMInvariantViolationError_OutOfBoundsIndex               VMInvariantViolationError = 1
	VMInvariantViolationError_OutOfBoundsRange               VMInvariantViolationError = 2
	VMInvariantViolationError_EmptyValueStack                VMInvariantViolationError = 3
	VMInvariantViolationError_EmptyCallStack                 VMInvariantViolationError = 4
	VMInvariantViolationError_PCOverflow                     VMInvariantViolationError = 5
	VMInvariantViolationError_LinkerError                    VMInvariantViolationError = 6
	VMInvariantViolationError_LocalReferenceError            VMInvariantViolationError = 7
	VMInvariantViolationError_StorageError                   VMInvariantViolationError = 8
)

func (VMInvariantViolationError) EnumDescriptor

func (VMInvariantViolationError) EnumDescriptor() ([]byte, []int)

func (VMInvariantViolationError) String

func (x VMInvariantViolationError) String() string

type VMStatus

type VMStatus struct {
	// Types that are valid to be assigned to ErrorType:
	//	*VMStatus_Validation
	//	*VMStatus_Verification
	//	*VMStatus_InvariantViolation
	//	*VMStatus_Deserialization
	//	*VMStatus_Execution
	ErrorType            isVMStatus_ErrorType `protobuf_oneof:"error_type"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

The status of the VM

func (*VMStatus) Descriptor

func (*VMStatus) Descriptor() ([]byte, []int)

func (*VMStatus) GetDeserialization

func (m *VMStatus) GetDeserialization() BinaryError

func (*VMStatus) GetErrorType

func (m *VMStatus) GetErrorType() isVMStatus_ErrorType

func (*VMStatus) GetExecution

func (m *VMStatus) GetExecution() *ExecutionStatus

func (*VMStatus) GetInvariantViolation

func (m *VMStatus) GetInvariantViolation() VMInvariantViolationError

func (*VMStatus) GetValidation

func (m *VMStatus) GetValidation() *VMValidationStatus

func (*VMStatus) GetVerification

func (m *VMStatus) GetVerification() *VMVerificationStatusList

func (*VMStatus) ProtoMessage

func (*VMStatus) ProtoMessage()

func (*VMStatus) Reset

func (m *VMStatus) Reset()

func (*VMStatus) String

func (m *VMStatus) String() string

func (*VMStatus) XXX_DiscardUnknown

func (m *VMStatus) XXX_DiscardUnknown()

func (*VMStatus) XXX_Marshal

func (m *VMStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMStatus) XXX_Merge

func (m *VMStatus) XXX_Merge(src proto.Message)

func (*VMStatus) XXX_OneofWrappers

func (*VMStatus) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*VMStatus) XXX_Size

func (m *VMStatus) XXX_Size() int

func (*VMStatus) XXX_Unmarshal

func (m *VMStatus) XXX_Unmarshal(b []byte) error

type VMStatus_Deserialization

type VMStatus_Deserialization struct {
	Deserialization BinaryError `protobuf:"varint,4,opt,name=deserialization,proto3,enum=types.BinaryError,oneof"`
}

type VMStatus_Execution

type VMStatus_Execution struct {
	Execution *ExecutionStatus `protobuf:"bytes,5,opt,name=execution,proto3,oneof"`
}

type VMStatus_InvariantViolation

type VMStatus_InvariantViolation struct {
	InvariantViolation VMInvariantViolationError `protobuf:"varint,3,opt,name=invariant_violation,json=invariantViolation,proto3,enum=types.VMInvariantViolationError,oneof"`
}

type VMStatus_Validation

type VMStatus_Validation struct {
	Validation *VMValidationStatus `protobuf:"bytes,1,opt,name=validation,proto3,oneof"`
}

type VMStatus_Verification

type VMStatus_Verification struct {
	Verification *VMVerificationStatusList `protobuf:"bytes,2,opt,name=verification,proto3,oneof"`
}

type VMValidationStatus

type VMValidationStatus struct {
	Code                 VMValidationStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=types.VMValidationStatusCode" json:"code,omitempty"`
	Message              string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*VMValidationStatus) Descriptor

func (*VMValidationStatus) Descriptor() ([]byte, []int)

func (*VMValidationStatus) GetCode

func (*VMValidationStatus) GetMessage

func (m *VMValidationStatus) GetMessage() string

func (*VMValidationStatus) ProtoMessage

func (*VMValidationStatus) ProtoMessage()

func (*VMValidationStatus) Reset

func (m *VMValidationStatus) Reset()

func (*VMValidationStatus) String

func (m *VMValidationStatus) String() string

func (*VMValidationStatus) XXX_DiscardUnknown

func (m *VMValidationStatus) XXX_DiscardUnknown()

func (*VMValidationStatus) XXX_Marshal

func (m *VMValidationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMValidationStatus) XXX_Merge

func (m *VMValidationStatus) XXX_Merge(src proto.Message)

func (*VMValidationStatus) XXX_Size

func (m *VMValidationStatus) XXX_Size() int

func (*VMValidationStatus) XXX_Unmarshal

func (m *VMValidationStatus) XXX_Unmarshal(b []byte) error

type VMValidationStatusCode

type VMValidationStatusCode int32

The status of a transaction as determined by the prologue.

const (
	// We don't want the default value to be valid
	VMValidationStatusCode_UnknownValidationStatus VMValidationStatusCode = 0
	// The transaction has a bad signature
	VMValidationStatusCode_InvalidSignature VMValidationStatusCode = 1
	// Bad account authentication key
	VMValidationStatusCode_InvalidAuthKey VMValidationStatusCode = 2
	// Sequence number is too old
	VMValidationStatusCode_SequenceNumberTooOld VMValidationStatusCode = 3
	// Sequence number is too new
	VMValidationStatusCode_SequenceNumberTooNew VMValidationStatusCode = 4
	// Insufficient balance to pay minimum transaction fee
	VMValidationStatusCode_InsufficientBalanceForTransactionFee VMValidationStatusCode = 5
	// The transaction has expired
	VMValidationStatusCode_TransactionExpired VMValidationStatusCode = 6
	// The sending account does not exist
	VMValidationStatusCode_SendingAccountDoesNotExist VMValidationStatusCode = 7
	// This write set transaction was rejected because it did not meet the
	// requirements for one.
	VMValidationStatusCode_RejectedWriteSet VMValidationStatusCode = 8
	// This write set transaction cannot be applied to the current state.
	VMValidationStatusCode_InvalidWriteSet VMValidationStatusCode = 9
	// Length of program field in raw transaction exceeded max length
	VMValidationStatusCode_ExceededMaxTransactionSize VMValidationStatusCode = 10
	// This script is not on our whitelist of script.
	VMValidationStatusCode_UnknownScript VMValidationStatusCode = 11
	// Transaction is trying to publish a new module.
	VMValidationStatusCode_UnknownModule VMValidationStatusCode = 12
	// Max gas units submitted with transaction exceeds max gas units bound
	// in VM
	VMValidationStatusCode_MaxGasUnitsExceedsMaxGasUnitsBound VMValidationStatusCode = 13
	// Max gas units submitted with transaction not enough to cover the
	// intrinsic cost of the transaction.
	VMValidationStatusCode_MaxGasUnitsBelowMinTransactionGasUnits VMValidationStatusCode = 14
	// Gas unit price submitted with transaction is below minimum gas price
	// set in the VM.
	VMValidationStatusCode_GasUnitPriceBelowMinBound VMValidationStatusCode = 15
	// Gas unit price submitted with the transaction is above the maximum
	// gas price set in the VM.
	VMValidationStatusCode_GasUnitPriceAboveMaxBound VMValidationStatusCode = 16
)

func (VMValidationStatusCode) EnumDescriptor

func (VMValidationStatusCode) EnumDescriptor() ([]byte, []int)

func (VMValidationStatusCode) String

func (x VMValidationStatusCode) String() string

type VMVerificationErrorKind

type VMVerificationErrorKind int32

When a code module/script is published it is verified. These are the possible errors that can arise from the verification process.

const (
	// Likewise default to a unknown verification error
	VMVerificationErrorKind_UnknownVerificationError            VMVerificationErrorKind = 0
	VMVerificationErrorKind_IndexOutOfBounds                    VMVerificationErrorKind = 1
	VMVerificationErrorKind_RangeOutOfBounds                    VMVerificationErrorKind = 2
	VMVerificationErrorKind_InvalidSignatureToken               VMVerificationErrorKind = 3
	VMVerificationErrorKind_InvalidFieldDefReference            VMVerificationErrorKind = 4
	VMVerificationErrorKind_RecursiveStructDefinition           VMVerificationErrorKind = 5
	VMVerificationErrorKind_InvalidResourceField                VMVerificationErrorKind = 6
	VMVerificationErrorKind_InvalidFallThrough                  VMVerificationErrorKind = 7
	VMVerificationErrorKind_JoinFailure                         VMVerificationErrorKind = 8
	VMVerificationErrorKind_NegativeStackSizeWithinBlock        VMVerificationErrorKind = 9
	VMVerificationErrorKind_UnbalancedStack                     VMVerificationErrorKind = 10
	VMVerificationErrorKind_InvalidMainFunctionSignature        VMVerificationErrorKind = 11
	VMVerificationErrorKind_DuplicateElement                    VMVerificationErrorKind = 12
	VMVerificationErrorKind_InvalidModuleHandle                 VMVerificationErrorKind = 13
	VMVerificationErrorKind_UnimplementedHandle                 VMVerificationErrorKind = 14
	VMVerificationErrorKind_InconsistentFields                  VMVerificationErrorKind = 15
	VMVerificationErrorKind_UnusedFields                        VMVerificationErrorKind = 16
	VMVerificationErrorKind_LookupFailed                        VMVerificationErrorKind = 17
	VMVerificationErrorKind_VisibilityMismatch                  VMVerificationErrorKind = 18
	VMVerificationErrorKind_TypeResolutionFailure               VMVerificationErrorKind = 19
	VMVerificationErrorKind_TypeMismatch                        VMVerificationErrorKind = 20
	VMVerificationErrorKind_MissingDependency                   VMVerificationErrorKind = 21
	VMVerificationErrorKind_PopReferenceError                   VMVerificationErrorKind = 22
	VMVerificationErrorKind_PopResourceError                    VMVerificationErrorKind = 23
	VMVerificationErrorKind_ReleaseRefTypeMismatchError         VMVerificationErrorKind = 24
	VMVerificationErrorKind_BrTypeMismatchError                 VMVerificationErrorKind = 25
	VMVerificationErrorKind_AssertTypeMismatchError             VMVerificationErrorKind = 26
	VMVerificationErrorKind_StLocTypeMismatchError              VMVerificationErrorKind = 27
	VMVerificationErrorKind_StLocUnsafeToDestroyError           VMVerificationErrorKind = 28
	VMVerificationErrorKind_RetUnsafeToDestroyError             VMVerificationErrorKind = 29
	VMVerificationErrorKind_RetTypeMismatchError                VMVerificationErrorKind = 30
	VMVerificationErrorKind_FreezeRefTypeMismatchError          VMVerificationErrorKind = 31
	VMVerificationErrorKind_FreezeRefExistsMutableBorrowError   VMVerificationErrorKind = 32
	VMVerificationErrorKind_BorrowFieldTypeMismatchError        VMVerificationErrorKind = 33
	VMVerificationErrorKind_BorrowFieldBadFieldError            VMVerificationErrorKind = 34
	VMVerificationErrorKind_BorrowFieldExistsMutableBorrowError VMVerificationErrorKind = 35
	VMVerificationErrorKind_CopyLocUnavailableError             VMVerificationErrorKind = 36
	VMVerificationErrorKind_CopyLocResourceError                VMVerificationErrorKind = 37
	VMVerificationErrorKind_CopyLocExistsBorrowError            VMVerificationErrorKind = 38
	VMVerificationErrorKind_MoveLocUnavailableError             VMVerificationErrorKind = 39
	VMVerificationErrorKind_MoveLocExistsBorrowError            VMVerificationErrorKind = 40
	VMVerificationErrorKind_BorrowLocReferenceError             VMVerificationErrorKind = 41
	VMVerificationErrorKind_BorrowLocUnavailableError           VMVerificationErrorKind = 42
	VMVerificationErrorKind_BorrowLocExistsBorrowError          VMVerificationErrorKind = 43
	VMVerificationErrorKind_CallTypeMismatchError               VMVerificationErrorKind = 44
	VMVerificationErrorKind_CallBorrowedMutableReferenceError   VMVerificationErrorKind = 45
	VMVerificationErrorKind_PackTypeMismatchError               VMVerificationErrorKind = 46
	VMVerificationErrorKind_UnpackTypeMismatchError             VMVerificationErrorKind = 47
	VMVerificationErrorKind_ReadRefTypeMismatchError            VMVerificationErrorKind = 48
	VMVerificationErrorKind_ReadRefResourceError                VMVerificationErrorKind = 49
	VMVerificationErrorKind_ReadRefExistsMutableBorrowError     VMVerificationErrorKind = 50
	VMVerificationErrorKind_WriteRefTypeMismatchError           VMVerificationErrorKind = 51
	VMVerificationErrorKind_WriteRefResourceError               VMVerificationErrorKind = 52
	VMVerificationErrorKind_WriteRefExistsBorrowError           VMVerificationErrorKind = 53
	VMVerificationErrorKind_WriteRefNoMutableReferenceError     VMVerificationErrorKind = 54
	VMVerificationErrorKind_IntegerOpTypeMismatchError          VMVerificationErrorKind = 55
	VMVerificationErrorKind_BooleanOpTypeMismatchError          VMVerificationErrorKind = 56
	VMVerificationErrorKind_EqualityOpTypeMismatchError         VMVerificationErrorKind = 57
	VMVerificationErrorKind_ExistsResourceTypeMismatchError     VMVerificationErrorKind = 58
	VMVerificationErrorKind_BorrowGlobalTypeMismatchError       VMVerificationErrorKind = 59
	VMVerificationErrorKind_BorrowGlobalNoResourceError         VMVerificationErrorKind = 60
	VMVerificationErrorKind_MoveFromTypeMismatchError           VMVerificationErrorKind = 61
	VMVerificationErrorKind_MoveFromNoResourceError             VMVerificationErrorKind = 62
	VMVerificationErrorKind_MoveToSenderTypeMismatchError       VMVerificationErrorKind = 63
	VMVerificationErrorKind_MoveToSenderNoResourceError         VMVerificationErrorKind = 64
	VMVerificationErrorKind_CreateAccountTypeMismatchError      VMVerificationErrorKind = 65
	// The self address of a module the transaction is publishing is not the sender address
	VMVerificationErrorKind_ModuleAddressDoesNotMatchSender VMVerificationErrorKind = 66
	// The module does not have any module handles. Each module or script must have at least one module handle.
	VMVerificationErrorKind_NoModuleHandles VMVerificationErrorKind = 67
)

func (VMVerificationErrorKind) EnumDescriptor

func (VMVerificationErrorKind) EnumDescriptor() ([]byte, []int)

func (VMVerificationErrorKind) String

func (x VMVerificationErrorKind) String() string

type VMVerificationStatus

type VMVerificationStatus struct {
	StatusKind VMVerificationStatus_StatusKind `` /* 135-byte string literal not displayed */
	// For StatusKind::SCRIPT and DEPENDENCY this is ignored.
	ModuleIdx uint32                  `protobuf:"varint,2,opt,name=module_idx,json=moduleIdx,proto3" json:"module_idx,omitempty"`
	ErrorKind VMVerificationErrorKind `protobuf:"varint,3,opt,name=error_kind,json=errorKind,proto3,enum=types.VMVerificationErrorKind" json:"error_kind,omitempty"`
	Message   string                  `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// For StatusKind::SCRIPT and MODULE this is ignored.
	DependencyId         *ModuleId `protobuf:"bytes,5,opt,name=dependency_id,json=dependencyId,proto3" json:"dependency_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*VMVerificationStatus) Descriptor

func (*VMVerificationStatus) Descriptor() ([]byte, []int)

func (*VMVerificationStatus) GetDependencyId added in v0.2.0

func (m *VMVerificationStatus) GetDependencyId() *ModuleId

func (*VMVerificationStatus) GetErrorKind

func (*VMVerificationStatus) GetMessage

func (m *VMVerificationStatus) GetMessage() string

func (*VMVerificationStatus) GetModuleIdx

func (m *VMVerificationStatus) GetModuleIdx() uint32

func (*VMVerificationStatus) GetStatusKind

func (*VMVerificationStatus) ProtoMessage

func (*VMVerificationStatus) ProtoMessage()

func (*VMVerificationStatus) Reset

func (m *VMVerificationStatus) Reset()

func (*VMVerificationStatus) String

func (m *VMVerificationStatus) String() string

func (*VMVerificationStatus) XXX_DiscardUnknown

func (m *VMVerificationStatus) XXX_DiscardUnknown()

func (*VMVerificationStatus) XXX_Marshal

func (m *VMVerificationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMVerificationStatus) XXX_Merge

func (m *VMVerificationStatus) XXX_Merge(src proto.Message)

func (*VMVerificationStatus) XXX_Size

func (m *VMVerificationStatus) XXX_Size() int

func (*VMVerificationStatus) XXX_Unmarshal

func (m *VMVerificationStatus) XXX_Unmarshal(b []byte) error

type VMVerificationStatusList

type VMVerificationStatusList struct {
	StatusList           []*VMVerificationStatus `protobuf:"bytes,1,rep,name=status_list,json=statusList,proto3" json:"status_list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*VMVerificationStatusList) Descriptor

func (*VMVerificationStatusList) Descriptor() ([]byte, []int)

func (*VMVerificationStatusList) GetStatusList

func (m *VMVerificationStatusList) GetStatusList() []*VMVerificationStatus

func (*VMVerificationStatusList) ProtoMessage

func (*VMVerificationStatusList) ProtoMessage()

func (*VMVerificationStatusList) Reset

func (m *VMVerificationStatusList) Reset()

func (*VMVerificationStatusList) String

func (m *VMVerificationStatusList) String() string

func (*VMVerificationStatusList) XXX_DiscardUnknown

func (m *VMVerificationStatusList) XXX_DiscardUnknown()

func (*VMVerificationStatusList) XXX_Marshal

func (m *VMVerificationStatusList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VMVerificationStatusList) XXX_Merge

func (m *VMVerificationStatusList) XXX_Merge(src proto.Message)

func (*VMVerificationStatusList) XXX_Size

func (m *VMVerificationStatusList) XXX_Size() int

func (*VMVerificationStatusList) XXX_Unmarshal

func (m *VMVerificationStatusList) XXX_Unmarshal(b []byte) error

type VMVerificationStatus_StatusKind

type VMVerificationStatus_StatusKind int32
const (
	VMVerificationStatus_SCRIPT     VMVerificationStatus_StatusKind = 0
	VMVerificationStatus_MODULE     VMVerificationStatus_StatusKind = 1
	VMVerificationStatus_DEPENDENCY VMVerificationStatus_StatusKind = 2
)

func (VMVerificationStatus_StatusKind) EnumDescriptor

func (VMVerificationStatus_StatusKind) EnumDescriptor() ([]byte, []int)

func (VMVerificationStatus_StatusKind) String

type ValidatorChangeEventWithProof

type ValidatorChangeEventWithProof struct {
	LedgerInfoWithSigs   *LedgerInfoWithSignatures `protobuf:"bytes,1,opt,name=ledger_info_with_sigs,json=ledgerInfoWithSigs,proto3" json:"ledger_info_with_sigs,omitempty"`
	EventWithProof       *EventWithProof           `protobuf:"bytes,2,opt,name=event_with_proof,json=eventWithProof,proto3" json:"event_with_proof,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

This is used to prove validator changes. When a validator is changing, it triggers an event on /validator_change_account/events/sent. To tell the client about validator changes, we query /validator_change_account/events/sent to get all versions that contain validator changes after the version that we are trying to update from. For each of these versions, the old validator set would have signed the ledger info at that version. The client needs this as well as the event results + proof. The client can then verify that these events were under the current tree and that the changes were signed by the old validators (and that the events correctly show which validators are the new validators).

This message represents a single validator change event and the proof that corresponds to it

func (*ValidatorChangeEventWithProof) Descriptor

func (*ValidatorChangeEventWithProof) Descriptor() ([]byte, []int)

func (*ValidatorChangeEventWithProof) GetEventWithProof

func (m *ValidatorChangeEventWithProof) GetEventWithProof() *EventWithProof

func (*ValidatorChangeEventWithProof) GetLedgerInfoWithSigs

func (m *ValidatorChangeEventWithProof) GetLedgerInfoWithSigs() *LedgerInfoWithSignatures

func (*ValidatorChangeEventWithProof) ProtoMessage

func (*ValidatorChangeEventWithProof) ProtoMessage()

func (*ValidatorChangeEventWithProof) Reset

func (m *ValidatorChangeEventWithProof) Reset()

func (*ValidatorChangeEventWithProof) String

func (*ValidatorChangeEventWithProof) XXX_DiscardUnknown

func (m *ValidatorChangeEventWithProof) XXX_DiscardUnknown()

func (*ValidatorChangeEventWithProof) XXX_Marshal

func (m *ValidatorChangeEventWithProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorChangeEventWithProof) XXX_Merge

func (m *ValidatorChangeEventWithProof) XXX_Merge(src proto.Message)

func (*ValidatorChangeEventWithProof) XXX_Size

func (m *ValidatorChangeEventWithProof) XXX_Size() int

func (*ValidatorChangeEventWithProof) XXX_Unmarshal

func (m *ValidatorChangeEventWithProof) XXX_Unmarshal(b []byte) error

type ValidatorPublicKeys

type ValidatorPublicKeys struct {
	// Validator account address
	AccountAddress []byte `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
	// Consensus public key
	ConsensusPublicKey []byte `protobuf:"bytes,2,opt,name=consensus_public_key,json=consensusPublicKey,proto3" json:"consensus_public_key,omitempty"`
	// Network signing publick key
	NetworkSigningPublicKey []byte `` /* 134-byte string literal not displayed */
	/// Network identity publick key
	NetworkIdentityPublicKey []byte   `` /* 137-byte string literal not displayed */
	XXX_NoUnkeyedLiteral     struct{} `json:"-"`
	XXX_unrecognized         []byte   `json:"-"`
	XXX_sizecache            int32    `json:"-"`
}

Protobuf definition for the Rust struct ValidatorPublicKeys

func (*ValidatorPublicKeys) Descriptor

func (*ValidatorPublicKeys) Descriptor() ([]byte, []int)

func (*ValidatorPublicKeys) GetAccountAddress

func (m *ValidatorPublicKeys) GetAccountAddress() []byte

func (*ValidatorPublicKeys) GetConsensusPublicKey

func (m *ValidatorPublicKeys) GetConsensusPublicKey() []byte

func (*ValidatorPublicKeys) GetNetworkIdentityPublicKey

func (m *ValidatorPublicKeys) GetNetworkIdentityPublicKey() []byte

func (*ValidatorPublicKeys) GetNetworkSigningPublicKey

func (m *ValidatorPublicKeys) GetNetworkSigningPublicKey() []byte

func (*ValidatorPublicKeys) ProtoMessage

func (*ValidatorPublicKeys) ProtoMessage()

func (*ValidatorPublicKeys) Reset

func (m *ValidatorPublicKeys) Reset()

func (*ValidatorPublicKeys) String

func (m *ValidatorPublicKeys) String() string

func (*ValidatorPublicKeys) XXX_DiscardUnknown

func (m *ValidatorPublicKeys) XXX_DiscardUnknown()

func (*ValidatorPublicKeys) XXX_Marshal

func (m *ValidatorPublicKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorPublicKeys) XXX_Merge

func (m *ValidatorPublicKeys) XXX_Merge(src proto.Message)

func (*ValidatorPublicKeys) XXX_Size

func (m *ValidatorPublicKeys) XXX_Size() int

func (*ValidatorPublicKeys) XXX_Unmarshal

func (m *ValidatorPublicKeys) XXX_Unmarshal(b []byte) error

type ValidatorSet

type ValidatorSet struct {
	ValidatorPublicKeys  []*ValidatorPublicKeys `protobuf:"bytes,1,rep,name=validator_public_keys,json=validatorPublicKeys,proto3" json:"validator_public_keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

Protobuf definition for the Rust struct ValidatorSet.

func (*ValidatorSet) Descriptor

func (*ValidatorSet) Descriptor() ([]byte, []int)

func (*ValidatorSet) GetValidatorPublicKeys

func (m *ValidatorSet) GetValidatorPublicKeys() []*ValidatorPublicKeys

func (*ValidatorSet) ProtoMessage

func (*ValidatorSet) ProtoMessage()

func (*ValidatorSet) Reset

func (m *ValidatorSet) Reset()

func (*ValidatorSet) String

func (m *ValidatorSet) String() string

func (*ValidatorSet) XXX_DiscardUnknown

func (m *ValidatorSet) XXX_DiscardUnknown()

func (*ValidatorSet) XXX_Marshal

func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorSet) XXX_Merge

func (m *ValidatorSet) XXX_Merge(src proto.Message)

func (*ValidatorSet) XXX_Size

func (m *ValidatorSet) XXX_Size() int

func (*ValidatorSet) XXX_Unmarshal

func (m *ValidatorSet) XXX_Unmarshal(b []byte) error

type ValidatorSignature

type ValidatorSignature struct {
	// The account address of the validator, which can be used for retrieving its
	// public key during the given epoch.
	ValidatorId          []byte   `protobuf:"bytes,1,opt,name=validator_id,json=validatorId,proto3" json:"validator_id,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ValidatorSignature) Descriptor

func (*ValidatorSignature) Descriptor() ([]byte, []int)

func (*ValidatorSignature) GetSignature

func (m *ValidatorSignature) GetSignature() []byte

func (*ValidatorSignature) GetValidatorId

func (m *ValidatorSignature) GetValidatorId() []byte

func (*ValidatorSignature) ProtoMessage

func (*ValidatorSignature) ProtoMessage()

func (*ValidatorSignature) Reset

func (m *ValidatorSignature) Reset()

func (*ValidatorSignature) String

func (m *ValidatorSignature) String() string

func (*ValidatorSignature) XXX_DiscardUnknown

func (m *ValidatorSignature) XXX_DiscardUnknown()

func (*ValidatorSignature) XXX_Marshal

func (m *ValidatorSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorSignature) XXX_Merge

func (m *ValidatorSignature) XXX_Merge(src proto.Message)

func (*ValidatorSignature) XXX_Size

func (m *ValidatorSignature) XXX_Size() int

func (*ValidatorSignature) XXX_Unmarshal

func (m *ValidatorSignature) XXX_Unmarshal(b []byte) error

type WriteOp

type WriteOp struct {
	// AccessPath of the write set.
	AccessPath *AccessPath `protobuf:"bytes,1,opt,name=access_path,json=accessPath,proto3" json:"access_path,omitempty"`
	// The value of the write op. Empty if `type` is Delete.
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// WriteOp type.
	Type                 WriteOpType `protobuf:"varint,3,opt,name=type,proto3,enum=types.WriteOpType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Write Operation on underlying storage.

func (*WriteOp) Descriptor

func (*WriteOp) Descriptor() ([]byte, []int)

func (*WriteOp) GetAccessPath

func (m *WriteOp) GetAccessPath() *AccessPath

func (*WriteOp) GetType

func (m *WriteOp) GetType() WriteOpType

func (*WriteOp) GetValue

func (m *WriteOp) GetValue() []byte

func (*WriteOp) ProtoMessage

func (*WriteOp) ProtoMessage()

func (*WriteOp) Reset

func (m *WriteOp) Reset()

func (*WriteOp) String

func (m *WriteOp) String() string

func (*WriteOp) XXX_DiscardUnknown

func (m *WriteOp) XXX_DiscardUnknown()

func (*WriteOp) XXX_Marshal

func (m *WriteOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WriteOp) XXX_Merge

func (m *WriteOp) XXX_Merge(src proto.Message)

func (*WriteOp) XXX_Size

func (m *WriteOp) XXX_Size() int

func (*WriteOp) XXX_Unmarshal

func (m *WriteOp) XXX_Unmarshal(b []byte) error

type WriteOpType

type WriteOpType int32

Type of write operation

const (
	// The WriteOp is to create/update the field from storage.
	WriteOpType_Write WriteOpType = 0
	// The WriteOp is to delete the field from storage.
	WriteOpType_Delete WriteOpType = 1
)

func (WriteOpType) EnumDescriptor

func (WriteOpType) EnumDescriptor() ([]byte, []int)

func (WriteOpType) String

func (x WriteOpType) String() string

type WriteSet

type WriteSet struct {
	// Set of WriteOp for storage update.
	WriteSet             []*WriteOp `protobuf:"bytes,1,rep,name=write_set,json=writeSet,proto3" json:"write_set,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Set of WriteOps to save to storage.

func (*WriteSet) Descriptor

func (*WriteSet) Descriptor() ([]byte, []int)

func (*WriteSet) GetWriteSet

func (m *WriteSet) GetWriteSet() []*WriteOp

func (*WriteSet) ProtoMessage

func (*WriteSet) ProtoMessage()

func (*WriteSet) Reset

func (m *WriteSet) Reset()

func (*WriteSet) String

func (m *WriteSet) String() string

func (*WriteSet) XXX_DiscardUnknown

func (m *WriteSet) XXX_DiscardUnknown()

func (*WriteSet) XXX_Marshal

func (m *WriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WriteSet) XXX_Merge

func (m *WriteSet) XXX_Merge(src proto.Message)

func (*WriteSet) XXX_Size

func (m *WriteSet) XXX_Size() int

func (*WriteSet) XXX_Unmarshal

func (m *WriteSet) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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