Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 0 additions & 91 deletions etc/data-models.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,23 +226,6 @@ export enum Chain {
SUI = "SUI"
}

// @public
export interface ChainRpcConfig {
cacheStaleAcceptanceMs: number;
chainId: number;
chainName: string;
endpoints: RpcEndpointConfig[];
totalOperationTimeoutMs: number;
}

// @public
export interface CircuitBreakerConfig {
failureThreshold: number;
halfOpenMaxAttempts: number;
monitorWindowMs: number;
openDurationMs: number;
}

// @public
export interface ConnectedAccount {
accountId: AccountId;
Expand Down Expand Up @@ -331,13 +314,6 @@ export interface GroupPortfolio {
totalValue: Price;
}

// @public
export interface HealthCheckConfig {
intervalMs: number;
method: string;
timeoutMs: number;
}

// @public
export interface IntegrationCredentials {
accountId?: AccountId;
Expand Down Expand Up @@ -510,59 +486,6 @@ export interface Price {
value?: number;
}

// @public
export interface PrivacyConfig {
privacyMode: boolean;
queryJitterMs: number;
rotateWithinTier: boolean;
}

// @public
export interface RetryConfig {
baseDelayMs: number;
maxAttempts: number;
maxDelayMs: number;
}

// @public
export interface RpcEndpointConfig {
provider: string;
rateLimitRps: number;
role: RpcProviderRole;
timeoutMs: number;
type: RpcProviderType;
url: string;
weight?: number;
wsUrl?: string;
}

// @public
export interface RpcProviderConfig {
chains: Record<string, ChainRpcConfig>;
circuitBreaker: CircuitBreakerConfig;
healthCheck: HealthCheckConfig;
privacy: PrivacyConfig;
retry: RetryConfig;
userOverrides?: UserRpcConfig;
}

// @public
export enum RpcProviderRole {
EMERGENCY = "EMERGENCY",
PRIMARY = "PRIMARY",
SECONDARY = "SECONDARY",
TERTIARY = "TERTIARY"
}

// @public
export enum RpcProviderType {
COMMUNITY = "COMMUNITY",
DECENTRALIZED = "DECENTRALIZED",
MANAGED = "MANAGED",
PUBLIC = "PUBLIC",
USER = "USER"
}

// @public
export type SortOrder = 'ASC' | 'DESC';

Expand Down Expand Up @@ -667,20 +590,6 @@ export enum TransactionType {
UNSTAKE = "UNSTAKE"
}

// @public
export interface UserRpcConfig {
endpoints: UserRpcEndpoint[];
mode: 'override' | 'prepend';
}

// @public
export interface UserRpcEndpoint {
chainId: string;
label?: string;
url: string;
wsUrl?: string;
}

// @public
export interface VaultPosition {
apy?: number;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cygnus-wealth/data-models",
"version": "1.3.0",
"version": "1.4.0",
"description": "Shared TypeScript data models for CygnusWealth project",
"main": "dist/cjs/index.js",
"module": "dist/index.js",
Expand Down Expand Up @@ -61,16 +61,6 @@
"import": "./dist/enums/DeFiDiscoverySource.js",
"require": "./dist/cjs/enums/DeFiDiscoverySource.js"
},
"./enums/RpcProviderRole": {
"types": "./dist/enums/RpcProviderRole.d.ts",
"import": "./dist/enums/RpcProviderRole.js",
"require": "./dist/cjs/enums/RpcProviderRole.js"
},
"./enums/RpcProviderType": {
"types": "./dist/enums/RpcProviderType.d.ts",
"import": "./dist/enums/RpcProviderType.js",
"require": "./dist/cjs/enums/RpcProviderType.js"
},
"./interfaces/*": {
"types": "./dist/interfaces/*.d.ts",
"import": "./dist/interfaces/*.js",
Expand Down
36 changes: 0 additions & 36 deletions src/enums/RpcProviderRole.ts

This file was deleted.

38 changes: 0 additions & 38 deletions src/enums/RpcProviderType.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ export { VaultStrategyType } from './enums/VaultStrategyType';
export { DeFiPositionType } from './enums/DeFiPositionType';
export { DeFiProtocol } from './enums/DeFiProtocol';
export { DeFiDiscoverySource } from './enums/DeFiDiscoverySource';
export { RpcProviderRole } from './enums/RpcProviderRole';
export { RpcProviderType } from './enums/RpcProviderType';

// Base Interfaces
export { BaseEntity } from './interfaces/BaseEntity';
export { Metadata } from './interfaces/Metadata';
Expand Down Expand Up @@ -80,17 +77,6 @@ export { TimeRange } from './types/TimeRange';
export { SortOrder } from './types/SortOrder';
export { FilterOptions } from './interfaces/FilterOptions';

// RPC Provider Configuration
export { RpcEndpointConfig } from './interfaces/RpcEndpointConfig';
export { ChainRpcConfig } from './interfaces/ChainRpcConfig';
export { CircuitBreakerConfig } from './interfaces/CircuitBreakerConfig';
export { RetryConfig } from './interfaces/RetryConfig';
export { HealthCheckConfig } from './interfaces/HealthCheckConfig';
export { RpcProviderConfig } from './interfaces/RpcProviderConfig';
export type { UserRpcEndpoint } from './interfaces/UserRpcEndpoint';
export type { UserRpcConfig } from './interfaces/UserRpcConfig';
export type { PrivacyConfig } from './interfaces/PrivacyConfig';

// Network Environment
export { NetworkEnvironment, EnvironmentConfig } from './types/NetworkEnvironment';

Expand Down
53 changes: 0 additions & 53 deletions src/interfaces/ChainRpcConfig.ts

This file was deleted.

37 changes: 0 additions & 37 deletions src/interfaces/CircuitBreakerConfig.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/interfaces/HealthCheckConfig.ts

This file was deleted.

Loading