flash-sdk 10.10.6 → 10.100.2-alpha.0

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.
Files changed (57) hide show
  1. package/dist/CustodyAccount.d.ts +2 -2
  2. package/dist/MarketAccount.d.ts +2 -2
  3. package/dist/MarketAccount.js +1 -1
  4. package/dist/OraclePrice.d.ts +4 -2
  5. package/dist/OraclePrice.js +23 -4
  6. package/dist/OrderAccount.d.ts +1 -1
  7. package/dist/PerpetualsClient.d.ts +385 -4332
  8. package/dist/PerpetualsClient.js +6254 -4927
  9. package/dist/PoolAccount.d.ts +3 -0
  10. package/dist/PoolConfig.d.ts +9 -2
  11. package/dist/PoolConfig.js +67 -4
  12. package/dist/PoolConfig.json +87 -4032
  13. package/dist/PoolDataClient.js +12 -11
  14. package/dist/PositionAccount.d.ts +6 -3
  15. package/dist/TokenStakeAccount.d.ts +24 -4
  16. package/dist/TokenStakeAccount.js +44 -2
  17. package/dist/TokenVaultAccount.d.ts +1 -0
  18. package/dist/ViewHelper.d.ts +2 -1
  19. package/dist/ViewHelper.js +17 -20
  20. package/dist/backupOracle.d.ts +0 -1
  21. package/dist/backupOracle.js +26 -5
  22. package/dist/constants/index.d.ts +1 -0
  23. package/dist/constants/index.js +2 -1
  24. package/dist/idl/perpetuals.d.ts +29203 -11085
  25. package/dist/idl/perpetuals.js +0 -16293
  26. package/dist/idl/perpetuals.json +34411 -0
  27. package/dist/index.d.ts +4 -2
  28. package/dist/index.js +7 -3
  29. package/dist/remoraTokensWithPriceIds.d.ts +13 -0
  30. package/dist/remoraTokensWithPriceIds.js +265 -0
  31. package/dist/testPublkey.d.ts +0 -0
  32. package/dist/testPublkey.js +0 -0
  33. package/dist/testSize.d.ts +0 -0
  34. package/dist/testSize.js +0 -0
  35. package/dist/tsconfig.tsbuildinfo +1 -1
  36. package/dist/types/generated.d.ts +2556 -0
  37. package/dist/types/generated.js +2 -0
  38. package/dist/types/index.d.ts +52 -144
  39. package/dist/types/index.js +22 -4
  40. package/dist/utils/IdlCoder.d.ts +3 -2
  41. package/dist/utils/IdlCoder.js +4 -2
  42. package/dist/utils/anchorCpiEvents.d.ts +1 -2
  43. package/dist/utils/anchorCpiEvents.js +10 -6
  44. package/dist/utils/getReferralAccounts.d.ts +1 -1
  45. package/dist/utils/getReferralAccounts.js +3 -8
  46. package/dist/xstocksTokensWithPriceIds.d.ts +13 -0
  47. package/dist/xstocksTokensWithPriceIds.js +369 -0
  48. package/package.json +9 -5
  49. package/readme.md +37 -3
  50. package/dist/TradingAccount.d.ts +0 -24
  51. package/dist/TradingAccount.js +0 -17
  52. package/dist/idl/fbnft_rewards.d.ts +0 -290
  53. package/dist/idl/fbnft_rewards.js +0 -292
  54. package/dist/idl/perp_composability.d.ts +0 -760
  55. package/dist/idl/perp_composability.js +0 -762
  56. package/dist/idl/reward_distribution.d.ts +0 -347
  57. package/dist/idl/reward_distribution.js +0 -349
package/dist/index.d.ts CHANGED
@@ -4,16 +4,18 @@ export * from './MarketAccount';
4
4
  export * from './PositionAccount';
5
5
  export * from './OrderAccount';
6
6
  export * from './TokenVaultAccount';
7
- export * from './TradingAccount';
7
+ export * from './TokenStakeAccount';
8
8
  export * from './OraclePrice';
9
9
  export * from './constants';
10
+ export * from './remoraTokensWithPriceIds';
10
11
  export * from './types';
11
12
  export * from './utils';
