carbon-js-sdk 0.4.0 → 0.4.1

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,21 +1,15 @@
1
- export interface RecentTrade {
2
- block_created_at: string;
3
- block_height: number;
4
- id: number;
5
- liquidation?: string;
6
- maker_address: string;
7
- maker_fee_amount: string;
8
- maker_fee_denom: string;
9
- maker_id: string;
10
- maker_side: string;
1
+ export interface AccountTrade {
2
+ order_id: string;
11
3
  market: string;
4
+ side: string;
12
5
  price: string;
13
6
  quantity: string;
14
- taker_address: string;
15
- taker_fee_amount: string;
16
- taker_fee_denom: string;
17
- taker_id: string;
18
- taker_side: string;
7
+ fee_amount: string;
8
+ fee_denom: string;
9
+ address: string;
10
+ block_height: number;
11
+ block_created_at: string;
12
+ trade_id: number;
19
13
  }
20
14
  export interface HistoryOrder {
21
15
  address: string;
@@ -65,18 +59,12 @@ export interface Candlestick {
65
59
  quote_volume: string;
66
60
  resolution: number;
67
61
  }
68
- export interface AccountTrade {
69
- address: string;
62
+ export interface RecentTrade {
70
63
  block_created_at: string;
71
64
  block_height: number;
72
- fee_amount: string;
73
- fee_denom: string;
74
65
  market: string;
75
- order_id: string;
76
66
  price: string;
77
67
  quantity: string;
78
- side: string;
79
- trade_id: number;
80
68
  id?: string;
81
69
  liquidation?: string;
82
70
  taker_id?: string;
@@ -195,9 +183,18 @@ export interface CDPParams {
195
183
  interest_fee: string;
196
184
  liquidation_fee: string;
197
185
  stablecoin_interest_rate: string;
186
+ stablecoin_mint_cap: string;
198
187
  complete_liquidation_threshold: string;
199
188
  minimum_close_factor: string;
200
189
  small_liquidation_size: string;
190
+ stale_price_grace_period: string;
191
+ cdp_paused: boolean;
192
+ stablecoin_interest_rate_epoch: string;
193
+ stablecoin_interest_rate_adjuster_coefficient?: string;
194
+ }
195
+ export interface StablecoinInterestInfo {
196
+ last_updated_time: string;
197
+ stablecoin_interest_rate: string;
201
198
  }
202
199
  export interface RateStrategy {
203
200
  name: string;
@@ -124,6 +124,8 @@ export interface WsGetCdpAllTokenDebts {
124
124
  }
125
125
  export interface WsGetCdpStablecoinDebt {
126
126
  }
127
+ export interface WsGetCdpStablecoinInterest {
128
+ }
127
129
  export interface WsGetCdpLiquidations {
128
130
  }
129
131
  export interface WsGetCdpRewardSchemes {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-js-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "TypeScript SDK for Carbon blockchain",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",