Crate lyquor_primitives

Source

Re-exports§

pub extern crate serde;
pub use alloy_primitives::hex;
pub use alloy_primitives;
pub use blake3;
pub use bytes;
pub use cb58;

Modules§

arc_option_serde

Macros§

address
Converts a sequence of string literals containing hex-encoded data into a new Address at compile time.
debug_struct_name
decode_by_fields
encode_by_fields
hex
Macro for converting sequence of string literals containing hex-encoded data into an array of bytes.
object_by_fields

Structs§

Address
An Ethereum address, 20 bytes in length.
Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
CallParams
Certificate
ChainPos
Position of a slot in the sequencer’s backend.
HashBytes
LyquidID
LyquidNumber
The verison number that uniquely identifies (and determines) the state of network variables.
LyteLog
NodeID
The ID of a node in the network. The ID is 35 bytes long, the first 32 bytes are the node’s ed25519 public key, and the following 2 bytes are checksums, the last byte is the version number (1)
OracleCert
Oracle certificate that could be sequenced.
OracleConfig
OracleHeader
Contains other fields needed to define a call alongside the standard call parameters.
OracleMessage
UPC message sent to each signer. The signer will check config hash to see if it’s consistent with its oracle state as of the given network state version, and then run validate, a signature will be automatically signed using the derived key, and respond to the caller if it validate() returns true.
OracleResponse
OracleSigner
Range
RegisterEvent
RequiredLyquid

Enums§

ConsoleSink
InputABI
OracleTarget
StateCategory

Constants§

GROUP_DEFAULT
GROUP_NODE
GROUP_UPC_CALLEE
GROUP_UPC_REQ
GROUP_UPC_RESP

Traits§

Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Serialize
A data structure that can be serialized into any data format supported by Serde.

Functions§

decode_object
encode_method_name
encode_object

Type Aliases§

B256
32-byte [fixed byte-array][FixedBytes] type.
Hash
LyteLogTopic
PubKey
Signature
U32
32-bit [unsigned integer type][Uint], consisting of 1, 64-bit limbs.
U64
64-bit [unsigned integer type][Uint], consisting of 1, 64-bit limbs.
U128
128-bit [unsigned integer type][Uint], consisting of 2, 64-bit limbs.
U256
256-bit [unsigned integer type][Uint], consisting of 4, 64-bit limbs.

Derive Macros§

Deserialize
Serialize