12
13
  export * from './PerpetualsClient';
13
14
  export * from './PoolConfig';
14
15
  export * from './PoolDataClient';
15
16
  export * from './ViewHelper';
16
- export { IDL } from './idl/perpetuals';
17
+ export { default as IDL } from './idl/perpetuals.json';
18
+ export type { Perpetuals } from './idl/perpetuals';
17
19
  export * from './utils/rpc';
18
20
  export * from './utils/IdlCoder';
19
21
  export * from './utils/anchorCpiEvents';
package/dist/index.js CHANGED
@@ -13,6 +13,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
13
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
16
19
  Object.defineProperty(exports, "__esModule", { value: true });
17
20
  exports.IDL = void 0;
18
21
  __exportStar(require("./PoolAccount"), exports);
@@ -21,17 +24,18 @@ __exportStar(require("./MarketAccount"), exports);
21
24
  __exportStar(require("./PositionAccount"), exports);
22
25
  __exportStar(require("./OrderAccount"), exports);
23
26
  __exportStar(require("./TokenVaultAccount"), exports);
24
- __exportStar(require("./TradingAccount"), exports);
27
+ __exportStar(require("./TokenStakeAccount"), exports);
25
28
  __exportStar(require("./OraclePrice"), exports);
26
29
  __exportStar(require("./constants"), exports);
30
+ __exportStar(require("./remoraTokensWithPriceIds"), exports);
27
31
  __exportStar(require("./types"), exports);
28
32
  __exportStar(require("./utils"), exports);
29
33
  __exportStar(require("./PerpetualsClient"), exports);
30
34
  __exportStar(require("./PoolConfig"), exports);
31
35
  __exportStar(require("./PoolDataClient"), exports);
32
36
  __exportStar(require("./ViewHelper"), exports);
33
- var perpetuals_1 = require("./idl/perpetuals");
34
- Object.defineProperty(exports, "IDL", { enumerable: true, get: function () { return perpetuals_1.IDL; } });
37
+ var perpetuals_json_1 = require("./idl/perpetuals.json");
38
+ Object.defineProperty(exports, "IDL", { enumerable: true, get: function () { return __importDefault(perpetuals_json_1).default; } });
35
39
  __exportStar(require("./utils/rpc"), exports);
36
40
  __exportStar(require("./utils/IdlCoder"), exports);
37
41
  __exportStar(require("./utils/anchorCpiEvents"), exports);
