cosmos-explorer/packages/codegen/dist/cosmos/vesting/v1beta1/vesting.d.ts
2023-03-02 13:21:24 +08:00

138 lines
5.3 KiB
TypeScript

/// <reference types="long" />
import { BaseAccount, BaseAccountSDKType } from "../../auth/v1beta1/auth";
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
import { Long, DeepPartial } from "../../../helpers";
import * as _m0 from "protobufjs/minimal";
/**
* BaseVestingAccount implements the VestingAccount interface. It contains all
* the necessary fields needed for any vesting account implementation.
*/
export interface BaseVestingAccount {
baseAccount?: BaseAccount;
originalVesting: Coin[];
delegatedFree: Coin[];
delegatedVesting: Coin[];
endTime: Long;
}
/**
* BaseVestingAccount implements the VestingAccount interface. It contains all
* the necessary fields needed for any vesting account implementation.
*/
export interface BaseVestingAccountSDKType {
base_account?: BaseAccountSDKType;
original_vesting: CoinSDKType[];
delegated_free: CoinSDKType[];
delegated_vesting: CoinSDKType[];
end_time: Long;
}
/**
* ContinuousVestingAccount implements the VestingAccount interface. It
* continuously vests by unlocking coins linearly with respect to time.
*/
export interface ContinuousVestingAccount {
baseVestingAccount?: BaseVestingAccount;
startTime: Long;
}
/**
* ContinuousVestingAccount implements the VestingAccount interface. It
* continuously vests by unlocking coins linearly with respect to time.
*/
export interface ContinuousVestingAccountSDKType {
base_vesting_account?: BaseVestingAccountSDKType;
start_time: Long;
}
/**
* DelayedVestingAccount implements the VestingAccount interface. It vests all
* coins after a specific time, but non prior. In other words, it keeps them
* locked until a specified time.
*/
export interface DelayedVestingAccount {
baseVestingAccount?: BaseVestingAccount;
}
/**
* DelayedVestingAccount implements the VestingAccount interface. It vests all
* coins after a specific time, but non prior. In other words, it keeps them
* locked until a specified time.
*/
export interface DelayedVestingAccountSDKType {
base_vesting_account?: BaseVestingAccountSDKType;
}
/** Period defines a length of time and amount of coins that will vest. */
export interface Period {
length: Long;
amount: Coin[];
}
/** Period defines a length of time and amount of coins that will vest. */
export interface PeriodSDKType {
length: Long;
amount: CoinSDKType[];
}
/**
* PeriodicVestingAccount implements the VestingAccount interface. It
* periodically vests by unlocking coins during each specified period.
*/
export interface PeriodicVestingAccount {
baseVestingAccount?: BaseVestingAccount;
startTime: Long;
vestingPeriods: Period[];
}
/**
* PeriodicVestingAccount implements the VestingAccount interface. It
* periodically vests by unlocking coins during each specified period.
*/
export interface PeriodicVestingAccountSDKType {
base_vesting_account?: BaseVestingAccountSDKType;
start_time: Long;
vesting_periods: PeriodSDKType[];
}
/**
* PermanentLockedAccount implements the VestingAccount interface. It does
* not ever release coins, locking them indefinitely. Coins in this account can
* still be used for delegating and for governance votes even while locked.
*
* Since: cosmos-sdk 0.43
*/
export interface PermanentLockedAccount {
baseVestingAccount?: BaseVestingAccount;
}
/**
* PermanentLockedAccount implements the VestingAccount interface. It does
* not ever release coins, locking them indefinitely. Coins in this account can
* still be used for delegating and for governance votes even while locked.
*
* Since: cosmos-sdk 0.43
*/
export interface PermanentLockedAccountSDKType {
base_vesting_account?: BaseVestingAccountSDKType;
}
export declare const BaseVestingAccount: {
encode(message: BaseVestingAccount, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): BaseVestingAccount;
fromPartial(object: DeepPartial<BaseVestingAccount>): BaseVestingAccount;
};
export declare const ContinuousVestingAccount: {
encode(message: ContinuousVestingAccount, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ContinuousVestingAccount;
fromPartial(object: DeepPartial<ContinuousVestingAccount>): ContinuousVestingAccount;
};
export declare const DelayedVestingAccount: {
encode(message: DelayedVestingAccount, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): DelayedVestingAccount;
fromPartial(object: DeepPartial<DelayedVestingAccount>): DelayedVestingAccount;
};
export declare const Period: {
encode(message: Period, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): Period;
fromPartial(object: DeepPartial<Period>): Period;
};
export declare const PeriodicVestingAccount: {
encode(message: PeriodicVestingAccount, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): PeriodicVestingAccount;
fromPartial(object: DeepPartial<PeriodicVestingAccount>): PeriodicVestingAccount;
};
export declare const PermanentLockedAccount: {
encode(message: PermanentLockedAccount, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): PermanentLockedAccount;
fromPartial(object: DeepPartial<PermanentLockedAccount>): PermanentLockedAccount;
};