@drift-labs/sdk 2.131.0-beta.4 → 2.131.0-beta.6
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.
- package/VERSION +1 -1
- package/lib/browser/constants/index.d.ts +5 -0
- package/lib/browser/constants/index.js +21 -0
- package/lib/browser/constants/insuranceFund.d.ts +5 -0
- package/lib/browser/constants/insuranceFund.js +9 -0
- package/lib/browser/index.d.ts +1 -4
- package/lib/browser/index.js +1 -4
- package/lib/node/constants/index.d.ts +6 -0
- package/lib/node/constants/index.d.ts.map +1 -0
- package/lib/node/constants/index.js +21 -0
- package/lib/node/constants/insuranceFund.d.ts +6 -0
- package/lib/node/constants/insuranceFund.d.ts.map +1 -0
- package/lib/node/constants/insuranceFund.js +9 -0
- package/lib/node/index.d.ts +1 -4
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +1 -4
- package/package.json +1 -1
- package/src/constants/index.ts +5 -0
- package/src/constants/insuranceFund.ts +8 -0
- package/src/index.ts +1 -4
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.131.0-beta.
|
|
1
|
+
2.131.0-beta.6
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./insuranceFund"), exports);
|
|
18
|
+
__exportStar(require("./numericConstants"), exports);
|
|
19
|
+
__exportStar(require("./perpMarkets"), exports);
|
|
20
|
+
__exportStar(require("./spotMarkets"), exports);
|
|
21
|
+
__exportStar(require("./txConstants"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT_GOV = void 0;
|
|
4
|
+
const numericConstants_1 = require("./numericConstants");
|
|
5
|
+
// follows program constant MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT_GOV in math/constants.rs
|
|
6
|
+
/**
|
|
7
|
+
* Max APR for DRIFT IF vault.
|
|
8
|
+
*/
|
|
9
|
+
exports.MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT_GOV = numericConstants_1.PERCENTAGE_PRECISION.divn(22);
|
package/lib/browser/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './oracles/types';
|
|
|
6
6
|
export * from './oracles/pythClient';
|
|
7
7
|
export * from './oracles/strictOraclePrice';
|
|
8
8
|
export * from './types';
|
|
9
|
-
export * from './constants/perpMarkets';
|
|
10
9
|
export * from './accounts/fetch';
|
|
11
10
|
export * from './accounts/webSocketDriftClientAccountSubscriber';
|
|
12
11
|
export * from './accounts/webSocketInsuranceFundStakeAccountSubscriber';
|
|
@@ -77,7 +76,6 @@ export * from './types';
|
|
|
77
76
|
export * from './math/utils';
|
|
78
77
|
export * from './math/fuel';
|
|
79
78
|
export * from './config';
|
|
80
|
-
export * from './constants/numericConstants';
|
|
81
79
|
export * from './serum/serumSubscriber';
|
|
82
80
|
export * from './serum/serumFulfillmentConfigMap';
|
|
83
81
|
export * from './phoenix/phoenixSubscriber';
|
|
@@ -107,7 +105,6 @@ export * from './util/tps';
|
|
|
107
105
|
export * from './util/promiseTimeout';
|
|
108
106
|
export * from './util/pythOracleUtils';
|
|
109
107
|
export * from './math/spotBalance';
|
|
110
|
-
export * from './constants/spotMarkets';
|
|
111
108
|
export * from './driftClientConfig';
|
|
112
109
|
export * from './dlob/DLOB';
|
|
113
110
|
export * from './dlob/DLOBNode';
|
|
@@ -131,6 +128,6 @@ export * from './util/chainClock';
|
|
|
131
128
|
export * from './util/TransactionConfirmationManager';
|
|
132
129
|
export * from './clock/clockSubscriber';
|
|
133
130
|
export * from './math/userStatus';
|
|
134
|
-
export * from './constants/txConstants';
|
|
135
131
|
export * from './indicative-quotes/indicativeQuotesSender';
|
|
132
|
+
export * from './constants';
|
|
136
133
|
export { BN, PublicKey, pyth };
|
package/lib/browser/index.js
CHANGED
|
@@ -29,7 +29,6 @@ __exportStar(require("./oracles/types"), exports);
|
|
|
29
29
|
__exportStar(require("./oracles/pythClient"), exports);
|
|
30
30
|
__exportStar(require("./oracles/strictOraclePrice"), exports);
|
|
31
31
|
__exportStar(require("./types"), exports);
|
|
32
|
-
__exportStar(require("./constants/perpMarkets"), exports);
|
|
33
32
|
__exportStar(require("./accounts/fetch"), exports);
|
|
34
33
|
__exportStar(require("./accounts/webSocketDriftClientAccountSubscriber"), exports);
|
|
35
34
|
__exportStar(require("./accounts/webSocketInsuranceFundStakeAccountSubscriber"), exports);
|
|
@@ -102,7 +101,6 @@ __exportStar(require("./types"), exports);
|
|
|
102
101
|
__exportStar(require("./math/utils"), exports);
|
|
103
102
|
__exportStar(require("./math/fuel"), exports);
|
|
104
103
|
__exportStar(require("./config"), exports);
|
|
105
|
-
__exportStar(require("./constants/numericConstants"), exports);
|
|
106
104
|
__exportStar(require("./serum/serumSubscriber"), exports);
|
|
107
105
|
__exportStar(require("./serum/serumFulfillmentConfigMap"), exports);
|
|
108
106
|
__exportStar(require("./phoenix/phoenixSubscriber"), exports);
|
|
@@ -132,7 +130,6 @@ __exportStar(require("./util/tps"), exports);
|
|
|
132
130
|
__exportStar(require("./util/promiseTimeout"), exports);
|
|
133
131
|
__exportStar(require("./util/pythOracleUtils"), exports);
|
|
134
132
|
__exportStar(require("./math/spotBalance"), exports);
|
|
135
|
-
__exportStar(require("./constants/spotMarkets"), exports);
|
|
136
133
|
__exportStar(require("./driftClientConfig"), exports);
|
|
137
134
|
__exportStar(require("./dlob/DLOB"), exports);
|
|
138
135
|
__exportStar(require("./dlob/DLOBNode"), exports);
|
|
@@ -156,5 +153,5 @@ __exportStar(require("./util/chainClock"), exports);
|
|
|
156
153
|
__exportStar(require("./util/TransactionConfirmationManager"), exports);
|
|
157
154
|
__exportStar(require("./clock/clockSubscriber"), exports);
|
|
158
155
|
__exportStar(require("./math/userStatus"), exports);
|
|
159
|
-
__exportStar(require("./constants/txConstants"), exports);
|
|
160
156
|
__exportStar(require("./indicative-quotes/indicativeQuotesSender"), exports);
|
|
157
|
+
__exportStar(require("./constants"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./insuranceFund"), exports);
|
|
18
|
+
__exportStar(require("./numericConstants"), exports);
|
|
19
|
+
__exportStar(require("./perpMarkets"), exports);
|
|
20
|
+
__exportStar(require("./spotMarkets"), exports);
|
|
21
|
+
__exportStar(require("./txConstants"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insuranceFund.d.ts","sourceRoot":"","sources":["../../../src/constants/insuranceFund.ts"],"names":[],"mappings":";AAGA;;GAEG;AACH,eAAO,MAAM,sDAAsD,iBACrC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT_GOV = void 0;
|
|
4
|
+
const numericConstants_1 = require("./numericConstants");
|
|
5
|
+
// follows program constant MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT_GOV in math/constants.rs
|
|
6
|
+
/**
|
|
7
|
+
* Max APR for DRIFT IF vault.
|
|
8
|
+
*/
|
|
9
|
+
exports.MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT_GOV = numericConstants_1.PERCENTAGE_PRECISION.divn(22);
|
package/lib/node/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './oracles/types';
|
|
|
6
6
|
export * from './oracles/pythClient';
|
|
7
7
|
export * from './oracles/strictOraclePrice';
|
|
8
8
|
export * from './types';
|
|
9
|
-
export * from './constants/perpMarkets';
|
|
10
9
|
export * from './accounts/fetch';
|
|
11
10
|
export * from './accounts/webSocketDriftClientAccountSubscriber';
|
|
12
11
|
export * from './accounts/webSocketInsuranceFundStakeAccountSubscriber';
|
|
@@ -77,7 +76,6 @@ export * from './types';
|
|
|
77
76
|
export * from './math/utils';
|
|
78
77
|
export * from './math/fuel';
|
|
79
78
|
export * from './config';
|
|
80
|
-
export * from './constants/numericConstants';
|
|
81
79
|
export * from './serum/serumSubscriber';
|
|
82
80
|
export * from './serum/serumFulfillmentConfigMap';
|
|
83
81
|
export * from './phoenix/phoenixSubscriber';
|
|
@@ -107,7 +105,6 @@ export * from './util/tps';
|
|
|
107
105
|
export * from './util/promiseTimeout';
|
|
108
106
|
export * from './util/pythOracleUtils';
|
|
109
107
|
export * from './math/spotBalance';
|
|
110
|
-
export * from './constants/spotMarkets';
|
|
111
108
|
export * from './driftClientConfig';
|
|
112
109
|
export * from './dlob/DLOB';
|
|
113
110
|
export * from './dlob/DLOBNode';
|
|
@@ -131,7 +128,7 @@ export * from './util/chainClock';
|
|
|
131
128
|
export * from './util/TransactionConfirmationManager';
|
|
132
129
|
export * from './clock/clockSubscriber';
|
|
133
130
|
export * from './math/userStatus';
|
|
134
|
-
export * from './constants/txConstants';
|
|
135
131
|
export * from './indicative-quotes/indicativeQuotesSender';
|
|
132
|
+
export * from './constants';
|
|
136
133
|
export { BN, PublicKey, pyth };
|
|
137
134
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/node/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,IAAI,MAAM,qBAAqB,CAAC;AAEvC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,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AAmB,CAAC;AAClC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,aAAa,CAAC;AAE5B,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC"}
|
package/lib/node/index.js
CHANGED
|
@@ -29,7 +29,6 @@ __exportStar(require("./oracles/types"), exports);
|
|
|
29
29
|
__exportStar(require("./oracles/pythClient"), exports);
|
|
30
30
|
__exportStar(require("./oracles/strictOraclePrice"), exports);
|
|
31
31
|
__exportStar(require("./types"), exports);
|
|
32
|
-
__exportStar(require("./constants/perpMarkets"), exports);
|
|
33
32
|
__exportStar(require("./accounts/fetch"), exports);
|
|
34
33
|
__exportStar(require("./accounts/webSocketDriftClientAccountSubscriber"), exports);
|
|
35
34
|
__exportStar(require("./accounts/webSocketInsuranceFundStakeAccountSubscriber"), exports);
|
|
@@ -102,7 +101,6 @@ __exportStar(require("./types"), exports);
|
|
|
102
101
|
__exportStar(require("./math/utils"), exports);
|
|
103
102
|
__exportStar(require("./math/fuel"), exports);
|
|
104
103
|
__exportStar(require("./config"), exports);
|
|
105
|
-
__exportStar(require("./constants/numericConstants"), exports);
|
|
106
104
|
__exportStar(require("./serum/serumSubscriber"), exports);
|
|
107
105
|
__exportStar(require("./serum/serumFulfillmentConfigMap"), exports);
|
|
108
106
|
__exportStar(require("./phoenix/phoenixSubscriber"), exports);
|
|
@@ -132,7 +130,6 @@ __exportStar(require("./util/tps"), exports);
|
|
|
132
130
|
__exportStar(require("./util/promiseTimeout"), exports);
|
|
133
131
|
__exportStar(require("./util/pythOracleUtils"), exports);
|
|
134
132
|
__exportStar(require("./math/spotBalance"), exports);
|
|
135
|
-
__exportStar(require("./constants/spotMarkets"), exports);
|
|
136
133
|
__exportStar(require("./driftClientConfig"), exports);
|
|
137
134
|
__exportStar(require("./dlob/DLOB"), exports);
|
|
138
135
|
__exportStar(require("./dlob/DLOBNode"), exports);
|
|
@@ -156,5 +153,5 @@ __exportStar(require("./util/chainClock"), exports);
|
|
|
156
153
|
__exportStar(require("./util/TransactionConfirmationManager"), exports);
|
|
157
154
|
__exportStar(require("./clock/clockSubscriber"), exports);
|
|
158
155
|
__exportStar(require("./math/userStatus"), exports);
|
|
159
|
-
__exportStar(require("./constants/txConstants"), exports);
|
|
160
156
|
__exportStar(require("./indicative-quotes/indicativeQuotesSender"), exports);
|
|
157
|
+
__exportStar(require("./constants"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PERCENTAGE_PRECISION } from './numericConstants';
|
|
2
|
+
|
|
3
|
+
// follows program constant MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT_GOV in math/constants.rs
|
|
4
|
+
/**
|
|
5
|
+
* Max APR for DRIFT IF vault.
|
|
6
|
+
*/
|
|
7
|
+
export const MAX_APR_PER_REVENUE_SETTLE_TO_INSURANCE_FUND_VAULT_GOV =
|
|
8
|
+
PERCENTAGE_PRECISION.divn(22);
|
package/src/index.ts
CHANGED
|
@@ -7,7 +7,6 @@ export * from './oracles/types';
|
|
|
7
7
|
export * from './oracles/pythClient';
|
|
8
8
|
export * from './oracles/strictOraclePrice';
|
|
9
9
|
export * from './types';
|
|
10
|
-
export * from './constants/perpMarkets';
|
|
11
10
|
export * from './accounts/fetch';
|
|
12
11
|
export * from './accounts/webSocketDriftClientAccountSubscriber';
|
|
13
12
|
export * from './accounts/webSocketInsuranceFundStakeAccountSubscriber';
|
|
@@ -78,7 +77,6 @@ export * from './types';
|
|
|
78
77
|
export * from './math/utils';
|
|
79
78
|
export * from './math/fuel';
|
|
80
79
|
export * from './config';
|
|
81
|
-
export * from './constants/numericConstants';
|
|
82
80
|
export * from './serum/serumSubscriber';
|
|
83
81
|
export * from './serum/serumFulfillmentConfigMap';
|
|
84
82
|
export * from './phoenix/phoenixSubscriber';
|
|
@@ -108,7 +106,6 @@ export * from './util/tps';
|
|
|
108
106
|
export * from './util/promiseTimeout';
|
|
109
107
|
export * from './util/pythOracleUtils';
|
|
110
108
|
export * from './math/spotBalance';
|
|
111
|
-
export * from './constants/spotMarkets';
|
|
112
109
|
export * from './driftClientConfig';
|
|
113
110
|
export * from './dlob/DLOB';
|
|
114
111
|
export * from './dlob/DLOBNode';
|
|
@@ -132,7 +129,7 @@ export * from './util/chainClock';
|
|
|
132
129
|
export * from './util/TransactionConfirmationManager';
|
|
133
130
|
export * from './clock/clockSubscriber';
|
|
134
131
|
export * from './math/userStatus';
|
|
135
|
-
export * from './constants/txConstants';
|
|
136
132
|
export * from './indicative-quotes/indicativeQuotesSender';
|
|
133
|
+
export * from './constants';
|
|
137
134
|
|
|
138
135
|
export { BN, PublicKey, pyth };
|