View Source StellarBase.XDR.SCContractCode (Elixir Stellar Base v0.9.1)

Representation of Stellar SCContractCode type.

Link to this section Summary

Link to this section Types

@type contract_code() :: StellarBase.XDR.Hash.t() | StellarBase.XDR.Void.t()
@type t() :: %StellarBase.XDR.SCContractCode{
  contract_code: contract_code(),
  type: StellarBase.XDR.SCContractCodeType.t()
}

Link to this section Functions

Link to this function

new(contract_code, type)

View Source
@spec new(
  contract_code :: contract_code(),
  type :: StellarBase.XDR.SCContractCodeType.t()
) :: t()