flash-sdk 8.0.1 → 9.0.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.
- package/dist/OraclePrice.d.ts +0 -1
- package/dist/OrderAccount.d.ts +0 -1
- package/dist/PerpetualsClient.d.ts +0 -2
- package/dist/PerpetualsClient.js +2 -2
- package/dist/PoolAccount.d.ts +0 -1
- package/dist/PoolConfig.d.ts +2 -0
- package/dist/PoolConfig.json +116 -6
- package/dist/PoolDataClient.d.ts +0 -1
- package/dist/PositionAccount.d.ts +0 -1
- package/dist/TokenStakeAccount.d.ts +0 -1
- package/dist/TokenVaultAccount.d.ts +0 -1
- package/dist/TradingAccount.d.ts +0 -1
- package/dist/ViewHelper.js +2 -2
- package/dist/backupOracle.js +4 -4
- package/dist/constants/index.d.ts +0 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +3 -3
- package/dist/utils/IdlCoder.js +17 -7
- package/dist/utils/alt.js +5 -6
- package/dist/utils/anchorCpiEvents.d.ts +0 -1
- package/dist/utils/anchorCpiEvents.js +4 -4
- package/dist/utils/index.js +6 -6
- package/dist/utils/rpc.js +9 -9
- package/package.json +1 -1
package/dist/OraclePrice.d.ts
CHANGED
package/dist/OrderAccount.d.ts
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
/// <reference types="bn.js" />
|
2
|
-
/// <reference types="node" />
|
3
1
|
import { Program, AnchorProvider, BN } from "@coral-xyz/anchor";
|
4
2
|
import { PublicKey, TransactionInstruction, Commitment, Signer, AddressLookupTableAccount, VersionedTransaction } from "@solana/web3.js";
|
5
3
|
import { PoolAccount } from "./PoolAccount";
|
package/dist/PerpetualsClient.js
CHANGED
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
20
20
|
});
|
21
21
|
};
|
22
22
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
24
|
-
return g =
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
24
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
26
26
|
function step(op) {
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
package/dist/PoolAccount.d.ts
CHANGED
package/dist/PoolConfig.d.ts
CHANGED
@@ -15,6 +15,7 @@ export interface CustodyConfig {
|
|
15
15
|
isVirtual: boolean;
|
16
16
|
intOracleAccount: PublicKey;
|
17
17
|
extOracleAccount: PublicKey;
|
18
|
+
lazerId: number;
|
18
19
|
pythTicker: string;
|
19
20
|
pythPriceId: string;
|
20
21
|
}
|
@@ -42,6 +43,7 @@ export type Token = {
|
|
42
43
|
tokenPrecision: number;
|
43
44
|
isStable: boolean;
|
44
45
|
isVirtual: boolean;
|
46
|
+
lazerId: number;
|
45
47
|
pythTicker: string;
|
46
48
|
pythPriceId: string;
|
47
49
|
isToken2022: boolean;
|