ForgeAbi v1.17.1 ForgeAbi.Util View Source

Common functionality for ABI related stuff

Link to this section Summary

Functions

Retrieve the nested default value for mod

Link to this section Functions

Retrieve the nested default value for mod

Examples:

iex> ForgeAbi.Util.get_default(ForgeAbi.DelegateOpState) %ForgeAbi.DelegateOpState{

balance: %ForgeAbi.BigUint{value: ""},
balance_delta: %ForgeAbi.BigUint{value: ""},
num_txs: 0,
num_txs_delta: 0,
rule: ""

}

iex> ForgeAbi.Util.get_default(ForgeAbi.TransactionInfo) %ForgeAbi.TransactionInfo{

code: :ok,
hash: "",
height: 0,
index: 0,
tags: %AbciVendor.KVPair{key: "", value: ""},
time: %Google.Protobuf.Timestamp{nanos: 0, seconds: 0},
tx: %ForgeAbi.Transaction{
  chain_id: "",
  delegator: "",
  from: "",
  gas: 0,
  itx: %Google.Protobuf.Any{type_url: "", value: ""},
  nonce: 0,
  pk: "",
  signature: "",
  signatures: %ForgeAbi.Multisig{
    data: %Google.Protobuf.Any{type_url: "", value: ""},
    delegator: "",
    pk: "",
    signature: "",
    signer: ""
  }
}

}