@augustdigital/sdk 4.14.0-alpha.2 → 4.14.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,89 +1,117 @@
1
1
  import { IVaultAdapterConfig } from '../types';
2
2
  import { IAddress } from '../types/web3';
3
3
  export declare const POOL_NAMES: {
4
- readonly ETH_TREEHOUSE_GROWTH: "Treehouse Growth";
5
- readonly AVAX_AVAX: "AVAX Strategy";
6
- readonly ETH_KELP_TAC_RSETH: "Kelp TAC rsETH";
4
+ readonly ETH_TREEHOUSE_GROWTH: 'Treehouse Growth';
5
+ readonly AVAX_AVAX: 'AVAX Strategy';
6
+ readonly ETH_KELP_TAC_RSETH: 'Kelp TAC rsETH';
7
7
  };
8
8
  export declare const ADAPTER_ABIS: {
9
- readonly NATIVE_DEPOSIT_AVAX: readonly [{
10
- readonly inputs: readonly [];
11
- readonly name: "depositETH";
12
- readonly outputs: readonly [];
13
- readonly stateMutability: "payable";
14
- readonly type: "function";
15
- }];
16
- readonly NATIVE_DEPOSIT_ETH_WITH_REFERRAL: readonly [{
17
- readonly inputs: readonly [{
18
- readonly internalType: "address";
19
- readonly name: "referralId";
20
- readonly type: "address";
21
- }];
22
- readonly name: "depositETH";
23
- readonly outputs: readonly [];
24
- readonly stateMutability: "payable";
25
- readonly type: "function";
26
- }, {
27
- readonly inputs: readonly [{
28
- readonly internalType: "uint256";
29
- readonly name: "amount";
30
- readonly type: "uint256";
31
- }, {
32
- readonly internalType: "address";
33
- readonly name: "referralId";
34
- readonly type: "address";
35
- }];
36
- readonly name: "depositWETH";
37
- readonly outputs: readonly [];
38
- readonly stateMutability: "nonpayable";
39
- readonly type: "function";
40
- }];
41
- readonly KELP_RSETH_ADAPTER: readonly [{
42
- readonly inputs: readonly [{
43
- readonly internalType: "address";
44
- readonly name: "referralId";
45
- readonly type: "address";
46
- }];
47
- readonly name: "getRSETHWithETH";
48
- readonly outputs: readonly [];
49
- readonly stateMutability: "payable";
50
- readonly type: "function";
51
- }, {
52
- readonly inputs: readonly [{
53
- readonly internalType: "address";
54
- readonly name: "asset";
55
- readonly type: "address";
56
- }, {
57
- readonly internalType: "uint256";
58
- readonly name: "depositAmount";
59
- readonly type: "uint256";
60
- }, {
61
- readonly internalType: "string";
62
- readonly name: "referralId";
63
- readonly type: "string";
64
- }];
65
- readonly name: "getRSETHWithERC20";
66
- readonly outputs: readonly [];
67
- readonly stateMutability: "nonpayable";
68
- readonly type: "function";
69
- }, {
70
- readonly inputs: readonly [{
71
- readonly internalType: "address";
72
- readonly name: "asset";
73
- readonly type: "address";
74
- }, {
75
- readonly internalType: "uint256";
76
- readonly name: "depositAmount";
77
- readonly type: "uint256";
78
- }];
79
- readonly name: "getRsETHAmountToMint";
80
- readonly outputs: readonly [{
81
- readonly internalType: "uint256";
82
- readonly name: "rsETHAmount";
83
- readonly type: "uint256";
84
- }];
85
- readonly stateMutability: "view";
86
- readonly type: "function";
87
- }];
9
+ readonly NATIVE_DEPOSIT_AVAX: readonly [
10
+ {
11
+ readonly inputs: readonly [];
12
+ readonly name: 'depositETH';
13
+ readonly outputs: readonly [];
14
+ readonly stateMutability: 'payable';
15
+ readonly type: 'function';
16
+ },
17
+ ];
18
+ readonly NATIVE_DEPOSIT_ETH_WITH_REFERRAL: readonly [
19
+ {
20
+ readonly inputs: readonly [
21
+ {
22
+ readonly internalType: 'address';
23
+ readonly name: 'referralId';
24
+ readonly type: 'address';
25
+ },
26
+ ];
27
+ readonly name: 'depositETH';
28
+ readonly outputs: readonly [];
29
+ readonly stateMutability: 'payable';
30
+ readonly type: 'function';
31
+ },
32
+ {
33
+ readonly inputs: readonly [
34
+ {
35
+ readonly internalType: 'uint256';
36
+ readonly name: 'amount';
37
+ readonly type: 'uint256';
38
+ },
39
+ {
40
+ readonly internalType: 'address';
41
+ readonly name: 'referralId';
42
+ readonly type: 'address';
43
+ },
44
+ ];
45
+ readonly name: 'depositWETH';
46
+ readonly outputs: readonly [];
47
+ readonly stateMutability: 'nonpayable';
48
+ readonly type: 'function';
49
+ },
50
+ ];
51
+ readonly KELP_RSETH_ADAPTER: readonly [
52
+ {
53
+ readonly inputs: readonly [
54
+ {
55
+ readonly internalType: 'address';
56
+ readonly name: 'referralId';
57
+ readonly type: 'address';
58
+ },
59
+ ];
60
+ readonly name: 'getRSETHWithETH';
61
+ readonly outputs: readonly [];
62
+ readonly stateMutability: 'payable';
63
+ readonly type: 'function';
64
+ },
65
+ {
66
+ readonly inputs: readonly [
67
+ {
68
+ readonly internalType: 'address';
69
+ readonly name: 'asset';
70
+ readonly type: 'address';
71
+ },
72
+ {
73
+ readonly internalType: 'uint256';
74
+ readonly name: 'depositAmount';
75
+ readonly type: 'uint256';
76
+ },
77
+ {
78
+ readonly internalType: 'string';
79
+ readonly name: 'referralId';
80
+ readonly type: 'string';
81
+ },
82
+ ];
83
+ readonly name: 'getRSETHWithERC20';
84
+ readonly outputs: readonly [];
85
+ readonly stateMutability: 'nonpayable';
86
+ readonly type: 'function';
87
+ },
88
+ {
89
+ readonly inputs: readonly [
90
+ {
91
+ readonly internalType: 'address';
92
+ readonly name: 'asset';
93
+ readonly type: 'address';
94
+ },
95
+ {
96
+ readonly internalType: 'uint256';
97
+ readonly name: 'depositAmount';
98
+ readonly type: 'uint256';
99
+ },
100
+ ];
101
+ readonly name: 'getRsETHAmountToMint';
102
+ readonly outputs: readonly [
103
+ {
104
+ readonly internalType: 'uint256';
105
+ readonly name: 'rsETHAmount';
106
+ readonly type: 'uint256';
107
+ },
108
+ ];
109
+ readonly stateMutability: 'view';
110
+ readonly type: 'function';
111
+ },
112
+ ];
88
113
  };
