glethers/primitives

Types

pub type Primitive {
  String(String)
  Uint256(integer.Uint256)
  Bytes32(bytes.Bytes32)
  Address(Address)
}

Constructors

  • String(String)
  • Uint256(integer.Uint256)
  • Bytes32(bytes.Bytes32)
  • Address(Address)

Functions

pub fn eip712_encode(value: Primitive) -> BitArray
pub fn from(value: a) -> Result(Primitive, List(DecodeError))
pub fn from_address(value: Address) -> Primitive
pub fn from_bytes32(value: Bytes32) -> Primitive
pub fn from_string(value: String) -> Primitive
pub fn from_uint256(value: Uint256) -> Primitive
Search Document