File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " set.js" ,
3
- "version" : " 0.4.3 " ,
3
+ "version" : " 0.4.4 " ,
4
4
"description" : " A javascript library for interacting with the Set Protocol v2" ,
5
5
"keywords" : [
6
6
" set.js" ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import {
30
30
PriceOracleAPI ,
31
31
DebtIssuanceAPI ,
32
32
DebtIssuanceV2API ,
33
+ SlippageIssuanceAPI ,
33
34
} from './api/index' ;
34
35
35
36
const ethersProviders = require ( 'ethers' ) . providers ;
@@ -104,6 +105,13 @@ class Set {
104
105
*/
105
106
public debtIssuanceV2 : DebtIssuanceV2API ;
106
107
108
+ /**
109
+ * An instance of the SlippageIssuanceAPI class. Contains interfaces for interacting
110
+ * with the SlippageIssuanceAPI contract to to trade into/from tokens during the issuance and
111
+ * redemption step. Initially used for Perpetual Leverage Tokens.
112
+ */
113
+ public slippageIssuance : SlippageIssuanceAPI ;
114
+
107
115
/**
108
116
* An instance of the BlockchainAPI class. Contains interfaces for
109
117
* interacting with the blockchain
@@ -136,6 +144,7 @@ class Set {
136
144
this . priceOracle = new PriceOracleAPI ( ethersProvider , config . masterOracleAddress ) ;
137
145
this . debtIssuance = new DebtIssuanceAPI ( ethersProvider , config . debtIssuanceModuleAddress ) ;
138
146
this . debtIssuanceV2 = new DebtIssuanceV2API ( ethersProvider , config . debtIssuanceModuleV2Address ) ;
147
+ this . slippageIssuance = new SlippageIssuanceAPI ( ethersProvider , config . slippageIssuanceModuleAddress ) ;
139
148
this . blockchain = new BlockchainAPI ( ethersProvider , assertions ) ;
140
149
}
141
150
}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import NavIssuanceAPI from './NavIssuanceAPI';
9
9
import PriceOracleAPI from './PriceOracleAPI' ;
10
10
import DebtIssuanceAPI from './DebtIssuanceAPI' ;
11
11
import DebtIssuanceV2API from './DebtIssuanceV2API' ;
12
+ import SlippageIssuanceAPI from './SlippageIssuanceAPI' ;
12
13
import {
13
14
TradeQuoter ,
14
15
CoinGeckoDataService ,
@@ -27,6 +28,7 @@ export {
27
28
PriceOracleAPI ,
28
29
DebtIssuanceAPI ,
29
30
DebtIssuanceV2API ,
31
+ SlippageIssuanceAPI ,
30
32
TradeQuoter ,
31
33
CoinGeckoDataService ,
32
34
GasOracleService
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export interface SetJSConfig {
20
20
debtIssuanceModuleAddress : Address ;
21
21
zeroExApiKey ?: string ;
22
22
debtIssuanceModuleV2Address : Address ;
23
+ slippageIssuanceModuleAddress : Address ;
23
24
}
24
25
25
26
export type SetDetails = {
You can’t perform that action at this time.
0 commit comments