/* tslint:disable */ /* eslint-disable */ /** * Fireblocks API * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) * * The version of the OpenAPI document: 1.6.2 * Contact: developers@fireblocks.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ // May contain unused imports in some cases // @ts-ignore import { DelegationBlockchainPositionInfo } from './delegation-blockchain-position-info'; // May contain unused imports in some cases // @ts-ignore import { StakingProvider } from './staking-provider'; /** * * @export * @interface Position */ export interface Position { /** * The unique identifier of the staking position * @type {string} * @memberof Position */ 'id': string; /** * The source vault account to stake from * @type {string} * @memberof Position */ 'vaultAccountId': string; /** * The destination validator address name * @type {string} * @memberof Position */ 'validatorName': string; /** * The destination validator provider name * @type {string} * @memberof Position */ 'providerName': string; /** * The protocol identifier (e.g. \"ETH\"/ \"SOL\") to use * @type {string} * @memberof Position */ 'chainDescriptor': string; /** * Total value of the staking position. For Solana, Lido and Ethereum (compounding validator): includes the original stake plus accumulated rewards. For MATIC, Cosmos and Ethereum (legacy validator): refers to the amount currently staked. * @type {string} * @memberof Position */ 'amount': string; /** * The amount staked in the position, measured in the staked asset unit. Returned as null for chains where reward tracking is not supported (Cosmos-family chains), instead of a numeric value. * @type {string} * @memberof Position */ 'rewardsAmount': string | null; /** * When was the request made (ISO Date). * @type {string} * @memberof Position */ 'dateCreated': string; /** * When has the position last changed (ISO Date). * @type {string} * @memberof Position */ 'dateUpdated': string; /** * The current status. * @type {string} * @memberof Position */ 'status': PositionStatusEnum; /** * The destination address of the staking transaction. * @type {string} * @memberof Position */ 'validatorAddress': string; /** * * @type {StakingProvider} * @memberof Position */ 'providerId': StakingProvider; /** * An array of available actions that can be performed. for example, actions like \"UNSTAKE\" or \"WITHDRAW\". * @type {Array} * @memberof Position */ 'availableActions': Array; /** * Indicates whether there is an ongoing action for this position related to this request * @type {boolean} * @memberof Position */ 'inProgress': boolean; /** * * @type {DelegationBlockchainPositionInfo} * @memberof Position */ 'blockchainPositionInfo': DelegationBlockchainPositionInfo; /** * The transaction ID of the initial stake position request only. Only present when there is an active initial stake transaction. * @type {string} * @memberof Position */ 'inProgressTxId'?: string; } export const PositionStatusEnum = { Creating: 'CREATING', Pending: 'PENDING', Activating: 'ACTIVATING', Active: 'ACTIVE', Deactivating: 'DEACTIVATING', Deactivated: 'DEACTIVATED', Withdrawing: 'WITHDRAWING', Withdrawn: 'WITHDRAWN', Merged: 'MERGED', Consolidated: 'CONSOLIDATED', Canceled: 'CANCELED', Failed: 'FAILED' } as const; export type PositionStatusEnum = typeof PositionStatusEnum[keyof typeof PositionStatusEnum]; export const PositionAvailableActionsEnum = { Unstake: 'UNSTAKE', Withdraw: 'WITHDRAW', AddToStake: 'ADD_TO_STAKE', Split: 'SPLIT', Merge: 'MERGE', ClaimRewards: 'CLAIM_REWARDS', Consolidate: 'CONSOLIDATE' } as const; export type PositionAvailableActionsEnum = typeof PositionAvailableActionsEnum[keyof typeof PositionAvailableActionsEnum];