gleeth/ethereum/contract

Types

pub type ContractCall {
  ContractCall(
    function_name: String,
    parameters: List(Parameter),
  )
}

Constructors

  • ContractCall(function_name: String, parameters: List(Parameter))
pub type ParamType {
  UInt256
  Address
  String
  Bool
  Bytes32
}

Constructors

  • UInt256
  • Address
  • String
  • Bool
  • Bytes32
pub type Parameter {
  Parameter(param_type: ParamType, value: String)
}

Constructors

  • Parameter(param_type: ParamType, value: String)

Values

pub fn build_call_data(
  contract_call: ContractCall,
) -> Result(String, types.GleethError)
pub fn encode_parameters(
  parameters: List(Parameter),
) -> Result(String, types.GleethError)
pub fn generate_function_selector(
  function_name: String,
  param_types: List(ParamType),
) -> Result(String, types.GleethError)
pub fn parse_parameter(
  param_str: String,
) -> Result(Parameter, types.GleethError)
Search Document