flash-sdk 2.54.10-alpha.0 → 2.54.12-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.
- 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 +14 -17
- package/dist/PoolAccount.d.ts +0 -1
- 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/idl/perpetuals.d.ts +19 -34
- package/dist/idl/perpetuals.js +19 -34
- 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.");
|
@@ -2623,7 +2623,7 @@ var PerpetualsClient = (function () {
|
|
2623
2623
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
2624
2624
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
2625
2625
|
systemProgram: web3_js_1.SystemProgram.programId,
|
2626
|
-
|
2626
|
+
fundingTokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
2627
2627
|
eventAuthority: this.eventAuthority.publicKey,
|
2628
2628
|
program: this.programId,
|
2629
2629
|
transferAuthority: this.authority.publicKey,
|
@@ -2726,7 +2726,6 @@ var PerpetualsClient = (function () {
|
|
2726
2726
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
2727
2727
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
2728
2728
|
eventAuthority: this.eventAuthority.publicKey,
|
2729
|
-
tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
|
2730
2729
|
program: this.programId,
|
2731
2730
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
2732
2731
|
collateralMint: collateralCustodyConfig.mintKey,
|
@@ -2891,7 +2890,6 @@ var PerpetualsClient = (function () {
|
|
2891
2890
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
2892
2891
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
2893
2892
|
systemProgram: web3_js_1.SystemProgram.programId,
|
2894
|
-
tokenProgram: poolConfig.getTokenFromSymbol(collateralTokenSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
2895
2893
|
eventAuthority: this.eventAuthority.publicKey,
|
2896
2894
|
program: this.programId,
|
2897
2895
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
@@ -3137,7 +3135,7 @@ var PerpetualsClient = (function () {
|
|
3137
3135
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
3138
3136
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
3139
3137
|
eventAuthority: this.eventAuthority.publicKey,
|
3140
|
-
|
3138
|
+
fundingTokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
3141
3139
|
program: this.programId,
|
3142
3140
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
3143
3141
|
fundingMint: collateralCustodyConfig.mintKey
|
@@ -3257,7 +3255,7 @@ var PerpetualsClient = (function () {
|
|
3257
3255
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
3258
3256
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
3259
3257
|
eventAuthority: this.eventAuthority.publicKey,
|
3260
|
-
|
3258
|
+
fundingTokenProgram: poolConfig.getTokenFromSymbol(inputSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
3261
3259
|
program: this.programId,
|
3262
3260
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
3263
3261
|
fundingMint: collateralCustodyConfig.mintKey,
|
@@ -3359,7 +3357,7 @@ var PerpetualsClient = (function () {
|
|
3359
3357
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
3360
3358
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
3361
3359
|
eventAuthority: this.eventAuthority.publicKey,
|
3362
|
-
|
3360
|
+
receivingTokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
3363
3361
|
program: this.programId,
|
3364
3362
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
3365
3363
|
receivingMint: collateralCustodyConfig.mintKey
|
@@ -3468,7 +3466,6 @@ var PerpetualsClient = (function () {
|
|
3468
3466
|
dispensingCustody: outputCustodyConfig.custodyAccount,
|
3469
3467
|
dispensingOracleAccount: this.useExtOracleAccount ? outputCustodyConfig.extOracleAccount : outputCustodyConfig.intOracleAccount,
|
3470
3468
|
dispensingCustodyTokenAccount: outputCustodyConfig.tokenAccount,
|
3471
|
-
tokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
3472
3469
|
eventAuthority: this.eventAuthority.publicKey,
|
3473
3470
|
program: this.programId,
|
3474
3471
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
@@ -3535,7 +3532,7 @@ var PerpetualsClient = (function () {
|
|
3535
3532
|
collateralCustody: collateralCustodyConfig.custodyAccount,
|
3536
3533
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
3537
3534
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
3538
|
-
|
3535
|
+
collateralTokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
3539
3536
|
eventAuthority: this.eventAuthority.publicKey,
|
3540
3537
|
program: this.programId,
|
3541
3538
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
@@ -3600,7 +3597,7 @@ var PerpetualsClient = (function () {
|
|
3600
3597
|
collateralCustody: collateralCustodyConfig.custodyAccount,
|
3601
3598
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
3602
3599
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
3603
|
-
|
3600
|
+
collateralTokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
3604
3601
|
eventAuthority: this.eventAuthority.publicKey,
|
3605
3602
|
program: this.programId,
|
3606
3603
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
@@ -6064,7 +6061,7 @@ var PerpetualsClient = (function () {
|
|
6064
6061
|
collateralCustody: collateralCustodyConfig.custodyAccount,
|
6065
6062
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
6066
6063
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
6067
|
-
tokenProgram: spl_token_1.TOKEN_PROGRAM_ID,
|
6064
|
+
tokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
6068
6065
|
eventAuthority: this.eventAuthority.publicKey,
|
6069
6066
|
program: this.programId,
|
6070
6067
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
@@ -6191,7 +6188,7 @@ var PerpetualsClient = (function () {
|
|
6191
6188
|
reserveCustodyTokenAccount: reserveCustodyConfig.tokenAccount,
|
6192
6189
|
receiveCustody: receiveCustodyConfig.custodyAccount,
|
6193
6190
|
systemProgram: web3_js_1.SystemProgram.programId,
|
6194
|
-
|
6191
|
+
fundingTokenProgram: poolConfig.getTokenFromSymbol(reserveSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
6195
6192
|
eventAuthority: this.eventAuthority.publicKey,
|
6196
6193
|
program: this.programId,
|
6197
6194
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
@@ -6299,7 +6296,7 @@ var PerpetualsClient = (function () {
|
|
6299
6296
|
reserveOracleAccount: this.useExtOracleAccount ? reserveCustodyConfig.extOracleAccount : reserveCustodyConfig.intOracleAccount,
|
6300
6297
|
reserveCustodyTokenAccount: reserveCustodyConfig.tokenAccount,
|
6301
6298
|
receiveCustody: receiveCustodyConfig.custodyAccount,
|
6302
|
-
|
6299
|
+
receivingTokenProgram: poolConfig.getTokenFromSymbol(reserveSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
6303
6300
|
eventAuthority: this.eventAuthority.publicKey,
|
6304
6301
|
program: this.programId,
|
6305
6302
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
@@ -6368,7 +6365,7 @@ var PerpetualsClient = (function () {
|
|
6368
6365
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
6369
6366
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
6370
6367
|
systemProgram: web3_js_1.SystemProgram.programId,
|
6371
|
-
|
6368
|
+
collateralTokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
6372
6369
|
eventAuthority: this.eventAuthority.publicKey,
|
6373
6370
|
program: this.programId,
|
6374
6371
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
@@ -6441,7 +6438,7 @@ var PerpetualsClient = (function () {
|
|
6441
6438
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
6442
6439
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
6443
6440
|
systemProgram: web3_js_1.SystemProgram.programId,
|
6444
|
-
|
6441
|
+
collateralTokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
6445
6442
|
eventAuthority: this.eventAuthority.publicKey,
|
6446
6443
|
program: this.programId,
|
6447
6444
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
@@ -6857,7 +6854,7 @@ var PerpetualsClient = (function () {
|
|
6857
6854
|
collateralCustody: collateralCustodyConfig.custodyAccount,
|
6858
6855
|
collateralOracleAccount: this.useExtOracleAccount ? collateralCustodyConfig.extOracleAccount : collateralCustodyConfig.intOracleAccount,
|
6859
6856
|
collateralCustodyTokenAccount: collateralCustodyConfig.tokenAccount,
|
6860
|
-
|
6857
|
+
receivingTokenProgram: poolConfig.getTokenFromSymbol(collateralSymbol).isToken2022 ? spl_token_1.TOKEN_2022_PROGRAM_ID : spl_token_1.TOKEN_PROGRAM_ID,
|
6861
6858
|
eventAuthority: this.eventAuthority.publicKey,
|
6862
6859
|
program: this.programId,
|
6863
6860
|
ixSysvar: web3_js_1.SYSVAR_INSTRUCTIONS_PUBKEY,
|
package/dist/PoolAccount.d.ts
CHANGED
package/dist/PoolDataClient.d.ts
CHANGED
package/dist/TradingAccount.d.ts
CHANGED
package/dist/ViewHelper.js
CHANGED
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
9
9
|
});
|
10
10
|
};
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
13
|
-
return g =
|
12
|
+
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);
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
15
|
function step(op) {
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
package/dist/backupOracle.js
CHANGED
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
9
9
|
});
|
10
10
|
};
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
13
|
-
return g =
|
12
|
+
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);
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
15
|
function step(op) {
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
@@ -40,7 +40,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
40
40
|
};
|
41
41
|
var _a;
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
43
|
-
exports.
|
43
|
+
exports.getBackupOracleInstruction = exports.getPythnetOraclePrices = exports.pythPriceServiceConnection = exports.API_ENDPOINT = void 0;
|
44
|
+
exports.createBackupOracleInstruction = createBackupOracleInstruction;
|
44
45
|
var price_service_client_1 = require("@pythnetwork/price-service-client");
|
45
46
|
var web3_js_1 = require("@solana/web3.js");
|
46
47
|
var bn_js_1 = __importDefault(require("bn.js"));
|
@@ -156,4 +157,3 @@ function createBackupOracleInstruction(poolAddress_1) {
|
|
156
157
|
});
|
157
158
|
});
|
158
159
|
}
|
159
|
-
exports.createBackupOracleInstruction = createBackupOracleInstruction;
|
package/dist/idl/perpetuals.d.ts
CHANGED
@@ -2032,7 +2032,7 @@ export type Perpetuals = {
|
|
2032
2032
|
"isSigner": false;
|
2033
2033
|
},
|
2034
2034
|
{
|
2035
|
-
"name": "
|
2035
|
+
"name": "fundingTokenProgram";
|
2036
2036
|
"isMut": false;
|
2037
2037
|
"isSigner": false;
|
2038
2038
|
},
|
@@ -2155,7 +2155,7 @@ export type Perpetuals = {
|
|
2155
2155
|
"isSigner": false;
|
2156
2156
|
},
|
2157
2157
|
{
|
2158
|
-
"name": "
|
2158
|
+
"name": "fundingTokenProgram";
|
2159
2159
|
"isMut": false;
|
2160
2160
|
"isSigner": false;
|
2161
2161
|
},
|
@@ -2179,11 +2179,6 @@ export type Perpetuals = {
|
|
2179
2179
|
"isMut": false;
|
2180
2180
|
"isSigner": false;
|
2181
2181
|
},
|
2182
|
-
{
|
2183
|
-
"name": "fundingTokenProgram";
|
2184
|
-
"isMut": false;
|
2185
|
-
"isSigner": false;
|
2186
|
-
},
|
2187
2182
|
{
|
2188
2183
|
"name": "collateralMint";
|
2189
2184
|
"isMut": false;
|
@@ -2293,27 +2288,27 @@ export type Perpetuals = {
|
|
2293
2288
|
"isSigner": false;
|
2294
2289
|
},
|
2295
2290
|
{
|
2296
|
-
"name": "
|
2291
|
+
"name": "receivingTokenProgram";
|
2297
2292
|
"isMut": false;
|
2298
2293
|
"isSigner": false;
|
2299
2294
|
},
|
2300
2295
|
{
|
2301
|
-
"name": "
|
2296
|
+
"name": "eventAuthority";
|
2302
2297
|
"isMut": false;
|
2303
2298
|
"isSigner": false;
|
2304
2299
|
},
|
2305
2300
|
{
|
2306
|
-
"name": "
|
2301
|
+
"name": "program";
|
2307
2302
|
"isMut": false;
|
2308
2303
|
"isSigner": false;
|
2309
2304
|
},
|
2310
2305
|
{
|
2311
|
-
"name": "
|
2306
|
+
"name": "ixSysvar";
|
2312
2307
|
"isMut": false;
|
2313
2308
|
"isSigner": false;
|
2314
2309
|
},
|
2315
2310
|
{
|
2316
|
-
"name": "
|
2311
|
+
"name": "receivingMint";
|
2317
2312
|
"isMut": false;
|
2318
2313
|
"isSigner": false;
|
2319
2314
|
},
|
@@ -4207,7 +4202,7 @@ export type Perpetuals = {
|
|
4207
4202
|
"isSigner": false;
|
4208
4203
|
},
|
4209
4204
|
{
|
4210
|
-
"name": "
|
4205
|
+
"name": "fundingTokenProgram";
|
4211
4206
|
"isMut": false;
|
4212
4207
|
"isSigner": false;
|
4213
4208
|
},
|
@@ -4373,7 +4368,7 @@ export type Perpetuals = {
|
|
4373
4368
|
"isSigner": false;
|
4374
4369
|
},
|
4375
4370
|
{
|
4376
|
-
"name": "
|
4371
|
+
"name": "fundingTokenProgram";
|
4377
4372
|
"isMut": false;
|
4378
4373
|
"isSigner": false;
|
4379
4374
|
},
|
@@ -4496,7 +4491,7 @@ export type Perpetuals = {
|
|
4496
4491
|
"isSigner": false;
|
4497
4492
|
},
|
4498
4493
|
{
|
4499
|
-
"name": "
|
4494
|
+
"name": "receivingTokenProgram";
|
4500
4495
|
"isMut": false;
|
4501
4496
|
"isSigner": false;
|
4502
4497
|
},
|
@@ -4520,11 +4515,6 @@ export type Perpetuals = {
|
|
4520
4515
|
"isMut": false;
|
4521
4516
|
"isSigner": false;
|
4522
4517
|
},
|
4523
|
-
{
|
4524
|
-
"name": "receivingTokenProgram";
|
4525
|
-
"isMut": false;
|
4526
|
-
"isSigner": false;
|
4527
|
-
},
|
4528
4518
|
{
|
4529
4519
|
"name": "collateralMint";
|
4530
4520
|
"isMut": false;
|
@@ -4609,7 +4599,7 @@ export type Perpetuals = {
|
|
4609
4599
|
"isSigner": false;
|
4610
4600
|
},
|
4611
4601
|
{
|
4612
|
-
"name": "
|
4602
|
+
"name": "receivingTokenProgram";
|
4613
4603
|
"isMut": false;
|
4614
4604
|
"isSigner": false;
|
4615
4605
|
},
|
@@ -4703,7 +4693,7 @@ export type Perpetuals = {
|
|
4703
4693
|
"isSigner": false;
|
4704
4694
|
},
|
4705
4695
|
{
|
4706
|
-
"name": "
|
4696
|
+
"name": "collateralTokenProgram";
|
4707
4697
|
"isMut": false;
|
4708
4698
|
"isSigner": false;
|
4709
4699
|
},
|
@@ -4796,7 +4786,7 @@ export type Perpetuals = {
|
|
4796
4786
|
"isSigner": false;
|
4797
4787
|
},
|
4798
4788
|
{
|
4799
|
-
"name": "
|
4789
|
+
"name": "collateralTokenProgram";
|
4800
4790
|
"isMut": false;
|
4801
4791
|
"isSigner": false;
|
4802
4792
|
},
|
@@ -4996,7 +4986,7 @@ export type Perpetuals = {
|
|
4996
4986
|
"isSigner": false;
|
4997
4987
|
},
|
4998
4988
|
{
|
4999
|
-
"name": "
|
4989
|
+
"name": "collateralTokenProgram";
|
5000
4990
|
"isMut": false;
|
5001
4991
|
"isSigner": false;
|
5002
4992
|
},
|
@@ -5019,11 +5009,6 @@ export type Perpetuals = {
|
|
5019
5009
|
"name": "collateralMint";
|
5020
5010
|
"isMut": false;
|
5021
5011
|
"isSigner": false;
|
5022
|
-
},
|
5023
|
-
{
|
5024
|
-
"name": "collateralTokenProgram";
|
5025
|
-
"isMut": false;
|
5026
|
-
"isSigner": false;
|
5027
5012
|
}
|
5028
5013
|
];
|
5029
5014
|
"args": [
|
@@ -5219,7 +5204,7 @@ export type Perpetuals = {
|
|
5219
5204
|
"isSigner": false;
|
5220
5205
|
},
|
5221
5206
|
{
|
5222
|
-
"name": "
|
5207
|
+
"name": "collateralTokenProgram";
|
5223
5208
|
"isMut": false;
|
5224
5209
|
"isSigner": false;
|
5225
5210
|
},
|
@@ -5327,7 +5312,7 @@ export type Perpetuals = {
|
|
5327
5312
|
"isSigner": false;
|
5328
5313
|
},
|
5329
5314
|
{
|
5330
|
-
"name": "
|
5315
|
+
"name": "collateralTokenProgram";
|
5331
5316
|
"isMut": false;
|
5332
5317
|
"isSigner": false;
|
5333
5318
|
},
|
@@ -5440,7 +5425,7 @@ export type Perpetuals = {
|
|
5440
5425
|
"isSigner": false;
|
5441
5426
|
},
|
5442
5427
|
{
|
5443
|
-
"name": "
|
5428
|
+
"name": "fundingTokenProgram";
|
5444
5429
|
"isMut": false;
|
5445
5430
|
"isSigner": false;
|
5446
5431
|
},
|
@@ -5553,7 +5538,7 @@ export type Perpetuals = {
|
|
5553
5538
|
"isSigner": false;
|
5554
5539
|
},
|
5555
5540
|
{
|
5556
|
-
"name": "
|
5541
|
+
"name": "receivingTokenProgram";
|
5557
5542
|
"isMut": false;
|
5558
5543
|
"isSigner": false;
|
5559
5544
|
},
|
@@ -5975,7 +5960,7 @@ export type Perpetuals = {
|
|
5975
5960
|
"isSigner": false;
|
5976
5961
|
},
|
5977
5962
|
{
|
5978
|
-
"name": "
|
5963
|
+
"name": "receivingTokenProgram";
|
5979
5964
|
"isMut": false;
|
5980
5965
|
"isSigner": false;
|
5981
5966
|
},
|
package/dist/idl/perpetuals.js
CHANGED
@@ -2035,7 +2035,7 @@ exports.IDL = {
|
|
2035
2035
|
"isSigner": false
|
2036
2036
|
},
|
2037
2037
|
{
|
2038
|
-
"name": "
|
2038
|
+
"name": "fundingTokenProgram",
|
2039
2039
|
"isMut": false,
|
2040
2040
|
"isSigner": false
|
2041
2041
|
},
|
@@ -2158,7 +2158,7 @@ exports.IDL = {
|
|
2158
2158
|
"isSigner": false
|
2159
2159
|
},
|
2160
2160
|
{
|
2161
|
-
"name": "
|
2161
|
+
"name": "fundingTokenProgram",
|
2162
2162
|
"isMut": false,
|
2163
2163
|
"isSigner": false
|
2164
2164
|
},
|
@@ -2182,11 +2182,6 @@ exports.IDL = {
|
|
2182
2182
|
"isMut": false,
|
2183
2183
|
"isSigner": false
|
2184
2184
|
},
|
2185
|
-
{
|
2186
|
-
"name": "fundingTokenProgram",
|
2187
|
-
"isMut": false,
|
2188
|
-
"isSigner": false
|
2189
|
-
},
|
2190
2185
|
{
|
2191
2186
|
"name": "collateralMint",
|
2192
2187
|
"isMut": false,
|
@@ -2296,27 +2291,27 @@ exports.IDL = {
|
|
2296
2291
|
"isSigner": false
|
2297
2292
|
},
|
2298
2293
|
{
|
2299
|
-
"name": "
|
2294
|
+
"name": "receivingTokenProgram",
|
2300
2295
|
"isMut": false,
|
2301
2296
|
"isSigner": false
|
2302
2297
|
},
|
2303
2298
|
{
|
2304
|
-
"name": "
|
2299
|
+
"name": "eventAuthority",
|
2305
2300
|
"isMut": false,
|
2306
2301
|
"isSigner": false
|
2307
2302
|
},
|
2308
2303
|
{
|
2309
|
-
"name": "
|
2304
|
+
"name": "program",
|
2310
2305
|
"isMut": false,
|
2311
2306
|
"isSigner": false
|
2312
2307
|
},
|
2313
2308
|
{
|
2314
|
-
"name": "
|
2309
|
+
"name": "ixSysvar",
|
2315
2310
|
"isMut": false,
|
2316
2311
|
"isSigner": false
|
2317
2312
|
},
|
2318
2313
|
{
|
2319
|
-
"name": "
|
2314
|
+
"name": "receivingMint",
|
2320
2315
|
"isMut": false,
|
2321
2316
|
"isSigner": false
|
2322
2317
|
},
|
@@ -4210,7 +4205,7 @@ exports.IDL = {
|
|
4210
4205
|
"isSigner": false
|
4211
4206
|
},
|
4212
4207
|
{
|
4213
|
-
"name": "
|
4208
|
+
"name": "fundingTokenProgram",
|
4214
4209
|
"isMut": false,
|
4215
4210
|
"isSigner": false
|
4216
4211
|
},
|
@@ -4376,7 +4371,7 @@ exports.IDL = {
|
|
4376
4371
|
"isSigner": false
|
4377
4372
|
},
|
4378
4373
|
{
|
4379
|
-
"name": "
|
4374
|
+
"name": "fundingTokenProgram",
|
4380
4375
|
"isMut": false,
|
4381
4376
|
"isSigner": false
|
4382
4377
|
},
|
@@ -4499,7 +4494,7 @@ exports.IDL = {
|
|
4499
4494
|
"isSigner": false
|
4500
4495
|
},
|
4501
4496
|
{
|
4502
|
-
"name": "
|
4497
|
+
"name": "receivingTokenProgram",
|
4503
4498
|
"isMut": false,
|
4504
4499
|
"isSigner": false
|
4505
4500
|
},
|
@@ -4523,11 +4518,6 @@ exports.IDL = {
|
|
4523
4518
|
"isMut": false,
|
4524
4519
|
"isSigner": false
|
4525
4520
|
},
|
4526
|
-
{
|
4527
|
-
"name": "receivingTokenProgram",
|
4528
|
-
"isMut": false,
|
4529
|
-
"isSigner": false
|
4530
|
-
},
|
4531
4521
|
{
|
4532
4522
|
"name": "collateralMint",
|
4533
4523
|
"isMut": false,
|
@@ -4612,7 +4602,7 @@ exports.IDL = {
|
|
4612
4602
|
"isSigner": false
|
4613
4603
|
},
|
4614
4604
|
{
|
4615
|
-
"name": "
|
4605
|
+
"name": "receivingTokenProgram",
|
4616
4606
|
"isMut": false,
|
4617
4607
|
"isSigner": false
|
4618
4608
|
},
|
@@ -4706,7 +4696,7 @@ exports.IDL = {
|
|
4706
4696
|
"isSigner": false
|
4707
4697
|
},
|
4708
4698
|
{
|
4709
|
-
"name": "
|
4699
|
+
"name": "collateralTokenProgram",
|
4710
4700
|
"isMut": false,
|
4711
4701
|
"isSigner": false
|
4712
4702
|
},
|
@@ -4799,7 +4789,7 @@ exports.IDL = {
|
|
4799
4789
|
"isSigner": false
|
4800
4790
|
},
|
4801
4791
|
{
|
4802
|
-
"name": "
|
4792
|
+
"name": "collateralTokenProgram",
|
4803
4793
|
"isMut": false,
|
4804
4794
|
"isSigner": false
|
4805
4795
|
},
|
@@ -4999,7 +4989,7 @@ exports.IDL = {
|
|
4999
4989
|
"isSigner": false
|
5000
4990
|
},
|
5001
4991
|
{
|
5002
|
-
"name": "
|
4992
|
+
"name": "collateralTokenProgram",
|
5003
4993
|
"isMut": false,
|
5004
4994
|
"isSigner": false
|
5005
4995
|
},
|
@@ -5022,11 +5012,6 @@ exports.IDL = {
|
|
5022
5012
|
"name": "collateralMint",
|
5023
5013
|
"isMut": false,
|
5024
5014
|
"isSigner": false
|
5025
|
-
},
|
5026
|
-
{
|
5027
|
-
"name": "collateralTokenProgram",
|
5028
|
-
"isMut": false,
|
5029
|
-
"isSigner": false
|
5030
5015
|
}
|
5031
5016
|
],
|
5032
5017
|
"args": [
|
@@ -5222,7 +5207,7 @@ exports.IDL = {
|
|
5222
5207
|
"isSigner": false
|
5223
5208
|
},
|
5224
5209
|
{
|
5225
|
-
"name": "
|
5210
|
+
"name": "collateralTokenProgram",
|
5226
5211
|
"isMut": false,
|
5227
5212
|
"isSigner": false
|
5228
5213
|
},
|
@@ -5330,7 +5315,7 @@ exports.IDL = {
|
|
5330
5315
|
"isSigner": false
|
5331
5316
|
},
|
5332
5317
|
{
|
5333
|
-
"name": "
|
5318
|
+
"name": "collateralTokenProgram",
|
5334
5319
|
"isMut": false,
|
5335
5320
|
"isSigner": false
|
5336
5321
|
},
|
@@ -5443,7 +5428,7 @@ exports.IDL = {
|
|
5443
5428
|
"isSigner": false
|
5444
5429
|
},
|
5445
5430
|
{
|
5446
|
-
"name": "
|
5431
|
+
"name": "fundingTokenProgram",
|
5447
5432
|
"isMut": false,
|
5448
5433
|
"isSigner": false
|
5449
5434
|
},
|
@@ -5556,7 +5541,7 @@ exports.IDL = {
|
|
5556
5541
|
"isSigner": false
|
5557
5542
|
},
|
5558
5543
|
{
|
5559
|
-
"name": "
|
5544
|
+
"name": "receivingTokenProgram",
|
5560
5545
|
"isMut": false,
|
5561
5546
|
"isSigner": false
|
5562
5547
|
},
|
@@ -5978,7 +5963,7 @@ exports.IDL = {
|
|
5978
5963
|
"isSigner": false
|
5979
5964
|
},
|
5980
5965
|
{
|
5981
|
-
"name": "
|
5966
|
+
"name": "receivingTokenProgram",
|
5982
5967
|
"isMut": false,
|
5983
5968
|
"isSigner": false
|
5984
5969
|
},
|