@@ -0,0 +1,13 @@
1
+ export declare const REMORA_TOKENS_WITH_PRICE_IDS: {
2
+ symbol: string;
3
+ mintKey: string;
4
+ decimals: number;
5
+ usdPrecision: number;
6
+ tokenPrecision: number;
7
+ isStable: boolean;
8
+ isVirtual: boolean;
9
+ lazerId: number;
10
+ pythTicker: string;
11
+ pythPriceId: string;
12
+ isToken2022: boolean;
13
+ }[];
@@ -0,0 +1,265 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REMORA_TOKENS_WITH_PRICE_IDS = void 0;
4
+ exports.REMORA_TOKENS_WITH_PRICE_IDS = [
5
+ {
6
+ "symbol": "TSLAr",
7
+ "mintKey": "ts1aDtA2pHaFrMRDcy5YsK6giEbrABDfv1PkQK21Kga",
8
+ "decimals": 9,
9
+ "usdPrecision": 2,
10
+ "tokenPrecision": 4,
11
+ "isStable": false,
12
+ "isVirtual": false,
13
+ "lazerId": 1435,
14
+ "pythTicker": "Equity.US.TSLA/USD",
15
+ "pythPriceId": "0x16dad506d7db8da01c87581c87ca897a012a153557d4d578c3b9c9e1bc0632f1",
16
+ "isToken2022": true
17
+ },
18
+ {
19
+ "symbol": "TSLAr",
20
+ "mintKey": "ts1aDtA2pHaFrMRDcy5YsK6giEbrABDfv1PkQK21Kga",
21
+ "decimals": 9,
22
+ "usdPrecision": 2,
23
+ "tokenPrecision": 4,
24
+ "isStable": false,
25
+ "isVirtual": false,
26
+ "lazerId": -1,
27
+ "pythTicker": "Equity.US.TSLA/USD.ON",
28
+ "pythPriceId": "0x713631e41c06db404e6a5d029f3eebfd5b885c59dce4a19f337c024e26584e26",
29
+ "isToken2022": true
30
+ },
31
+ {
32
+ "symbol": "TSLAr",
33
+ "mintKey": "ts1aDtA2pHaFrMRDcy5YsK6giEbrABDfv1PkQK21Kga",
34
+ "decimals": 9,
35
+ "usdPrecision": 2,
36
+ "tokenPrecision": 4,
37
+ "isStable": false,
38
+ "isVirtual": false,
39
+ "lazerId": -1,
40
+ "pythTicker": "Equity.US.TSLA/USD.PRE",
41
+ "pythPriceId": "0x42676a595d0099c381687124805c8bb22c75424dffcaa55e3dc6549854ebe20a",
42
+ "isToken2022": true
43
+ },
44
+ {
45
+ "symbol": "TSLAr",
46
+ "mintKey": "ts1aDtA2pHaFrMRDcy5YsK6giEbrABDfv1PkQK21Kga",
47
+ "decimals": 9,
48
+ "usdPrecision": 2,
49
+ "tokenPrecision": 4,
50
+ "isStable": false,
51
+ "isVirtual": false,
52
+ "lazerId": -1,
53
+ "pythTicker": "Equity.US.TSLA/USD.POST",
54
+ "pythPriceId": "0x2a797e196973b72447e0ab8e841d9f5706c37dc581fe66a0bd21bcd256cdb9b9",
55
+ "isToken2022": true
56
+ },
57
+ {
58
+ "symbol": "NVDAr",
59
+ "mintKey": "nvdtJJCvPEuULW33UkodP1WPyZBr3wZt4FTTEf8F5AY",
60
+ "decimals": 9,
61
+ "usdPrecision": 4,
62
+ "tokenPrecision": 4,
63
+ "isStable": false,
64
+ "isVirtual": false,
65
+ "lazerId": 1314,
66
+ "pythTicker": "Equity.US.NVDA/USD",
67
+ "pythPriceId": "0xb1073854ed24cbc755dc527418f52b7d271f6cc967bbf8d8129112b18860a593",
68
+ "isToken2022": true
69
+ },
70
+ {
71
+ "symbol": "NVDAr",
72
+ "mintKey": "nvdtJJCvPEuULW33UkodP1WPyZBr3wZt4FTTEf8F5AY",
73
+ "decimals": 9,
74
+ "usdPrecision": 4,
75
+ "tokenPrecision": 4,
76
+ "isStable": false,
77
+ "isVirtual": false,
78
+ "lazerId": -1,
79
+ "pythTicker": "Equity.US.NVDA/USD.ON",
80
+ "pythPriceId": "0xc949a96fd1626e82abc5e1496e6e8d44683ac8ac288015ee90bf37257e3e6bf6",
81
+ "isToken2022": true
82
+ },
83
+ {
84
+ "symbol": "NVDAr",
85
+ "mintKey": "nvdtJJCvPEuULW33UkodP1WPyZBr3wZt4FTTEf8F5AY",
86
+ "decimals": 9,
87
+ "usdPrecision": 4,
88
+ "tokenPrecision": 4,
89
+ "isStable": false,
90
+ "isVirtual": false,
91
+ "lazerId": -1,
92
+ "pythTicker": "Equity.US.NVDA/USD.PRE",
93
+ "pythPriceId": "0x61c4ca5b9731a79e285a01e24432d57d89f0ecdd4cd7828196ca8992d5eafef6",
94
+ "isToken2022": true
95
+ },
96
+ {
97
+ "symbol": "NVDAr",
98
+ "mintKey": "nvdtJJCvPEuULW33UkodP1WPyZBr3wZt4FTTEf8F5AY",
99
+ "decimals": 9,
100
+ "usdPrecision": 4,
101
+ "tokenPrecision": 4,
102
+ "isStable": false,
103
+ "isVirtual": false,
104
+ "lazerId": -1,
105
+ "pythTicker": "Equity.US.NVDA/USD.POST",
106
+ "pythPriceId": "0x25719379353a508b1531945f3c466759d6efd866f52fbaeb3631decb70ba381f",
107
+ "isToken2022": true
108
+ },
109
+ {
110
+ "symbol": "CRCLr",
111
+ "mintKey": "crcSSShvEkSjtKsThPxW9rbdHD8aiTiM9w5zEZSzisM",
112
+ "decimals": 9,
113
+ "usdPrecision": 4,
114
+ "tokenPrecision": 4,
115
+ "isStable": false,
116
+ "isVirtual": false,
117
+ "lazerId": 1683,
118
+ "pythTicker": "Equity.US.CRCL/USD",
119
+ "pythPriceId": "0x92b8527aabe59ea2b12230f7b532769b133ffb118dfbd48ff676f14b273f1365",
120
+ "isToken2022": true
121
+ },
122
+ {
123
+ "symbol": "CRCLr",
124
+ "mintKey": "crcSSShvEkSjtKsThPxW9rbdHD8aiTiM9w5zEZSzisM",
125
+ "decimals": 9,
126
+ "usdPrecision": 4,
127
+ "tokenPrecision": 4,
128
+ "isStable": false,
129
+ "isVirtual": false,
130
+ "lazerId": -1,
131
+ "pythTicker": "Equity.US.CRCL/USD.ON",
132
+ "pythPriceId": "0x63cc3973d36735f8b1725f1069a7ddee200db1570573674da916282fde15dd0e",
133
+ "isToken2022": true
134
+ },
135
+ {
136
+ "symbol": "CRCLr",
137
+ "mintKey": "crcSSShvEkSjtKsThPxW9rbdHD8aiTiM9w5zEZSzisM",
138
+ "decimals": 9,
139
+ "usdPrecision": 4,
140
+ "tokenPrecision": 4,
141
+ "isStable": false,
142
+ "isVirtual": false,
143
+ "lazerId": -1,
144
+ "pythTicker": "Equity.US.CRCL/USD.PRE",
145
+ "pythPriceId": "0xb6ce1644a22bb348f89a81696141c1caaca5e7ea83de289a44fba1a9897ca2d6",
146
+ "isToken2022": true
147
+ },
148
+ {
149
+ "symbol": "CRCLr",
150
+ "mintKey": "crcSSShvEkSjtKsThPxW9rbdHD8aiTiM9w5zEZSzisM",
151
+ "decimals": 9,
152
+ "usdPrecision": 4,
153
+ "tokenPrecision": 4,
154
+ "isStable": false,
155
+ "isVirtual": false,
156
+ "lazerId": -1,
157
+ "pythTicker": "Equity.US.CRCL/USD.POST",
158
+ "pythPriceId": "0x9bdba52fbb3d588d573928b1e781c6441e446a83c011fed92d8362c5b309ce02",
159
+ "isToken2022": true
160
+ },
161
+ {
162
+ "symbol": "MSTRr",
163
+ "mintKey": "mstrRvtbGpUwSTVaNePMRDtepsNidLPtJ35WnNFubBY",
164
+ "decimals": 9,
165
+ "usdPrecision": 4,
166
+ "tokenPrecision": 4,
167
+ "isStable": false,
168
+ "isVirtual": false,
169
+ "lazerId": 1294,
170
+ "pythTicker": "Equity.US.MSTR/USD",
171
+ "pythPriceId": "0xe1e80251e5f5184f2195008382538e847fafc36f751896889dd3d1b1f6111f09",
172
+ "isToken2022": true
173
+ },
174
+ {
175
+ "symbol": "MSTRr",
176
+ "mintKey": "mstrRvtbGpUwSTVaNePMRDtepsNidLPtJ35WnNFubBY",
177
+ "decimals": 9,
178
+ "usdPrecision": 4,
179
+ "tokenPrecision": 4,
180
+ "isStable": false,
181
+ "isVirtual": false,
182
+ "lazerId": -1,
183
+ "pythTicker": "Equity.US.MSTR/USD.ON",
184
+ "pythPriceId": "0xc3055f49e1dc863a7f24d9b83e86fe10d7d16fb583bc6445505b01d230e0d647",
185
+ "isToken2022": true
186
+ },
187
+ {
188
+ "symbol": "MSTRr",
189
+ "mintKey": "mstrRvtbGpUwSTVaNePMRDtepsNidLPtJ35WnNFubBY",
190
+ "decimals": 9,
191
+ "usdPrecision": 4,
192
+ "tokenPrecision": 4,
193
+ "isStable": false,
194
+ "isVirtual": false,
195
+ "lazerId": -1,
196
+ "pythTicker": "Equity.US.MSTR/USD.PRE",
197
+ "pythPriceId": "0x1a11eb21c271f3127e4c9ec8a0e9b1042dc088ccba7a94a1a7d1aa37599a00f6",
198
+ "isToken2022": true
199
+ },
200
+ {
201
+ "symbol": "MSTRr",
202
+ "mintKey": "mstrRvtbGpUwSTVaNePMRDtepsNidLPtJ35WnNFubBY",
203
+ "decimals": 9,
204
+ "usdPrecision": 4,
205
+ "tokenPrecision": 4,
206
+ "isStable": false,
207
+ "isVirtual": false,
208
+ "lazerId": -1,
209
+ "pythTicker": "Equity.US.MSTR/USD.POST",
210
+ "pythPriceId": "0xd8b856d7e17c467877d2d947f27b832db0d65b362ddb6f728797d46b0a8b54c0",
211
+ "isToken2022": true
212
+ },
213
+ {
214
+ "symbol": "SPYr",
215
+ "mintKey": "spyK8TuzAF1iwcJtzysb7J5u8e4yymtpUMhVLZrKz2r",
216
+ "decimals": 9,
217
+ "usdPrecision": 4,
218
+ "tokenPrecision": 4,
219
+ "isStable": false,
220
+ "isVirtual": false,
221
+ "lazerId": 1398,
222
+ "pythTicker": "Equity.US.SPY/USD",
223
+ "pythPriceId": "0x19e09bb805456ada3979a7d1cbb4b6d63babc3a0f8e8a9509f68afa5c4c11cd5",
224
+ "isToken2022": true
225
+ },
226
+ {
227
+ "symbol": "SPYr",
228
+ "mintKey": "spyK8TuzAF1iwcJtzysb7J5u8e4yymtpUMhVLZrKz2r",
229
+ "decimals": 9,
230
+ "usdPrecision": 4,
231
+ "tokenPrecision": 4,
232
+ "isStable": false,
233
+ "isVirtual": false,
234
+ "lazerId": -1,
235
+ "pythTicker": "Equity.US.SPY/USD.ON",
236
+ "pythPriceId": "0x05d590e94e9f51abe18ed0421bc302995673156750e914ac1600583fe2e03f99",
237
+ "isToken2022": true
238
+ },
239
+ {
240
+ "symbol": "SPYr",
241
+ "mintKey": "spyK8TuzAF1iwcJtzysb7J5u8e4yymtpUMhVLZrKz2r",
242
+ "decimals": 9,
243
+ "usdPrecision": 4,
244
+ "tokenPrecision": 4,
245
+ "isStable": false,
246
+ "isVirtual": false,
247
+ "lazerId": -1,
248
+ "pythTicker": "Equity.US.SPY/USD.PRE",
249
+ "pythPriceId": "0x34f6ef70940cb9b6a37e030689612bf454f59f4a2fc5d3e03bdf2b330a088107",
250
+ "isToken2022": true
251
+ },
252
+ {
253
+ "symbol": "SPYr",
254
+ "mintKey": "spyK8TuzAF1iwcJtzysb7J5u8e4yymtpUMhVLZrKz2r",
255
+ "decimals": 9,
256
+ "usdPrecision": 4,
257
+ "tokenPrecision": 4,
258
+ "isStable": false,
259
+ "isVirtual": false,
260
+ "lazerId": -1,
261
+ "pythTicker": "Equity.US.SPY/USD.POST",
262
+ "pythPriceId": "0x5374a7d76a45ae2443cef351d10482b7bcc6ef5a928e75030d63b5fb3abe7cb5",
263
+ "isToken2022": true
264
+ },
265
+ ];
File without changes
File without changes
File without changes
File without changes