Function createLinearBpsScheduleV2WithRelativeStart

  • Creates a LinearBpsScheduleV2 with a TimeRelative start condition.

    Parameters

    • params: {
          bucketTime: BucketTimes;
          duration: bigint;
          maxBps: number | bigint;
          point1: SchedulePoint;
          point2: SchedulePoint;
          referenceBucket: PublicKey<string>;
          timeOffset?: bigint;
      }
      • bucketTime: BucketTimes

        Which time on the reference bucket

      • duration: bigint

        Duration of the schedule in seconds

      • maxBps: number | bigint

        Upper bound for the evaluated value

      • point1: SchedulePoint

        First point on the line

      • point2: SchedulePoint

        Second point on the line

      • referenceBucket: PublicKey<string>

        The bucket to reference

      • Optional timeOffset?: bigint

        Optional start offset in seconds relative to the reference bucket time. Passed to createTimeRelativeCondition which defaults to 0n when undefined.

    Returns LinearBpsScheduleV2Args

Generated using TypeDoc