@reflectmoney/stable.ts 2.0.5 → 2.0.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/dist/classes/Stablecoin.d.ts +0 -8
- package/dist/classes/Stablecoin.js +0 -21
- package/dist/generated/reflect_main/accounts/DriftJlpController.d.ts +0 -4
- package/dist/generated/reflect_main/accounts/DriftJlpController.js +3 -7
- package/dist/generated/reflect_main/accounts/DriftLstController.d.ts +0 -4
- package/dist/generated/reflect_main/accounts/DriftLstController.js +3 -7
- package/dist/generated/reflect_main/accounts/DriftUsdcController.d.ts +0 -5
- package/dist/generated/reflect_main/accounts/DriftUsdcController.js +3 -7
- package/dist/generated/reflect_main/accounts/Main.js +1 -1
- package/dist/generated/reflect_main/accounts/PerpMarket.js +1 -1
- package/dist/generated/reflect_main/accounts/PrelaunchOracle.js +1 -1
- package/dist/generated/reflect_main/accounts/PythLazerOracle.js +1 -1
- package/dist/generated/reflect_main/accounts/RebalanceLst.js +1 -1
- package/dist/generated/reflect_main/accounts/SpotMarket.js +1 -1
- package/dist/generated/reflect_main/accounts/User.d.ts +1 -1
- package/dist/generated/reflect_main/accounts/User.js +1 -1
- package/dist/generated/reflect_main/accounts/UserPermissions.js +1 -1
- package/dist/generated/reflect_main/accounts/UserStats.js +1 -1
- package/dist/generated/reflect_main/index.d.ts +1 -1
- package/dist/generated/reflect_main/index.js +1 -1
- package/dist/generated/reflect_main/instructions/addLstDrift.js +1 -1
- package/dist/generated/reflect_main/instructions/addSubAccount.js +1 -1
- package/dist/generated/reflect_main/instructions/captureSpreadDrift.js +1 -1
- package/dist/generated/reflect_main/instructions/createAdminAccount.js +1 -1
- package/dist/generated/reflect_main/instructions/createUserStatsAccount.js +1 -1
- package/dist/generated/reflect_main/instructions/depositDrift.js +1 -1
- package/dist/generated/reflect_main/instructions/freezeProgram.js +1 -1
- package/dist/generated/reflect_main/instructions/freezeProtocolAction.js +1 -1
- package/dist/generated/reflect_main/instructions/freezeStrategyAction.js +1 -1
- package/dist/generated/reflect_main/instructions/increaseAdminSize.js +1 -1
- package/dist/generated/reflect_main/instructions/index.d.ts +0 -1
- package/dist/generated/reflect_main/instructions/index.js +0 -1
- package/dist/generated/reflect_main/instructions/initDriftAccountsS1.js +1 -1
- package/dist/generated/reflect_main/instructions/initDriftControllerS1.js +1 -1
- package/dist/generated/reflect_main/instructions/initDriftControllerS3.js +1 -1
- package/dist/generated/reflect_main/instructions/initMain.js +1 -1
- package/dist/generated/reflect_main/instructions/mintDriftS1.js +1 -1
- package/dist/generated/reflect_main/instructions/mintDriftS3.js +1 -1
- package/dist/generated/reflect_main/instructions/processSwapDeposit.js +1 -1
- package/dist/generated/reflect_main/instructions/processSwapWithdraw.js +1 -1
- package/dist/generated/reflect_main/instructions/redeemDriftS1.js +1 -1
- package/dist/generated/reflect_main/instructions/redeemDriftS3.js +1 -1
- package/dist/generated/reflect_main/instructions/settlePnl.js +1 -1
- package/dist/generated/reflect_main/instructions/settlePnlMulti.js +1 -1
- package/dist/generated/reflect_main/instructions/suspendSplProtocol.js +1 -1
- package/dist/generated/reflect_main/instructions/suspendSplStrategy.js +1 -1
- package/dist/generated/reflect_main/instructions/swapOrca.js +1 -1
- package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.js +1 -1
- package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.js +1 -1
- package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.js +1 -1
- package/dist/generated/reflect_main/instructions/updateAttenuation.js +1 -1
- package/dist/generated/reflect_main/instructions/updateCap.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRecipients.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.js +1 -1
- package/dist/generated/reflect_main/types/AutoCompound.d.ts +1 -1
- package/dist/generated/reflect_main/types/AutoCompound.js +1 -1
- package/dist/generated/reflect_main/types/Strategy.d.ts +0 -1
- package/dist/generated/reflect_main/types/Strategy.js +0 -1
- package/dist/generated/reflect_main/types/index.d.ts +0 -1
- package/dist/generated/reflect_main/types/index.js +0 -1
- package/package.json +1 -1
|
@@ -115,14 +115,6 @@ export declare abstract class Stablecoin<T extends Controller> {
|
|
|
115
115
|
* @returns Promise resolving to an array of TransactionInstruction objects
|
|
116
116
|
*/
|
|
117
117
|
initializeStablecoin(signer: PublicKey, tokenKeypair: Keypair, metadata?: StablecoinMetadata): Promise<TransactionInstruction[]>;
|
|
118
|
-
/**
|
|
119
|
-
* Updates the rebalance slippage tolerance for this stablecoin strategy.
|
|
120
|
-
*
|
|
121
|
-
* @param signer - Public key of the admin signer
|
|
122
|
-
* @param slippage - New slippage tolerance value
|
|
123
|
-
* @returns Promise resolving to a TransactionInstruction
|
|
124
|
-
*/
|
|
125
|
-
updateRebalanceSlippage(signer: PublicKey, slippage: number): Promise<TransactionInstruction>;
|
|
126
118
|
/**
|
|
127
119
|
* Fetches the current price of a collateral asset from Pyth oracle.
|
|
128
120
|
*
|
|
@@ -305,27 +305,6 @@ class Stablecoin {
|
|
|
305
305
|
return instructions;
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
/**
|
|
309
|
-
* Updates the rebalance slippage tolerance for this stablecoin strategy.
|
|
310
|
-
*
|
|
311
|
-
* @param signer - Public key of the admin signer
|
|
312
|
-
* @param slippage - New slippage tolerance value
|
|
313
|
-
* @returns Promise resolving to a TransactionInstruction
|
|
314
|
-
*/
|
|
315
|
-
updateRebalanceSlippage(signer, slippage) {
|
|
316
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
-
const ix = (0, reflect_main_1.createUpdateRebalanceSlippageInstruction)({
|
|
318
|
-
admin: signer,
|
|
319
|
-
main: PdaClient_1.PdaClient.deriveMain(),
|
|
320
|
-
adminPermissions: PdaClient_1.PdaClient.derivePermissions(signer),
|
|
321
|
-
systemProgram: web3_js_1.SystemProgram.programId,
|
|
322
|
-
strategy: this.controllerKey
|
|
323
|
-
}, {
|
|
324
|
-
slippage
|
|
325
|
-
}, reflect_main_1.PROGRAM_ID);
|
|
326
|
-
return ix;
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
308
|
/**
|
|
330
309
|
* Fetches the current price of a collateral asset from Pyth oracle.
|
|
331
310
|
*
|
|
@@ -8,7 +8,6 @@ import * as web3 from '@solana/web3.js';
|
|
|
8
8
|
import * as beet from '@metaplex-foundation/beet';
|
|
9
9
|
import * as beetSolana from '@metaplex-foundation/beet-solana';
|
|
10
10
|
import { Strategy } from '../types/Strategy';
|
|
11
|
-
import { DriftControllerBase } from '../types/DriftControllerBase';
|
|
12
11
|
import { PerpHedge } from '../types/PerpHedge';
|
|
13
12
|
import { JlpRebalanceSettings } from '../types/JlpRebalanceSettings';
|
|
14
13
|
/**
|
|
@@ -18,7 +17,6 @@ import { JlpRebalanceSettings } from '../types/JlpRebalanceSettings';
|
|
|
18
17
|
*/
|
|
19
18
|
export type DriftJlpControllerArgs = {
|
|
20
19
|
baseStrategy: Strategy;
|
|
21
|
-
baseDrift: DriftControllerBase;
|
|
22
20
|
jlpMarketIndex: number;
|
|
23
21
|
driftPerpMarketsHedge: PerpHedge[];
|
|
24
22
|
jlpMint: web3.PublicKey;
|
|
@@ -34,7 +32,6 @@ export declare const driftJlpControllerDiscriminator: number[];
|
|
|
34
32
|
*/
|
|
35
33
|
export declare class DriftJlpController implements DriftJlpControllerArgs {
|
|
36
34
|
readonly baseStrategy: Strategy;
|
|
37
|
-
readonly baseDrift: DriftControllerBase;
|
|
38
35
|
readonly jlpMarketIndex: number;
|
|
39
36
|
readonly driftPerpMarketsHedge: PerpHedge[];
|
|
40
37
|
readonly jlpMint: web3.PublicKey;
|
|
@@ -98,7 +95,6 @@ export declare class DriftJlpController implements DriftJlpControllerArgs {
|
|
|
98
95
|
*/
|
|
99
96
|
pretty(): {
|
|
100
97
|
baseStrategy: Strategy;
|
|
101
|
-
baseDrift: DriftControllerBase;
|
|
102
98
|
jlpMarketIndex: number;
|
|
103
99
|
driftPerpMarketsHedge: PerpHedge[];
|
|
104
100
|
jlpMint: string;
|
|
@@ -43,7 +43,6 @@ const web3 = __importStar(require("@solana/web3.js"));
|
|
|
43
43
|
const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
44
44
|
const beetSolana = __importStar(require("@metaplex-foundation/beet-solana"));
|
|
45
45
|
const Strategy_1 = require("../types/Strategy");
|
|
46
|
-
const DriftControllerBase_1 = require("../types/DriftControllerBase");
|
|
47
46
|
const PerpHedge_1 = require("../types/PerpHedge");
|
|
48
47
|
const JlpRebalanceSettings_1 = require("../types/JlpRebalanceSettings");
|
|
49
48
|
exports.driftJlpControllerDiscriminator = [55, 62, 4, 59, 216, 18, 89, 118];
|
|
@@ -55,9 +54,8 @@ exports.driftJlpControllerDiscriminator = [55, 62, 4, 59, 216, 18, 89, 118];
|
|
|
55
54
|
* @category generated
|
|
56
55
|
*/
|
|
57
56
|
class DriftJlpController {
|
|
58
|
-
constructor(baseStrategy,
|
|
57
|
+
constructor(baseStrategy, jlpMarketIndex, driftPerpMarketsHedge, jlpMint, rebalanceSettings) {
|
|
59
58
|
this.baseStrategy = baseStrategy;
|
|
60
|
-
this.baseDrift = baseDrift;
|
|
61
59
|
this.jlpMarketIndex = jlpMarketIndex;
|
|
62
60
|
this.driftPerpMarketsHedge = driftPerpMarketsHedge;
|
|
63
61
|
this.jlpMint = jlpMint;
|
|
@@ -67,7 +65,7 @@ class DriftJlpController {
|
|
|
67
65
|
* Creates a {@link DriftJlpController} instance from the provided args.
|
|
68
66
|
*/
|
|
69
67
|
static fromArgs(args) {
|
|
70
|
-
return new DriftJlpController(args.baseStrategy, args.
|
|
68
|
+
return new DriftJlpController(args.baseStrategy, args.jlpMarketIndex, args.driftPerpMarketsHedge, args.jlpMint, args.rebalanceSettings);
|
|
71
69
|
}
|
|
72
70
|
/**
|
|
73
71
|
* Deserializes the {@link DriftJlpController} from the data of the provided {@link web3.AccountInfo}.
|
|
@@ -97,7 +95,7 @@ class DriftJlpController {
|
|
|
97
95
|
*
|
|
98
96
|
* @param programId - the program that owns the accounts we are filtering
|
|
99
97
|
*/
|
|
100
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
98
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
101
99
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.driftJlpControllerBeet);
|
|
102
100
|
}
|
|
103
101
|
/**
|
|
@@ -145,7 +143,6 @@ class DriftJlpController {
|
|
|
145
143
|
pretty() {
|
|
146
144
|
return {
|
|
147
145
|
baseStrategy: this.baseStrategy,
|
|
148
|
-
baseDrift: this.baseDrift,
|
|
149
146
|
jlpMarketIndex: this.jlpMarketIndex,
|
|
150
147
|
driftPerpMarketsHedge: this.driftPerpMarketsHedge,
|
|
151
148
|
jlpMint: this.jlpMint.toBase58(),
|
|
@@ -161,7 +158,6 @@ exports.DriftJlpController = DriftJlpController;
|
|
|
161
158
|
exports.driftJlpControllerBeet = new beet.FixableBeetStruct([
|
|
162
159
|
['accountDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
163
160
|
['baseStrategy', Strategy_1.strategyBeet],
|
|
164
|
-
['baseDrift', DriftControllerBase_1.driftControllerBaseBeet],
|
|
165
161
|
['jlpMarketIndex', beet.u16],
|
|
166
162
|
['driftPerpMarketsHedge', beet.array(PerpHedge_1.perpHedgeBeet)],
|
|
167
163
|
['jlpMint', beetSolana.publicKey],
|
|
@@ -8,7 +8,6 @@ import * as beet from '@metaplex-foundation/beet';
|
|
|
8
8
|
import * as web3 from '@solana/web3.js';
|
|
9
9
|
import * as beetSolana from '@metaplex-foundation/beet-solana';
|
|
10
10
|
import { Strategy } from '../types/Strategy';
|
|
11
|
-
import { DriftControllerBase } from '../types/DriftControllerBase';
|
|
12
11
|
import { DriftLstData } from '../types/DriftLstData';
|
|
13
12
|
import { SubAccount } from '../types/SubAccount';
|
|
14
13
|
/**
|
|
@@ -18,7 +17,6 @@ import { SubAccount } from '../types/SubAccount';
|
|
|
18
17
|
*/
|
|
19
18
|
export type DriftLstControllerArgs = {
|
|
20
19
|
baseStrategy: Strategy;
|
|
21
|
-
baseDrift: DriftControllerBase;
|
|
22
20
|
lsts: DriftLstData[];
|
|
23
21
|
subAccounts: SubAccount[];
|
|
24
22
|
};
|
|
@@ -32,7 +30,6 @@ export declare const driftLstControllerDiscriminator: number[];
|
|
|
32
30
|
*/
|
|
33
31
|
export declare class DriftLstController implements DriftLstControllerArgs {
|
|
34
32
|
readonly baseStrategy: Strategy;
|
|
35
|
-
readonly baseDrift: DriftControllerBase;
|
|
36
33
|
readonly lsts: DriftLstData[];
|
|
37
34
|
readonly subAccounts: SubAccount[];
|
|
38
35
|
private constructor();
|
|
@@ -94,7 +91,6 @@ export declare class DriftLstController implements DriftLstControllerArgs {
|
|
|
94
91
|
*/
|
|
95
92
|
pretty(): {
|
|
96
93
|
baseStrategy: Strategy;
|
|
97
|
-
baseDrift: DriftControllerBase;
|
|
98
94
|
lsts: DriftLstData[];
|
|
99
95
|
subAccounts: SubAccount[];
|
|
100
96
|
};
|
|
@@ -43,7 +43,6 @@ const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
|
43
43
|
const web3 = __importStar(require("@solana/web3.js"));
|
|
44
44
|
const beetSolana = __importStar(require("@metaplex-foundation/beet-solana"));
|
|
45
45
|
const Strategy_1 = require("../types/Strategy");
|
|
46
|
-
const DriftControllerBase_1 = require("../types/DriftControllerBase");
|
|
47
46
|
const DriftLstData_1 = require("../types/DriftLstData");
|
|
48
47
|
const SubAccount_1 = require("../types/SubAccount");
|
|
49
48
|
exports.driftLstControllerDiscriminator = [
|
|
@@ -57,9 +56,8 @@ exports.driftLstControllerDiscriminator = [
|
|
|
57
56
|
* @category generated
|
|
58
57
|
*/
|
|
59
58
|
class DriftLstController {
|
|
60
|
-
constructor(baseStrategy,
|
|
59
|
+
constructor(baseStrategy, lsts, subAccounts) {
|
|
61
60
|
this.baseStrategy = baseStrategy;
|
|
62
|
-
this.baseDrift = baseDrift;
|
|
63
61
|
this.lsts = lsts;
|
|
64
62
|
this.subAccounts = subAccounts;
|
|
65
63
|
}
|
|
@@ -67,7 +65,7 @@ class DriftLstController {
|
|
|
67
65
|
* Creates a {@link DriftLstController} instance from the provided args.
|
|
68
66
|
*/
|
|
69
67
|
static fromArgs(args) {
|
|
70
|
-
return new DriftLstController(args.baseStrategy, args.
|
|
68
|
+
return new DriftLstController(args.baseStrategy, args.lsts, args.subAccounts);
|
|
71
69
|
}
|
|
72
70
|
/**
|
|
73
71
|
* Deserializes the {@link DriftLstController} from the data of the provided {@link web3.AccountInfo}.
|
|
@@ -97,7 +95,7 @@ class DriftLstController {
|
|
|
97
95
|
*
|
|
98
96
|
* @param programId - the program that owns the accounts we are filtering
|
|
99
97
|
*/
|
|
100
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
98
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
101
99
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.driftLstControllerBeet);
|
|
102
100
|
}
|
|
103
101
|
/**
|
|
@@ -145,7 +143,6 @@ class DriftLstController {
|
|
|
145
143
|
pretty() {
|
|
146
144
|
return {
|
|
147
145
|
baseStrategy: this.baseStrategy,
|
|
148
|
-
baseDrift: this.baseDrift,
|
|
149
146
|
lsts: this.lsts,
|
|
150
147
|
subAccounts: this.subAccounts,
|
|
151
148
|
};
|
|
@@ -159,7 +156,6 @@ exports.DriftLstController = DriftLstController;
|
|
|
159
156
|
exports.driftLstControllerBeet = new beet.FixableBeetStruct([
|
|
160
157
|
['accountDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
161
158
|
['baseStrategy', Strategy_1.strategyBeet],
|
|
162
|
-
['baseDrift', DriftControllerBase_1.driftControllerBaseBeet],
|
|
163
159
|
['lsts', beet.array(DriftLstData_1.driftLstDataBeet)],
|
|
164
160
|
['subAccounts', beet.array(SubAccount_1.subAccountBeet)],
|
|
165
161
|
], DriftLstController.fromArgs, 'DriftLstController');
|
|
@@ -8,7 +8,6 @@ import * as web3 from '@solana/web3.js';
|
|
|
8
8
|
import * as beet from '@metaplex-foundation/beet';
|
|
9
9
|
import * as beetSolana from '@metaplex-foundation/beet-solana';
|
|
10
10
|
import { Strategy } from '../types/Strategy';
|
|
11
|
-
import { DriftControllerBase } from '../types/DriftControllerBase';
|
|
12
11
|
import { AutoCompound } from '../types/AutoCompound';
|
|
13
12
|
/**
|
|
14
13
|
* Arguments used to create {@link DriftUsdcController}
|
|
@@ -17,7 +16,6 @@ import { AutoCompound } from '../types/AutoCompound';
|
|
|
17
16
|
*/
|
|
18
17
|
export type DriftUsdcControllerArgs = {
|
|
19
18
|
baseStrategy: Strategy;
|
|
20
|
-
baseDrift: DriftControllerBase;
|
|
21
19
|
compounder: AutoCompound;
|
|
22
20
|
};
|
|
23
21
|
export declare const driftUsdcControllerDiscriminator: number[];
|
|
@@ -30,7 +28,6 @@ export declare const driftUsdcControllerDiscriminator: number[];
|
|
|
30
28
|
*/
|
|
31
29
|
export declare class DriftUsdcController implements DriftUsdcControllerArgs {
|
|
32
30
|
readonly baseStrategy: Strategy;
|
|
33
|
-
readonly baseDrift: DriftControllerBase;
|
|
34
31
|
readonly compounder: AutoCompound;
|
|
35
32
|
private constructor();
|
|
36
33
|
/**
|
|
@@ -58,7 +55,6 @@ export declare class DriftUsdcController implements DriftUsdcControllerArgs {
|
|
|
58
55
|
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
|
|
59
56
|
accountDiscriminator: any;
|
|
60
57
|
baseStrategy: any;
|
|
61
|
-
baseDrift: any;
|
|
62
58
|
compounder: any;
|
|
63
59
|
}>;
|
|
64
60
|
/**
|
|
@@ -94,7 +90,6 @@ export declare class DriftUsdcController implements DriftUsdcControllerArgs {
|
|
|
94
90
|
*/
|
|
95
91
|
pretty(): {
|
|
96
92
|
baseStrategy: Strategy;
|
|
97
|
-
baseDrift: DriftControllerBase;
|
|
98
93
|
compounder: AutoCompound;
|
|
99
94
|
};
|
|
100
95
|
}
|
|
@@ -43,7 +43,6 @@ const web3 = __importStar(require("@solana/web3.js"));
|
|
|
43
43
|
const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
44
44
|
const beetSolana = __importStar(require("@metaplex-foundation/beet-solana"));
|
|
45
45
|
const Strategy_1 = require("../types/Strategy");
|
|
46
|
-
const DriftControllerBase_1 = require("../types/DriftControllerBase");
|
|
47
46
|
const AutoCompound_1 = require("../types/AutoCompound");
|
|
48
47
|
exports.driftUsdcControllerDiscriminator = [
|
|
49
48
|
148, 44, 102, 104, 86, 118, 225, 194,
|
|
@@ -56,16 +55,15 @@ exports.driftUsdcControllerDiscriminator = [
|
|
|
56
55
|
* @category generated
|
|
57
56
|
*/
|
|
58
57
|
class DriftUsdcController {
|
|
59
|
-
constructor(baseStrategy,
|
|
58
|
+
constructor(baseStrategy, compounder) {
|
|
60
59
|
this.baseStrategy = baseStrategy;
|
|
61
|
-
this.baseDrift = baseDrift;
|
|
62
60
|
this.compounder = compounder;
|
|
63
61
|
}
|
|
64
62
|
/**
|
|
65
63
|
* Creates a {@link DriftUsdcController} instance from the provided args.
|
|
66
64
|
*/
|
|
67
65
|
static fromArgs(args) {
|
|
68
|
-
return new DriftUsdcController(args.baseStrategy, args.
|
|
66
|
+
return new DriftUsdcController(args.baseStrategy, args.compounder);
|
|
69
67
|
}
|
|
70
68
|
/**
|
|
71
69
|
* Deserializes the {@link DriftUsdcController} from the data of the provided {@link web3.AccountInfo}.
|
|
@@ -95,7 +93,7 @@ class DriftUsdcController {
|
|
|
95
93
|
*
|
|
96
94
|
* @param programId - the program that owns the accounts we are filtering
|
|
97
95
|
*/
|
|
98
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
96
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
99
97
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.driftUsdcControllerBeet);
|
|
100
98
|
}
|
|
101
99
|
/**
|
|
@@ -144,7 +142,6 @@ class DriftUsdcController {
|
|
|
144
142
|
pretty() {
|
|
145
143
|
return {
|
|
146
144
|
baseStrategy: this.baseStrategy,
|
|
147
|
-
baseDrift: this.baseDrift,
|
|
148
145
|
compounder: this.compounder,
|
|
149
146
|
};
|
|
150
147
|
}
|
|
@@ -157,6 +154,5 @@ exports.DriftUsdcController = DriftUsdcController;
|
|
|
157
154
|
exports.driftUsdcControllerBeet = new beet.BeetStruct([
|
|
158
155
|
['accountDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
159
156
|
['baseStrategy', Strategy_1.strategyBeet],
|
|
160
|
-
['baseDrift', DriftControllerBase_1.driftControllerBaseBeet],
|
|
161
157
|
['compounder', AutoCompound_1.autoCompoundBeet],
|
|
162
158
|
], DriftUsdcController.fromArgs, 'DriftUsdcController');
|
|
@@ -95,7 +95,7 @@ class Main {
|
|
|
95
95
|
*
|
|
96
96
|
* @param programId - the program that owns the accounts we are filtering
|
|
97
97
|
*/
|
|
98
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
98
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
99
99
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.mainBeet);
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
@@ -122,7 +122,7 @@ class PerpMarket {
|
|
|
122
122
|
*
|
|
123
123
|
* @param programId - the program that owns the accounts we are filtering
|
|
124
124
|
*/
|
|
125
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
125
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
126
126
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.perpMarketBeet);
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
@@ -94,7 +94,7 @@ class PrelaunchOracle {
|
|
|
94
94
|
*
|
|
95
95
|
* @param programId - the program that owns the accounts we are filtering
|
|
96
96
|
*/
|
|
97
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
97
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
98
98
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.prelaunchOracleBeet);
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
@@ -93,7 +93,7 @@ class PythLazerOracle {
|
|
|
93
93
|
*
|
|
94
94
|
* @param programId - the program that owns the accounts we are filtering
|
|
95
95
|
*/
|
|
96
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
96
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
97
97
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.pythLazerOracleBeet);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
@@ -94,7 +94,7 @@ class RebalanceLst {
|
|
|
94
94
|
*
|
|
95
95
|
* @param programId - the program that owns the accounts we are filtering
|
|
96
96
|
*/
|
|
97
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
97
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
98
98
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.rebalanceLstBeet);
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
@@ -151,7 +151,7 @@ class SpotMarket {
|
|
|
151
151
|
*
|
|
152
152
|
* @param programId - the program that owns the accounts we are filtering
|
|
153
153
|
*/
|
|
154
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
154
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
155
155
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.spotMarketBeet);
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
@@ -105,7 +105,6 @@ export declare class User implements UserArgs {
|
|
|
105
105
|
*/
|
|
106
106
|
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
|
|
107
107
|
status: any;
|
|
108
|
-
lastActiveSlot: any;
|
|
109
108
|
accountDiscriminator: any;
|
|
110
109
|
subAccountId: any;
|
|
111
110
|
padding: any;
|
|
@@ -124,6 +123,7 @@ export declare class User implements UserArgs {
|
|
|
124
123
|
cumulativeSpotFees: any;
|
|
125
124
|
cumulativePerpFunding: any;
|
|
126
125
|
liquidationMarginFreed: any;
|
|
126
|
+
lastActiveSlot: any;
|
|
127
127
|
nextOrderId: any;
|
|
128
128
|
maxMarginRatio: any;
|
|
129
129
|
nextLiquidationId: any;
|
|
@@ -117,7 +117,7 @@ class User {
|
|
|
117
117
|
*
|
|
118
118
|
* @param programId - the program that owns the accounts we are filtering
|
|
119
119
|
*/
|
|
120
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
120
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
121
121
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.userBeet);
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
@@ -93,7 +93,7 @@ class UserPermissions {
|
|
|
93
93
|
*
|
|
94
94
|
* @param programId - the program that owns the accounts we are filtering
|
|
95
95
|
*/
|
|
96
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
96
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
97
97
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.userPermissionsBeet);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
@@ -113,7 +113,7 @@ class UserStats {
|
|
|
113
113
|
*
|
|
114
114
|
* @param programId - the program that owns the accounts we are filtering
|
|
115
115
|
*/
|
|
116
|
-
static gpaBuilder(programId = new web3.PublicKey('
|
|
116
|
+
static gpaBuilder(programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
117
117
|
return beetSolana.GpaBuilder.fromStruct(programId, exports.userStatsBeet);
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
@@ -9,7 +9,7 @@ export * from './types';
|
|
|
9
9
|
* @category constants
|
|
10
10
|
* @category generated
|
|
11
11
|
*/
|
|
12
|
-
export declare const PROGRAM_ADDRESS = "
|
|
12
|
+
export declare const PROGRAM_ADDRESS = "RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf";
|
|
13
13
|
/**
|
|
14
14
|
* Program public key
|
|
15
15
|
*
|
|
@@ -26,7 +26,7 @@ __exportStar(require("./types"), exports);
|
|
|
26
26
|
* @category constants
|
|
27
27
|
* @category generated
|
|
28
28
|
*/
|
|
29
|
-
exports.PROGRAM_ADDRESS = '
|
|
29
|
+
exports.PROGRAM_ADDRESS = 'RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf';
|
|
30
30
|
/**
|
|
31
31
|
* Program public key
|
|
32
32
|
*
|
|
@@ -50,7 +50,7 @@ exports.addLstDriftInstructionDiscriminator = [
|
|
|
50
50
|
* @category AddLstDrift
|
|
51
51
|
* @category generated
|
|
52
52
|
*/
|
|
53
|
-
function createAddLstDriftInstruction(accounts, programId = new web3.PublicKey('
|
|
53
|
+
function createAddLstDriftInstruction(accounts, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
54
54
|
var _a;
|
|
55
55
|
const [data] = exports.addLstDriftStruct.serialize({
|
|
56
56
|
instructionDiscriminator: exports.addLstDriftInstructionDiscriminator,
|
|
@@ -50,7 +50,7 @@ exports.addSubAccountInstructionDiscriminator = [
|
|
|
50
50
|
* @category AddSubAccount
|
|
51
51
|
* @category generated
|
|
52
52
|
*/
|
|
53
|
-
function createAddSubAccountInstruction(accounts, programId = new web3.PublicKey('
|
|
53
|
+
function createAddSubAccountInstruction(accounts, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
54
54
|
var _a, _b;
|
|
55
55
|
const [data] = exports.addSubAccountStruct.serialize({
|
|
56
56
|
instructionDiscriminator: exports.addSubAccountInstructionDiscriminator,
|
|
@@ -59,7 +59,7 @@ exports.captureSpreadDriftInstructionDiscriminator = [
|
|
|
59
59
|
* @category CaptureSpreadDrift
|
|
60
60
|
* @category generated
|
|
61
61
|
*/
|
|
62
|
-
function createCaptureSpreadDriftInstruction(accounts, args, programId = new web3.PublicKey('
|
|
62
|
+
function createCaptureSpreadDriftInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
63
63
|
var _a, _b;
|
|
64
64
|
const [data] = exports.captureSpreadDriftStruct.serialize(Object.assign({ instructionDiscriminator: exports.captureSpreadDriftInstructionDiscriminator }, args));
|
|
65
65
|
const keys = [
|
|
@@ -57,7 +57,7 @@ exports.createAdminAccountInstructionDiscriminator = [
|
|
|
57
57
|
* @category CreateAdminAccount
|
|
58
58
|
* @category generated
|
|
59
59
|
*/
|
|
60
|
-
function createCreateAdminAccountInstruction(accounts, args, programId = new web3.PublicKey('
|
|
60
|
+
function createCreateAdminAccountInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
61
61
|
var _a;
|
|
62
62
|
const [data] = exports.createAdminAccountStruct.serialize(Object.assign({ instructionDiscriminator: exports.createAdminAccountInstructionDiscriminator }, args));
|
|
63
63
|
const keys = [
|
|
@@ -50,7 +50,7 @@ exports.createUserStatsAccountInstructionDiscriminator = [
|
|
|
50
50
|
* @category CreateUserStatsAccount
|
|
51
51
|
* @category generated
|
|
52
52
|
*/
|
|
53
|
-
function createCreateUserStatsAccountInstruction(accounts, programId = new web3.PublicKey('
|
|
53
|
+
function createCreateUserStatsAccountInstruction(accounts, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
54
54
|
var _a, _b;
|
|
55
55
|
const [data] = exports.createUserStatsAccountStruct.serialize({
|
|
56
56
|
instructionDiscriminator: exports.createUserStatsAccountInstructionDiscriminator,
|
|
@@ -58,7 +58,7 @@ exports.depositDriftInstructionDiscriminator = [
|
|
|
58
58
|
* @category DepositDrift
|
|
59
59
|
* @category generated
|
|
60
60
|
*/
|
|
61
|
-
function createDepositDriftInstruction(accounts, args, programId = new web3.PublicKey('
|
|
61
|
+
function createDepositDriftInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
62
62
|
var _a;
|
|
63
63
|
const [data] = exports.depositDriftStruct.serialize(Object.assign({ instructionDiscriminator: exports.depositDriftInstructionDiscriminator }, args));
|
|
64
64
|
const keys = [
|
|
@@ -56,7 +56,7 @@ exports.freezeProgramInstructionDiscriminator = [
|
|
|
56
56
|
* @category FreezeProgram
|
|
57
57
|
* @category generated
|
|
58
58
|
*/
|
|
59
|
-
function createFreezeProgramInstruction(accounts, args, programId = new web3.PublicKey('
|
|
59
|
+
function createFreezeProgramInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
60
60
|
var _a;
|
|
61
61
|
const [data] = exports.freezeProgramStruct.serialize(Object.assign({ instructionDiscriminator: exports.freezeProgramInstructionDiscriminator }, args));
|
|
62
62
|
const keys = [
|
|
@@ -57,7 +57,7 @@ exports.freezeProtocolActionInstructionDiscriminator = [
|
|
|
57
57
|
* @category FreezeProtocolAction
|
|
58
58
|
* @category generated
|
|
59
59
|
*/
|
|
60
|
-
function createFreezeProtocolActionInstruction(accounts, args, programId = new web3.PublicKey('
|
|
60
|
+
function createFreezeProtocolActionInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
61
61
|
var _a;
|
|
62
62
|
const [data] = exports.freezeProtocolActionStruct.serialize(Object.assign({ instructionDiscriminator: exports.freezeProtocolActionInstructionDiscriminator }, args));
|
|
63
63
|
const keys = [
|
|
@@ -58,7 +58,7 @@ exports.freezeStrategyActionInstructionDiscriminator = [
|
|
|
58
58
|
* @category FreezeStrategyAction
|
|
59
59
|
* @category generated
|
|
60
60
|
*/
|
|
61
|
-
function createFreezeStrategyActionInstruction(accounts, args, programId = new web3.PublicKey('
|
|
61
|
+
function createFreezeStrategyActionInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
62
62
|
var _a;
|
|
63
63
|
const [data] = exports.freezeStrategyActionStruct.serialize(Object.assign({ instructionDiscriminator: exports.freezeStrategyActionInstructionDiscriminator }, args));
|
|
64
64
|
const keys = [
|
|
@@ -55,7 +55,7 @@ exports.increaseAdminSizeInstructionDiscriminator = [
|
|
|
55
55
|
* @category IncreaseAdminSize
|
|
56
56
|
* @category generated
|
|
57
57
|
*/
|
|
58
|
-
function createIncreaseAdminSizeInstruction(accounts, args, programId = new web3.PublicKey('
|
|
58
|
+
function createIncreaseAdminSizeInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
59
59
|
var _a;
|
|
60
60
|
const [data] = exports.increaseAdminSizeStruct.serialize(Object.assign({ instructionDiscriminator: exports.increaseAdminSizeInstructionDiscriminator }, args));
|
|
61
61
|
const keys = [
|
|
@@ -28,7 +28,6 @@ export * from './updateActionRoleProtocol';
|
|
|
28
28
|
export * from './updateActionRoleStrategy';
|
|
29
29
|
export * from './updateAttenuation';
|
|
30
30
|
export * from './updateCap';
|
|
31
|
-
export * from './updateRebalanceSlippage';
|
|
32
31
|
export * from './updateRecipients';
|
|
33
32
|
export * from './updateRoleHolderProtocol';
|
|
34
33
|
export * from './updateRoleHolderStrategy';
|
|
@@ -44,7 +44,6 @@ __exportStar(require("./updateActionRoleProtocol"), exports);
|
|
|
44
44
|
__exportStar(require("./updateActionRoleStrategy"), exports);
|
|
45
45
|
__exportStar(require("./updateAttenuation"), exports);
|
|
46
46
|
__exportStar(require("./updateCap"), exports);
|
|
47
|
-
__exportStar(require("./updateRebalanceSlippage"), exports);
|
|
48
47
|
__exportStar(require("./updateRecipients"), exports);
|
|
49
48
|
__exportStar(require("./updateRoleHolderProtocol"), exports);
|
|
50
49
|
__exportStar(require("./updateRoleHolderStrategy"), exports);
|
|
@@ -50,7 +50,7 @@ exports.initDriftAccountsS1InstructionDiscriminator = [
|
|
|
50
50
|
* @category InitDriftAccountsS1
|
|
51
51
|
* @category generated
|
|
52
52
|
*/
|
|
53
|
-
function createInitDriftAccountsS1Instruction(accounts, programId = new web3.PublicKey('
|
|
53
|
+
function createInitDriftAccountsS1Instruction(accounts, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
54
54
|
var _a, _b;
|
|
55
55
|
const [data] = exports.initDriftAccountsS1Struct.serialize({
|
|
56
56
|
instructionDiscriminator: exports.initDriftAccountsS1InstructionDiscriminator,
|
|
@@ -59,7 +59,7 @@ exports.initDriftControllerS1InstructionDiscriminator = [
|
|
|
59
59
|
* @category InitDriftControllerS1
|
|
60
60
|
* @category generated
|
|
61
61
|
*/
|
|
62
|
-
function createInitDriftControllerS1Instruction(accounts, args, programId = new web3.PublicKey('
|
|
62
|
+
function createInitDriftControllerS1Instruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
63
63
|
var _a;
|
|
64
64
|
const [data] = exports.initDriftControllerS1Struct.serialize(Object.assign({ instructionDiscriminator: exports.initDriftControllerS1InstructionDiscriminator }, args));
|
|
65
65
|
const keys = [
|
|
@@ -59,7 +59,7 @@ exports.initDriftControllerS3InstructionDiscriminator = [
|
|
|
59
59
|
* @category InitDriftControllerS3
|
|
60
60
|
* @category generated
|
|
61
61
|
*/
|
|
62
|
-
function createInitDriftControllerS3Instruction(accounts, args, programId = new web3.PublicKey('
|
|
62
|
+
function createInitDriftControllerS3Instruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
63
63
|
var _a;
|
|
64
64
|
const [data] = exports.initDriftControllerS3Struct.serialize(Object.assign({ instructionDiscriminator: exports.initDriftControllerS3InstructionDiscriminator }, args));
|
|
65
65
|
const keys = [
|
|
@@ -50,7 +50,7 @@ exports.initMainInstructionDiscriminator = [
|
|
|
50
50
|
* @category InitMain
|
|
51
51
|
* @category generated
|
|
52
52
|
*/
|
|
53
|
-
function createInitMainInstruction(accounts, programId = new web3.PublicKey('
|
|
53
|
+
function createInitMainInstruction(accounts, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
54
54
|
var _a;
|
|
55
55
|
const [data] = exports.initMainStruct.serialize({
|
|
56
56
|
instructionDiscriminator: exports.initMainInstructionDiscriminator,
|
|
@@ -60,7 +60,7 @@ exports.mintDriftS1InstructionDiscriminator = [
|
|
|
60
60
|
* @category MintDriftS1
|
|
61
61
|
* @category generated
|
|
62
62
|
*/
|
|
63
|
-
function createMintDriftS1Instruction(accounts, args, programId = new web3.PublicKey('
|
|
63
|
+
function createMintDriftS1Instruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
64
64
|
var _a, _b, _c;
|
|
65
65
|
const [data] = exports.mintDriftS1Struct.serialize(Object.assign({ instructionDiscriminator: exports.mintDriftS1InstructionDiscriminator }, args));
|
|
66
66
|
const keys = [
|
|
@@ -60,7 +60,7 @@ exports.mintDriftS3InstructionDiscriminator = [
|
|
|
60
60
|
* @category MintDriftS3
|
|
61
61
|
* @category generated
|
|
62
62
|
*/
|
|
63
|
-
function createMintDriftS3Instruction(accounts, args, programId = new web3.PublicKey('
|
|
63
|
+
function createMintDriftS3Instruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
64
64
|
var _a, _b, _c;
|
|
65
65
|
const [data] = exports.mintDriftS3Struct.serialize(Object.assign({ instructionDiscriminator: exports.mintDriftS3InstructionDiscriminator }, args));
|
|
66
66
|
const keys = [
|
|
@@ -54,7 +54,7 @@ exports.processSwapDepositInstructionDiscriminator = [
|
|
|
54
54
|
* @category ProcessSwapDeposit
|
|
55
55
|
* @category generated
|
|
56
56
|
*/
|
|
57
|
-
function createProcessSwapDepositInstruction(accounts, programId = new web3.PublicKey('
|
|
57
|
+
function createProcessSwapDepositInstruction(accounts, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
58
58
|
var _a, _b, _c;
|
|
59
59
|
const [data] = exports.processSwapDepositStruct.serialize({
|
|
60
60
|
instructionDiscriminator: exports.processSwapDepositInstructionDiscriminator,
|
|
@@ -54,7 +54,7 @@ exports.processSwapWithdrawInstructionDiscriminator = [
|
|
|
54
54
|
* @category ProcessSwapWithdraw
|
|
55
55
|
* @category generated
|
|
56
56
|
*/
|
|
57
|
-
function createProcessSwapWithdrawInstruction(accounts, programId = new web3.PublicKey('
|
|
57
|
+
function createProcessSwapWithdrawInstruction(accounts, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
58
58
|
var _a, _b, _c;
|
|
59
59
|
const [data] = exports.processSwapWithdrawStruct.serialize({
|
|
60
60
|
instructionDiscriminator: exports.processSwapWithdrawInstructionDiscriminator,
|
|
@@ -61,7 +61,7 @@ exports.redeemDriftS1InstructionDiscriminator = [
|
|
|
61
61
|
* @category RedeemDriftS1
|
|
62
62
|
* @category generated
|
|
63
63
|
*/
|
|
64
|
-
function createRedeemDriftS1Instruction(accounts, args, programId = new web3.PublicKey('
|
|
64
|
+
function createRedeemDriftS1Instruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
65
65
|
var _a, _b, _c;
|
|
66
66
|
const [data] = exports.redeemDriftS1Struct.serialize(Object.assign({ instructionDiscriminator: exports.redeemDriftS1InstructionDiscriminator }, args));
|
|
67
67
|
const keys = [
|
|
@@ -61,7 +61,7 @@ exports.redeemDriftS3InstructionDiscriminator = [
|
|
|
61
61
|
* @category RedeemDriftS3
|
|
62
62
|
* @category generated
|
|
63
63
|
*/
|
|
64
|
-
function createRedeemDriftS3Instruction(accounts, args, programId = new web3.PublicKey('
|
|
64
|
+
function createRedeemDriftS3Instruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
65
65
|
var _a, _b, _c;
|
|
66
66
|
const [data] = exports.redeemDriftS3Struct.serialize(Object.assign({ instructionDiscriminator: exports.redeemDriftS3InstructionDiscriminator }, args));
|
|
67
67
|
const keys = [
|
|
@@ -50,7 +50,7 @@ exports.settlePnlInstructionDiscriminator = [
|
|
|
50
50
|
* @category SettlePnl
|
|
51
51
|
* @category generated
|
|
52
52
|
*/
|
|
53
|
-
function createSettlePnlInstruction(accounts, programId = new web3.PublicKey('
|
|
53
|
+
function createSettlePnlInstruction(accounts, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
54
54
|
const [data] = exports.settlePnlStruct.serialize({
|
|
55
55
|
instructionDiscriminator: exports.settlePnlInstructionDiscriminator,
|
|
56
56
|
});
|
|
@@ -55,7 +55,7 @@ exports.settlePnlMultiInstructionDiscriminator = [
|
|
|
55
55
|
* @category SettlePnlMulti
|
|
56
56
|
* @category generated
|
|
57
57
|
*/
|
|
58
|
-
function createSettlePnlMultiInstruction(accounts, args, programId = new web3.PublicKey('
|
|
58
|
+
function createSettlePnlMultiInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
59
59
|
const [data] = exports.settlePnlMultiStruct.serialize(Object.assign({ instructionDiscriminator: exports.settlePnlMultiInstructionDiscriminator }, args));
|
|
60
60
|
const keys = [
|
|
61
61
|
{
|
|
@@ -57,7 +57,7 @@ exports.suspendSplProtocolInstructionDiscriminator = [
|
|
|
57
57
|
* @category SuspendSplProtocol
|
|
58
58
|
* @category generated
|
|
59
59
|
*/
|
|
60
|
-
function createSuspendSplProtocolInstruction(accounts, args, programId = new web3.PublicKey('
|
|
60
|
+
function createSuspendSplProtocolInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
61
61
|
var _a;
|
|
62
62
|
const [data] = exports.suspendSplProtocolStruct.serialize(Object.assign({ instructionDiscriminator: exports.suspendSplProtocolInstructionDiscriminator }, args));
|
|
63
63
|
const keys = [
|
|
@@ -57,7 +57,7 @@ exports.suspendSplStrategyInstructionDiscriminator = [
|
|
|
57
57
|
* @category SuspendSplStrategy
|
|
58
58
|
* @category generated
|
|
59
59
|
*/
|
|
60
|
-
function createSuspendSplStrategyInstruction(accounts, args, programId = new web3.PublicKey('
|
|
60
|
+
function createSuspendSplStrategyInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
61
61
|
var _a;
|
|
62
62
|
const [data] = exports.suspendSplStrategyStruct.serialize(Object.assign({ instructionDiscriminator: exports.suspendSplStrategyInstructionDiscriminator }, args));
|
|
63
63
|
const keys = [
|
|
@@ -62,7 +62,7 @@ exports.swapOrcaInstructionDiscriminator = [
|
|
|
62
62
|
* @category SwapOrca
|
|
63
63
|
* @category generated
|
|
64
64
|
*/
|
|
65
|
-
function createSwapOrcaInstruction(accounts, args, programId = new web3.PublicKey('
|
|
65
|
+
function createSwapOrcaInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
66
66
|
var _a, _b;
|
|
67
67
|
const [data] = exports.swapOrcaStruct.serialize(Object.assign({ instructionDiscriminator: exports.swapOrcaInstructionDiscriminator }, args));
|
|
68
68
|
const keys = [
|
|
@@ -64,7 +64,7 @@ exports.swapOrcaTwoHopInstructionDiscriminator = [
|
|
|
64
64
|
* @category SwapOrcaTwoHop
|
|
65
65
|
* @category generated
|
|
66
66
|
*/
|
|
67
|
-
function createSwapOrcaTwoHopInstruction(accounts, args, programId = new web3.PublicKey('
|
|
67
|
+
function createSwapOrcaTwoHopInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
68
68
|
var _a, _b;
|
|
69
69
|
const [data] = exports.swapOrcaTwoHopStruct.serialize(Object.assign({ instructionDiscriminator: exports.swapOrcaTwoHopInstructionDiscriminator }, args));
|
|
70
70
|
const keys = [
|
|
@@ -60,7 +60,7 @@ exports.updateActionRoleProtocolInstructionDiscriminator = [
|
|
|
60
60
|
* @category UpdateActionRoleProtocol
|
|
61
61
|
* @category generated
|
|
62
62
|
*/
|
|
63
|
-
function createUpdateActionRoleProtocolInstruction(accounts, args, programId = new web3.PublicKey('
|
|
63
|
+
function createUpdateActionRoleProtocolInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
64
64
|
var _a;
|
|
65
65
|
const [data] = exports.updateActionRoleProtocolStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateActionRoleProtocolInstructionDiscriminator }, args));
|
|
66
66
|
const keys = [
|
|
@@ -60,7 +60,7 @@ exports.updateActionRoleStrategyInstructionDiscriminator = [
|
|
|
60
60
|
* @category UpdateActionRoleStrategy
|
|
61
61
|
* @category generated
|
|
62
62
|
*/
|
|
63
|
-
function createUpdateActionRoleStrategyInstruction(accounts, args, programId = new web3.PublicKey('
|
|
63
|
+
function createUpdateActionRoleStrategyInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
64
64
|
var _a;
|
|
65
65
|
const [data] = exports.updateActionRoleStrategyStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateActionRoleStrategyInstructionDiscriminator }, args));
|
|
66
66
|
const keys = [
|
|
@@ -57,7 +57,7 @@ exports.updateAttenuationInstructionDiscriminator = [
|
|
|
57
57
|
* @category UpdateAttenuation
|
|
58
58
|
* @category generated
|
|
59
59
|
*/
|
|
60
|
-
function createUpdateAttenuationInstruction(accounts, args, programId = new web3.PublicKey('
|
|
60
|
+
function createUpdateAttenuationInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
61
61
|
var _a;
|
|
62
62
|
const [data] = exports.updateAttenuationStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateAttenuationInstructionDiscriminator }, args));
|
|
63
63
|
const keys = [
|
|
@@ -55,7 +55,7 @@ exports.updateCapInstructionDiscriminator = [
|
|
|
55
55
|
* @category UpdateCap
|
|
56
56
|
* @category generated
|
|
57
57
|
*/
|
|
58
|
-
function createUpdateCapInstruction(accounts, args, programId = new web3.PublicKey('
|
|
58
|
+
function createUpdateCapInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
59
59
|
var _a;
|
|
60
60
|
const [data] = exports.updateCapStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateCapInstructionDiscriminator }, args));
|
|
61
61
|
const keys = [
|
|
@@ -57,7 +57,7 @@ exports.updateRecipientsInstructionDiscriminator = [
|
|
|
57
57
|
* @category UpdateRecipients
|
|
58
58
|
* @category generated
|
|
59
59
|
*/
|
|
60
|
-
function createUpdateRecipientsInstruction(accounts, args, programId = new web3.PublicKey('
|
|
60
|
+
function createUpdateRecipientsInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
61
61
|
var _a;
|
|
62
62
|
const [data] = exports.updateRecipientsStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateRecipientsInstructionDiscriminator }, args));
|
|
63
63
|
const keys = [
|
|
@@ -58,7 +58,7 @@ exports.updateRoleHolderProtocolInstructionDiscriminator = [
|
|
|
58
58
|
* @category UpdateRoleHolderProtocol
|
|
59
59
|
* @category generated
|
|
60
60
|
*/
|
|
61
|
-
function createUpdateRoleHolderProtocolInstruction(accounts, args, programId = new web3.PublicKey('
|
|
61
|
+
function createUpdateRoleHolderProtocolInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
62
62
|
var _a;
|
|
63
63
|
const [data] = exports.updateRoleHolderProtocolStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateRoleHolderProtocolInstructionDiscriminator }, args));
|
|
64
64
|
const keys = [
|
|
@@ -58,7 +58,7 @@ exports.updateRoleHolderStrategyInstructionDiscriminator = [
|
|
|
58
58
|
* @category UpdateRoleHolderStrategy
|
|
59
59
|
* @category generated
|
|
60
60
|
*/
|
|
61
|
-
function createUpdateRoleHolderStrategyInstruction(accounts, args, programId = new web3.PublicKey('
|
|
61
|
+
function createUpdateRoleHolderStrategyInstruction(accounts, args, programId = new web3.PublicKey('RFLcTCxBFk7hQcrkXqR71LhTtfJruJU8XPecBPfiSZf')) {
|
|
62
62
|
var _a;
|
|
63
63
|
const [data] = exports.updateRoleHolderStrategyStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateRoleHolderStrategyInstructionDiscriminator }, args));
|
|
64
64
|
const keys = [
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as beet from '@metaplex-foundation/beet';
|
|
8
8
|
export type AutoCompound = {
|
|
9
|
-
effectiveSupply: beet.bignum;
|
|
10
9
|
depositedVaultValue: beet.bignum;
|
|
10
|
+
effectiveSupply: beet.bignum;
|
|
11
11
|
netUserFlowSinceCapture: beet.bignum;
|
|
12
12
|
lastPoolValue: beet.bignum;
|
|
13
13
|
totalCapturableYield: beet.bignum;
|
|
@@ -36,8 +36,8 @@ const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
|
36
36
|
* @category generated
|
|
37
37
|
*/
|
|
38
38
|
exports.autoCompoundBeet = new beet.BeetArgsStruct([
|
|
39
|
-
['effectiveSupply', beet.u64],
|
|
40
39
|
['depositedVaultValue', beet.u64],
|
|
40
|
+
['effectiveSupply', beet.u64],
|
|
41
41
|
['netUserFlowSinceCapture', beet.i64],
|
|
42
42
|
['lastPoolValue', beet.u64],
|
|
43
43
|
['totalCapturableYield', beet.u64],
|
|
@@ -54,6 +54,5 @@ exports.strategyBeet = new beet.BeetArgsStruct([
|
|
|
54
54
|
['spls', Spls_1.splsBeet],
|
|
55
55
|
['recipients', Recipients_1.recipientsBeet],
|
|
56
56
|
['capture', Capture_1.captureBeet],
|
|
57
|
-
['rebalanceSlipagge', beet.u32],
|
|
58
57
|
['reserved', StrategyPadding_1.strategyPaddingBeet],
|
|
59
58
|
], 'Strategy');
|
|
@@ -15,7 +15,6 @@ export * from './CorpAction';
|
|
|
15
15
|
export * from './CustodyInfo';
|
|
16
16
|
export * from './DirectionCollateral';
|
|
17
17
|
export * from './DirectionPosition';
|
|
18
|
-
export * from './DriftControllerBase';
|
|
19
18
|
export * from './DriftJlpControllerFixedAccounts';
|
|
20
19
|
export * from './DriftLstData';
|
|
21
20
|
export * from './Ema';
|
|
@@ -31,7 +31,6 @@ __exportStar(require("./CorpAction"), exports);
|
|
|
31
31
|
__exportStar(require("./CustodyInfo"), exports);
|
|
32
32
|
__exportStar(require("./DirectionCollateral"), exports);
|
|
33
33
|
__exportStar(require("./DirectionPosition"), exports);
|
|
34
|
-
__exportStar(require("./DriftControllerBase"), exports);
|
|
35
34
|
__exportStar(require("./DriftJlpControllerFixedAccounts"), exports);
|
|
36
35
|
__exportStar(require("./DriftLstData"), exports);
|
|
37
36
|
__exportStar(require("./Ema"), exports);
|