@welshare/sdk
    Preparing search index...

    Function mapToNillionSchema

    • adds metadata and returns a reflex submission that can be stored on nillion side effect: validates the submission

      Parameters

      • submission: {
            attempts: { time: number; timestamp: string }[];
            stats: { averageTime: number; bestTime: number };
        }
      • controllerDID: string

        the user that submitted the data

      • applicationId: string
      • OptionalsocialShares: InterpolateSocials

      Returns {
          _id: string;
          appId: string;
          attempts: { time: number; timestamp: string }[];
          controllerDID: string;
          stats: { averageTime: number; bestTime: number };
          timestamp: string;
      }[]

      Array insertable nillion data