Type Alias Product

Product: {
    contractAddress: ContractAddress;
    currency: Currency;
    failUrl?: string | null;
    functionInputsAbi: FunctionInputsAbi;
    functionSelector: FunctionSelector;
    id?: number;
    logoImgUrl?: string | null;
    name: string;
    parametersStaticValues?: ParametersStaticValues;
    price: Price;
    productImgUrl?: string | null;
    recipientParamName: string | null;
    salesWallet: string | null;
    status: "active" | "inactive";
    successUrl?: string | null;
    webhookEndpoint?: string | null;
}

Type declaration

  • contractAddress: ContractAddress

    Address of the smart-contract to call

  • currency: Currency
  • OptionalfailUrl?: string | null

    URL to redirect the user after a failed purchase

  • functionInputsAbi: FunctionInputsAbi

    ABI of the contract function to call

  • functionSelector: FunctionSelector

    Function selector of the contract function to call

  • Optional Readonlyid?: number
  • OptionallogoImgUrl?: string | null

    URL of the logo image

  • name: string

    Product name

  • OptionalparametersStaticValues?: ParametersStaticValues
  • price: Price
  • OptionalproductImgUrl?: string | null

    URL of the product image

  • recipientParamName: string | null

    Name of the contract's function parameter to input the user wallet address to receive the NFT

  • salesWallet: string | null

    Wallet (ideally a Safe) collecting sales for crypto purchases

  • status: "active" | "inactive"

    Status of the product

  • OptionalsuccessUrl?: string | null

    URL to redirect the user after a successful purchase

  • OptionalwebhookEndpoint?: string | null

    URL of the endpoint which should be notified for webhook events