Docs

PackContractSchema

let PackContractSchema: {
  deploy: ZodObject<
    {
      app_uri: ZodOptional<ZodString>;
      description: ZodOptional<ZodString>;
      external_link: ZodOptional<ZodString>;
      image: ZodOptional<
        ZodUnion<
          [
            ZodUnion<
              [
                ZodTypeAny,
                ZodObject<
                  { data: ZodUnion<[ZodTypeAny, ZodString]>; name: ZodString },
                  "strip",
                  ZodTypeAny,
                  { data?: any; name: string },
                  { data?: any; name: string }
                >,
              ]
            >,
            ZodString,
          ]
        >
      >;
      name: ZodString;
      platform_fee_basis_points: ZodDefault<ZodNumber>;
      platform_fee_recipient: ZodDefault<
        ZodUnion<
          [
            ZodType<string, ZodTypeDef, string>,
            ZodType<
              `0x${string}`,
              ZodTypeDef,
              `${string}.eth` | `${string}.cb.id`
            >,
          ]
        >
      >;
      social_urls: ZodOptional<ZodRecord<ZodString, ZodString>>;
      symbol: ZodDefault<ZodString>;
      trusted_forwarders: ZodDefault<
        ZodArray<
          ZodUnion<
            [
              ZodType<string, ZodTypeDef, string>,
              ZodType<
                `0x${string}`,
                ZodTypeDef,
                `${string}.eth` | `${string}.cb.id`
              >,
            ]
          >,
          "many"
        >
      >;
    },
    "strip",
    ZodTypeAny,
    {
      app_uri?: string;
      description?: string;
      external_link?: string;
      image?: any;
      name: string;
      platform_fee_basis_points: number;
      platform_fee_recipient: string;
      social_urls?: Record<string, string>;
      symbol: string;
      trusted_forwarders: string[];
    },
    {
      app_uri?: string;
      description?: string;
      external_link?: string;
      image?: any;
      name: string;
      platform_fee_basis_points?: number;
      platform_fee_recipient?: string;
      social_urls?: Record<string, string>;
      symbol?: string;
      trusted_forwarders?: string[];
    }
  >;
  input: ZodObject<
    {
      app_uri: ZodOptional<ZodString>;
      description: ZodOptional<ZodString>;
      external_link: ZodOptional<ZodString>;
      image: ZodOptional<
        ZodUnion<
          [
            ZodUnion<
              [
                ZodTypeAny,
                ZodObject<
                  { data: ZodUnion<[ZodTypeAny, ZodString]>; name: ZodString },
                  "strip",
                  ZodTypeAny,
                  { data?: any; name: string },
                  { data?: any; name: string }
                >,
              ]
            >,
            ZodString,
          ]
        >
      >;
      name: ZodString;
      social_urls: ZodOptional<ZodRecord<ZodString, ZodString>>;
      symbol: ZodDefault<ZodString>;
    },
    "strip",
    ZodTypeAny,
    {
      app_uri?: string;
      description?: string;
      external_link?: string;
      image?: any;
      name: string;
      social_urls?: Record<string, string>;
      symbol: string;
    },
    {
      app_uri?: string;
      description?: string;
      external_link?: string;
      image?: any;
      name: string;
      social_urls?: Record<string, string>;
      symbol?: string;
    }
  >;
  output: ZodObject<
    {
      app_uri: ZodOptional<ZodString>;
      description: ZodOptional<ZodString>;
      external_link: ZodOptional<ZodString>;
      image: ZodOptional<ZodString>;
      name: ZodString;
      social_urls: ZodOptional<ZodRecord<ZodString, ZodString>>;
      symbol: ZodDefault<ZodString>;
    },
    "strip",
    ZodTypeAny,
    {
      app_uri?: string;
      description?: string;
      external_link?: string;
      image?: string;
      name: string;
      social_urls?: Record<string, string>;
      symbol: string;
    },
    {
      app_uri?: string;
      description?: string;
      external_link?: string;
      image?: string;
      name: string;
      social_urls?: Record<string, string>;
      symbol?: string;
    }
  >;
};