// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file haqq/vesting/v1/vesting.proto (package haqq.vesting.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; import { BaseVestingAccount, Period } from "../../../cosmos/vesting/v1beta1/vesting_pb.js"; /** * ClawbackVestingAccount implements the VestingAccount interface. It provides * an account that can hold contributions subject to "lockup" (like a * PeriodicVestingAccount), or vesting which is subject to clawback * of unvested tokens, or a combination (tokens vest, but are still locked). * * @generated from message haqq.vesting.v1.ClawbackVestingAccount */ export class ClawbackVestingAccount extends Message { /** * base_vesting_account implements the VestingAccount interface. It contains * all the necessary fields needed for any vesting account implementation * * @generated from field: cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1; */ baseVestingAccount?: BaseVestingAccount; /** * funder_address specifies the account which can perform clawback * * @generated from field: string funder_address = 2; */ funderAddress = ""; /** * start_time defines the time at which the vesting period begins * * @generated from field: google.protobuf.Timestamp start_time = 3; */ startTime?: Timestamp; /** * lockup_periods defines the unlocking schedule relative to the start_time * * @generated from field: repeated cosmos.vesting.v1beta1.Period lockup_periods = 4; */ lockupPeriods: Period[] = []; /** * vesting_periods defines the vesting schedule relative to the start_time * * @generated from field: repeated cosmos.vesting.v1beta1.Period vesting_periods = 5; */ vestingPeriods: Period[] = []; /** * code_hash is the hash calculated from the code contents * * @generated from field: string code_hash = 6; */ codeHash = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "haqq.vesting.v1.ClawbackVestingAccount"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "base_vesting_account", kind: "message", T: BaseVestingAccount }, { no: 2, name: "funder_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "start_time", kind: "message", T: Timestamp }, { no: 4, name: "lockup_periods", kind: "message", T: Period, repeated: true }, { no: 5, name: "vesting_periods", kind: "message", T: Period, repeated: true }, { no: 6, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ClawbackVestingAccount { return new ClawbackVestingAccount().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ClawbackVestingAccount { return new ClawbackVestingAccount().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ClawbackVestingAccount { return new ClawbackVestingAccount().fromJsonString(jsonString, options); } static equals(a: ClawbackVestingAccount | PlainMessage | undefined, b: ClawbackVestingAccount | PlainMessage | undefined): boolean { return proto3.util.equals(ClawbackVestingAccount, a, b); } }