89
- export declare const VAULT_ADAPTER_CONFIGS: Record<IAddress, IVaultAdapterConfig>;
114
+ export declare const VAULT_ADAPTER_CONFIGS: Record<
115
+ IAddress,
116
+ IVaultAdapterConfig
117
+ >;
@@ -1,71 +1,78 @@
1
1
  import { IAddress } from '../types';
2
2
  export declare const REQUEST_TIMEOUT_MS = 90000;
3
3
  export declare const WEBSERVER_URL: {
4
- production: string;
5
- development: string;
6
- localhost: string;
7
- qa: string;
8
- public: string;
4
+ production: string;
5
+ development: string;
6
+ localhost: string;
7
+ qa: string;
8
+ public: string;
9
9
  };
10
10
  export declare const WEBSERVER_ENDPOINTS: {
11
- default: {
12
- hello: string;
13
- protected: string;
11
+ default: {
12
+ hello: string;
13
+ protected: string;
14
+ };
15
+ auth: {
16
+ verify: string;
17
+ sign: string;
18
+ login: string;
19
+ nonce: string;
20
+ refresh: string;
21
+ };
22
+ subaccount: {
23
+ rewards: (subaccount: IAddress) => string;
24
+ tokens: (subaccount: IAddress) => string;
25
+ twap: {
26
+ create: (subaccount: IAddress) => string;
27
+ stop: (subaccount: IAddress, id: string) => string;
28
+ fills: (subaccount: IAddress, id: string) => string;
14
29
  };
15
- auth: {
16
- verify: string;
17
- sign: string;
18
- login: string;
19
- nonce: string;
20
- refresh: string;
30
+ debank: (subaccount: IAddress) => string;
31
+ health_factor: (subaccount: IAddress) => string;
32
+ summary: (subaccount: IAddress) => string;
33
+ batch: (subaccount: IAddress) => string;
34
+ loans: (
35
+ subaccount: IAddress,
36
+ side?: 'BORROWER' | 'LENDER' | 'BOTH',
37
+ ) => string;
38
+ cefi: (subaccount: IAddress) => string;
39
+ otc_positions: (subaccount: IAddress) => string;
40
+ _: (subaccount: IAddress) => string;
41
+ };
42
+ users: {
43
+ get: string;
44
+ };
45
+ prices: (symbol: string) => string;
46
+ metrics: {
47
+ pnl: (subaccount: IAddress, startTime?: string, endTime?: string) => string;
48
+ };
49
+ public: {
50
+ integrations: {
51
+ morpho: {
52
+ apy: (subaccount: IAddress, vaultAddress: IAddress) => string;
53
+ };
21
54
  };
22
- subaccount: {
23
- rewards: (subaccount: IAddress) => string;
24
- tokens: (subaccount: IAddress) => string;
25
- twap: {
26
- create: (subaccount: IAddress) => string;
27
- stop: (subaccount: IAddress, id: string) => string;
28
- fills: (subaccount: IAddress, id: string) => string;
29
- };
30
- debank: (subaccount: IAddress) => string;
31
- health_factor: (subaccount: IAddress) => string;
32
- summary: (subaccount: IAddress) => string;
33
- batch: (subaccount: IAddress) => string;
34
- loans: (subaccount: IAddress, side?: "BORROWER" | "LENDER" | "BOTH") => string;
35
- cefi: (subaccount: IAddress) => string;
36
- otc_positions: (subaccount: IAddress) => string;
37
- _: (subaccount: IAddress) => string;
55
+ tokenizedVault: {
56
+ loans: (
57
+ vaultAddress: IAddress,
58
+ chainId: number,
59
+ active: boolean,
60
+ ) => string;
61
+ list: string;
62
+ byVaultAddress: (vaultAddress: IAddress) => string;
63
+ historicalApy: (vaultAddress: IAddress) => string;
38
64
  };
39
- users: {
40
- get: string;
41
- };
42
- prices: (symbol: string) => string;
43
- metrics: {
44
- pnl: (subaccount: IAddress, startTime?: string, endTime?: string) => string;
45
- };
46
- public: {
47
- integrations: {
48
- morpho: {
49
- apy: (subaccount: IAddress, vaultAddress: IAddress) => string;
50
- };
51
- };
52
- tokenizedVault: {
53
- loans: (vaultAddress: IAddress, chainId: number, active: boolean) => string;
54
- list: string;
55
- byVaultAddress: (vaultAddress: IAddress) => string;
56
- historicalApy: (vaultAddress: IAddress) => string;
57
- };
58
- points: {
59
- byUserAddress: (userAddress: IAddress) => string;
60
- register: string;
61
- leaderboard: string;
62
- };
65
+ points: {
66
+ byUserAddress: (userAddress: IAddress) => string;
67
+ register: string;
68
+ leaderboard: string;
63
69
  };
70
+ };
64
71
  };
65
72
  export declare const DEFAULT_FETCH_OPTIONS: {
66
- readonly method: "GET";
67
- readonly headers: {
68
- readonly Accept: "application/json";
69
- readonly 'Content-Type': "application/json";
70
- };
73
+ readonly method: 'GET';
74
+ readonly headers: {
75
+ readonly Accept: 'application/json';
76
+ readonly 'Content-Type': 'application/json';
77
+ };
71
78
  };
@@ -1,85 +1,93 @@
1
1
  import { IAddress, IChainId, IChainObj } from '../types';
2
2
  export declare const REQUEST_TIMEOUT_MS = 90000;
3
3
  export declare const WEBSERVER_URL: {
4
- production: string;
5
- development: string;
6
- localhost: string;
7
- qa: string;
8
- public: string;
4
+ production: string;
5
+ development: string;
6
+ localhost: string;
7
+ qa: string;
8
+ public: string;
9
9
  };
10
10
  export declare const WEBSERVER_ENDPOINTS: {
11
- default: {
12
- hello: string;
13
- protected: string;
11
+ default: {
12
+ hello: string;
13
+ protected: string;
14
+ };
15
+ auth: {
16
+ verify: string;
17
+ sign: string;
18
+ login: string;
19
+ nonce: string;
20
+ refresh: string;
21
+ };
22
+ subaccount: {
23
+ rewards: (subaccount: IAddress) => string;
24
+ tokens: (subaccount: IAddress) => string;
25
+ twap: {
26
+ create: (subaccount: IAddress) => string;
27
+ stop: (subaccount: IAddress, id: string) => string;
28
+ fills: (subaccount: IAddress, id: string) => string;
14
29
  };
15
- auth: {
16
- verify: string;
17
- sign: string;
18
- login: string;
19
- nonce: string;
20
- refresh: string;
30
+ debank: (subaccount: IAddress) => string;
31
+ health_factor: (subaccount: IAddress) => string;
32
+ summary: (subaccount: IAddress) => string;
33
+ batch: (subaccount: IAddress) => string;
34
+ loans: (
35
+ subaccount: IAddress,
36
+ side?: 'BORROWER' | 'LENDER' | 'BOTH',
37
+ ) => string;
38
+ cefi: (subaccount: IAddress) => string;
39
+ otc_positions: (subaccount: IAddress) => string;
40
+ _: (subaccount: IAddress) => string;
41
+ };
42
+ users: {
43
+ get: string;
44
+ };
45
+ prices: (symbol: string) => string;
46
+ metrics: {
47
+ pnl: (subaccount: IAddress, startTime?: string, endTime?: string) => string;
48
+ };
49
+ public: {
50
+ integrations: {
51
+ morpho: {
52
+ apy: (subaccount: IAddress, vaultAddress: IAddress) => string;
53
+ };
21
54
  };
22
- subaccount: {
23
- rewards: (subaccount: IAddress) => string;
24
- tokens: (subaccount: IAddress) => string;
25
- twap: {
26
- create: (subaccount: IAddress) => string;
27
- stop: (subaccount: IAddress, id: string) => string;
28
- fills: (subaccount: IAddress, id: string) => string;
29
- };
30
- debank: (subaccount: IAddress) => string;
31
- health_factor: (subaccount: IAddress) => string;
32
- summary: (subaccount: IAddress) => string;
33
- batch: (subaccount: IAddress) => string;
34
- loans: (subaccount: IAddress, side?: "BORROWER" | "LENDER" | "BOTH") => string;
35
- cefi: (subaccount: IAddress) => string;
36
- otc_positions: (subaccount: IAddress) => string;
37
- _: (subaccount: IAddress) => string;
38
- };
39
- users: {
40
- get: string;
41
- };
42
- prices: (symbol: string) => string;
43
- metrics: {
44
- pnl: (subaccount: IAddress, startTime?: string, endTime?: string) => string;
45
- };
46
- public: {
47
- integrations: {
48
- morpho: {
49
- apy: (subaccount: IAddress, vaultAddress: IAddress) => string;
50
- };
51
- };
52
- tokenizedVault: {
53
- loans: (vaultAddress: IAddress, chainId: number, active: boolean) => string;
54
- list: string;
55
- byVaultAddress: (vaultAddress: IAddress) => string;
56
- historicalApy: (vaultAddress: IAddress) => string;
57
- };
55
+ tokenizedVault: {
56
+ loans: (
57
+ vaultAddress: IAddress,
58
+ chainId: number,
59
+ active: boolean,
60
+ ) => string;
61
+ list: string;
62
+ byVaultAddress: (vaultAddress: IAddress) => string;
63
+ historicalApy: (vaultAddress: IAddress) => string;
58
64
  };
65
+ };
59
66
  };
60
67
  export declare const SPECIAL_CHAINS: {
61
- solana: {
62
- name: string;
63
- chainId: number;
64
- explorer: string;
65
- };
68
+ solana: {
69
+ name: string;
70
+ chainId: number;
71
+ explorer: string;
72
+ };
66
73
  };
67
- export declare const NATIVE_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
74
+ export declare const NATIVE_ADDRESS =
75
+ '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
68
76
  export declare const MIN_ABIS: {
69
- name: string;
70
- symbol: string;
71
- decimals: string;
72
- totalSupply: string;
73
- approve: string;
74
- allowance: string;
75
- managementFeePercent: string;
77
+ name: string;
78
+ symbol: string;
79
+ decimals: string;
80
+ totalSupply: string;
81
+ approve: string;
82
+ allowance: string;
83
+ managementFeePercent: string;
76
84
  };
77
85
  export declare const ORACLE_CONTRACTS: {
78
- 1: string;
79
- 43114: string;
80
- 42161: string;
81
- 8453: string;
82
- 10: string;
86
+ 1: string;
87
+ 43114: string;
88
+ 42161: string;
89
+ 8453: string;
90
+ 10: string;
83
91
  };
84
92
  export declare const NETWORKS: Record<IChainId, IChainObj>;
85
93
  export declare const AVAILABLE_CHAINS: IChainId[];
@@ -3,8 +3,8 @@ export declare const VAULT_AgoraAUSD: IAddress;
3
3
  export declare const SUBACCOUNT_CALEB: IAddress;
4
4
  export declare const MULTI_ASSET_VAULTS: `0x${string}`[];
5
5
  export declare const WRAPPER_ADAPTOR: {
6
- 43114: IAddress;
7
- 1: IAddress;
6
+ 43114: IAddress;
7
+ 1: IAddress;
8
8
  };
9
9
  export declare const OLD_LENDING_POOLS: `0x${string}`[];
10
10
  export declare const IDLE_CAPITAL_BORROWER_ADDRESS: `0x${string}`[];
@@ -13,7 +13,52 @@ export declare const VAULT_FUNCTIONS_V2: IPoolFunctions[];
13
13
  export declare const VAULT_FUNCTIONS_V2_RECEIPT: IPoolFunctions[];
14
14
  export declare const VAULT_FUNCTIONS_V2_WHITELISTED_ASSETS: IPoolFunctions[];
15
15
  export declare const SUBGRAPH_VAULT_URLS: Record<VaultSymbols, string>;
16
- type VaultSymbols = 'farmBOLD' | 'sentUSCC' | 'sentBTC' | 'svUSDC' | 'apUSDC' | 'testWETHTSA' | 'tacUSR' | 'upINJUSDT' | 'tac-tETH' | 'upAUSD' | 'TACcbBTC' | 'xUpUSDC' | 'uptBTC' | 'gtETH' | 'agETH' | 'upUSDC' | 'hgETH' | 'upsSYLVA' | 'hbBTC' | 'hbHYPE' | 'upAZT' | 'sUSDT' | 'upEDGE' | 'coreUSDC' | 'upcUSDO' | 'shiftETH' | 'upsUSDe' | 'upLBTC' | 'upAVAX' | 'TACrsEth' | 'mUSD' | 'earnAUSD' | 'AlpineUSDCFlagship' | 'AlpineCoinshiftUSDC' | 'upBTC' | 'UpStrBTC' | 'maxiUSR' | 'upGAMMAusdc' | 'xHYPE' | 'wildUSD' | 'AlpineBTC' | 'preNUSD' | 'upyzUSD' | 'upNUSD' | 'HLPe';
16
+ type VaultSymbols =
17
+ | 'farmBOLD'
18
+ | 'sentUSCC'
19
+ | 'sentBTC'
20
+ | 'svUSDC'
21
+ | 'apUSDC'
22
+ | 'testWETHTSA'
23
+ | 'tacUSR'
24
+ | 'upINJUSDT'
25
+ | 'tac-tETH'
26
+ | 'upAUSD'
27
+ | 'TACcbBTC'
28
+ | 'xUpUSDC'
29
+ | 'uptBTC'
30
+ | 'gtETH'
31
+ | 'agETH'
32
+ | 'upUSDC'
33
+ | 'hgETH'
34
+ | 'upsSYLVA'
35
+ | 'hbBTC'
36
+ | 'hbHYPE'
37
+ | 'upAZT'
38
+ | 'sUSDT'
39
+ | 'upEDGE'
40
+ | 'coreUSDC'
41
+ | 'upcUSDO'
42
+ | 'shiftETH'
43
+ | 'upsUSDe'
44
+ | 'upLBTC'
45
+ | 'upAVAX'
46
+ | 'TACrsEth'
47
+ | 'mUSD'
48
+ | 'earnAUSD'
49
+ | 'AlpineUSDCFlagship'
50
+ | 'AlpineCoinshiftUSDC'
51
+ | 'upBTC'
52
+ | 'UpStrBTC'
53
+ | 'maxiUSR'
54
+ | 'upGAMMAusdc'
55
+ | 'xHYPE'
56
+ | 'wildUSD'
57
+ | 'AlpineBTC'
58
+ | 'preNUSD'
59
+ | 'upyzUSD'
60
+ | 'upNUSD'
61
+ | 'HLPe';
17
62
  export declare const VAULT_SYMBOLS: Record<IAddress, VaultSymbols>;
18
63
  export declare const VAULT_SYMBOLS_REVERSE: Record<VaultSymbols, IAddress>;
19
64
  export {};
@@ -1,27 +1,28 @@
1
1
  import { IChainId, IChainObj } from '../types';
2
2
  export declare const SPECIAL_CHAINS: {
3
- solana: {
4
- name: string;
5
- chainId: number;
6
- explorer: string;
7
- };
3
+ solana: {
4
+ name: string;
5
+ chainId: number;
6
+ explorer: string;
7
+ };
8
8
  };
9
- export declare const NATIVE_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
9
+ export declare const NATIVE_ADDRESS =
10
+ '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
10
11
  export declare const MIN_ABIS: {
11
- name: string;
12
- symbol: string;
13
- decimals: string;
14
- totalSupply: string;
15
- approve: string;
16
- allowance: string;
17
- managementFeePercent: string;
12
+ name: string;
13
+ symbol: string;
14
+ decimals: string;
15
+ totalSupply: string;
16
+ approve: string;
17
+ allowance: string;
18
+ managementFeePercent: string;
18
19
  };
19
20
  export declare const ORACLE_CONTRACTS: {
20
- 1: string;
21
- 43114: string;
22
- 42161: string;
23
- 8453: string;
24
- 10: string;
21
+ 1: string;
22
+ 43114: string;
23
+ 42161: string;
24
+ 8453: string;
25
+ 10: string;
25
26
  };
26
27
  export declare const NETWORKS: Record<IChainId, IChainObj>;
27
28
  export declare const AVAILABLE_CHAINS: IChainId[];
@@ -1,23 +1,48 @@
1
1
  import { INormalizedNumber } from '../types';
2
- export declare function toNormalizedBn(value: string | bigint | number, decimals?: number | BigInt): INormalizedNumber;
2
+ export declare function toNormalizedBn(
3
+ value: string | bigint | number,
4
+ decimals?: number | BigInt,
5
+ ): INormalizedNumber;
3
6
  export declare function getFallbackRpcUrls(chainId: number): string[];
4
7
  export declare const filterOutBySize: (usdAmount: number) => boolean;
5
8
  export declare function toTitleCase(str: string, type?: 'camel'): string;
6
9
  export declare function truncate(s: string, amount?: number): string;
7
- export declare function round(value: number | string | bigint, options?: {
10
+ export declare function round(
11
+ value: number | string | bigint,
12
+ options?: {
8
13
  showing?: number | 'all';
9
14
  usd?: boolean;
10
15
  decimals?: number;
11
- }): string;
12
- export declare function loanStateToReadable(loanState: number | bigint): "PREAPPROVED" | "FUNDING_REQUIRED" | "FUNDED" | "ACTIVE" | "CANCELLED" | "MATURED" | "CLOSED";
16
+ },
17
+ ): string;
18
+ export declare function loanStateToReadable(
19
+ loanState: number | bigint,
20
+ ):
21
+ | 'PREAPPROVED'
22
+ | 'FUNDING_REQUIRED'
23
+ | 'FUNDED'
24
+ | 'ACTIVE'
25
+ | 'CANCELLED'
26
+ | 'MATURED'
27
+ | 'CLOSED';
13
28
  export declare function dateToUnix(date: Date): number;
14
29
  export declare function unixToDate(epoch: number): Date;
15
30
  export declare function isEarlierThanNow(startTime: Date): boolean;
16
31
  export declare function daysAgo(days: number): Date;
17
32
  export declare function prepareDateForDb(date: string | Date): string;
18
- export declare function orderObjArrByDate(objectArray: any[], options?: {
33
+ export declare function orderObjArrByDate(
34
+ objectArray: any[],
35
+ options?: {
19
36
  key?: string;
20
37
  order?: 'asc' | 'desc';
21
- }): any[];
22
- export declare function calculateWeights(data?: Array<any>, weightProperty?: string): any[];
23
- export declare function calculateWeightedAverage(data?: Array<any>, valueProperty?: string, weightProperty?: string): any;
38
+ },
39
+ ): any[];
40
+ export declare function calculateWeights(
41
+ data?: Array<any>,
42
+ weightProperty?: string,
43
+ ): any[];
44
+ export declare function calculateWeightedAverage(
45
+ data?: Array<any>,
46
+ valueProperty?: string,
47
+ weightProperty?: string,
48
+ ): any;