import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; /** * LockQueryType defines the type of the lock query that can * either be by duration or start time of the lock. * * @generated from enum osmosis.lockup.LockQueryType */ export declare enum LockQueryType { /** * @generated from enum value: ByDuration = 0; */ ByDuration = 0, /** * @generated from enum value: ByTime = 1; */ ByTime = 1, /** * @generated from enum value: NoLock = 2; */ NoLock = 2, /** * @generated from enum value: ByGroup = 3; */ ByGroup = 3 } /** * PeriodLock is a single lock unit by period defined by the x/lockup module. * It's a record of a locked coin at a specific time. It stores owner, duration, * unlock time and the number of coins locked. A state of a period lock is * created upon lock creation, and deleted once the lock has been matured after * the `duration` has passed since unbonding started. * * @generated from message osmosis.lockup.PeriodLock */ export declare class PeriodLock extends Message { /** * ID is the unique id of the lock. * The ID of the lock is decided upon lock creation, incrementing by 1 for * every lock. * * @generated from field: uint64 ID = 1; */ ID: bigint; /** * Owner is the account address of the lock owner. * Only the owner can modify the state of the lock. * * @generated from field: string owner = 2; */ owner: string; /** * Duration is the time needed for a lock to mature after unlocking has * started. * * @generated from field: google.protobuf.Duration duration = 3; */ duration?: Duration; /** * EndTime refers to the time at which the lock would mature and get deleted. * This value is first initialized when an unlock has started for the lock, * end time being block time + duration. * * @generated from field: google.protobuf.Timestamp end_time = 4; */ endTime?: Timestamp; /** * Coins are the tokens locked within the lock, kept in the module account. * * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 5; */ coins: Coin[]; /** * Reward Receiver Address is the address that would be receiving rewards for * the incentives for the lock. This is set to owner by default and can be * changed via separate msg. * * @generated from field: string reward_receiver_address = 6; */ rewardReceiverAddress: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "osmosis.lockup.PeriodLock"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PeriodLock; static fromJson(jsonValue: JsonValue, options?: Partial): PeriodLock; static fromJsonString(jsonString: string, options?: Partial): PeriodLock; static equals(a: PeriodLock | PlainMessage | undefined, b: PeriodLock | PlainMessage | undefined): boolean; } /** * QueryCondition is a struct used for querying locks upon different conditions. * Duration field and timestamp fields could be optional, depending on the * LockQueryType. * * @generated from message osmosis.lockup.QueryCondition */ export declare class QueryCondition extends Message { /** * LockQueryType is a type of lock query, ByLockDuration | ByLockTime * * @generated from field: osmosis.lockup.LockQueryType lock_query_type = 1; */ lockQueryType: LockQueryType; /** * Denom represents the token denomination we are looking to lock up * * @generated from field: string denom = 2; */ denom: string; /** * Duration is used to query locks with longer duration than the specified * duration. Duration field must not be nil when the lock query type is * `ByLockDuration`. * * @generated from field: google.protobuf.Duration duration = 3; */ duration?: Duration; /** * Timestamp is used by locks started before the specified duration. * Timestamp field must not be nil when the lock query type is `ByLockTime`. * Querying locks with timestamp is currently not implemented. * * @generated from field: google.protobuf.Timestamp timestamp = 4; */ timestamp?: Timestamp; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "osmosis.lockup.QueryCondition"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryCondition; static fromJson(jsonValue: JsonValue, options?: Partial): QueryCondition; static fromJsonString(jsonString: string, options?: Partial): QueryCondition; static equals(a: QueryCondition | PlainMessage | undefined, b: QueryCondition | PlainMessage | undefined): boolean; } /** * SyntheticLock is creating virtual lockup where new denom is combination of * original denom and synthetic suffix. At the time of synthetic lockup creation * and deletion, accumulation store is also being updated and on querier side, * they can query as freely as native lockup. * * @generated from message osmosis.lockup.SyntheticLock */ export declare class SyntheticLock extends Message { /** * Underlying Lock ID is the underlying native lock's id for this synthetic * lockup. A synthetic lock MUST have an underlying lock. * * @generated from field: uint64 underlying_lock_id = 1; */ underlyingLockId: bigint; /** * SynthDenom is the synthetic denom that is a combination of * gamm share + bonding status + validator address. * * @generated from field: string synth_denom = 2; */ synthDenom: string; /** * used for unbonding synthetic lockups, for active synthetic lockups, this * value is set to uninitialized value * * @generated from field: google.protobuf.Timestamp end_time = 3; */ endTime?: Timestamp; /** * Duration is the duration for a synthetic lock to mature * at the point of unbonding has started. * * @generated from field: google.protobuf.Duration duration = 4; */ duration?: Duration; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "osmosis.lockup.SyntheticLock"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SyntheticLock; static fromJson(jsonValue: JsonValue, options?: Partial): SyntheticLock; static fromJsonString(jsonString: string, options?: Partial): SyntheticLock; static equals(a: SyntheticLock | PlainMessage | undefined, b: SyntheticLock | PlainMessage | undefined): boolean; } //# sourceMappingURL=lock_pb.d.ts.map