trufflesuite/truffle

View on GitHub
packages/codec-components/src/docs/data/codec/abi-argument.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { AbiArgument } from "@truffle/codec";

export default {
  withParamName: {
    name: "someParam",
    value: {
      kind: "value",
      type: { typeClass: "string" },
      interpretations: {},
      value: { asString: "someArg", kind: "valid" }
    }
  },
  withoutParamName: {
    value: {
      kind: "value",
      type: { typeClass: "bool", typeHint: "bool" },
      interpretations: {},
      value: { asBoolean: true }
    }
  }
} satisfies Record<string, AbiArgument>;