@reflectmoney/stable.ts 1.0.1 → 1.0.3
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/README.md +108 -84
- package/dist/classes/ReflectKeeper.d.ts +104 -0
- package/dist/classes/ReflectKeeper.js +219 -0
- package/dist/classes/Stablecoin.d.ts +3 -1
- package/dist/classes/Stablecoin.js +2 -1
- package/dist/classes/index.d.ts +1 -1
- package/dist/classes/index.js +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/lookupTables.d.ts +4 -0
- package/dist/constants/lookupTables.js +7 -0
- package/dist/stablecoins/LstStablecoin.js +1 -1
- package/dist/stablecoins/UsdcPlusStablecoin.d.ts +66 -0
- package/dist/stablecoins/UsdcPlusStablecoin.js +197 -0
- package/dist/stablecoins/UsdjStablecoin.d.ts +1 -0
- package/dist/stablecoins/UsdjStablecoin.js +44 -0
- package/dist/stablecoins/index.d.ts +2 -2
- package/dist/stablecoins/index.js +2 -2
- package/package.json +1 -1
- package/dist/classes/Strategy.d.ts +0 -30
- package/dist/classes/Strategy.js +0 -196
- package/dist/generated/accounts/DriftJlpController.d.ts +0 -114
- package/dist/generated/accounts/DriftJlpController.js +0 -169
- package/dist/generated/accounts/DriftLstController.d.ts +0 -108
- package/dist/generated/accounts/DriftLstController.js +0 -165
- package/dist/generated/accounts/DriftUsdcController.d.ts +0 -102
- package/dist/generated/accounts/DriftUsdcController.js +0 -158
- package/dist/generated/accounts/Main.d.ts +0 -110
- package/dist/generated/accounts/Main.js +0 -165
- package/dist/generated/accounts/PerpMarket.d.ts +0 -226
- package/dist/generated/accounts/PerpMarket.js +0 -307
- package/dist/generated/accounts/PrelaunchOracle.d.ts +0 -130
- package/dist/generated/accounts/PrelaunchOracle.js +0 -224
- package/dist/generated/accounts/PythLazerOracle.d.ts +0 -124
- package/dist/generated/accounts/PythLazerOracle.js +0 -210
- package/dist/generated/accounts/RebalanceLst.d.ts +0 -111
- package/dist/generated/accounts/RebalanceLst.js +0 -175
- package/dist/generated/accounts/SpotMarket.d.ts +0 -377
- package/dist/generated/accounts/SpotMarket.js +0 -601
- package/dist/generated/accounts/User.d.ts +0 -221
- package/dist/generated/accounts/User.js +0 -331
- package/dist/generated/accounts/UserPermissions.d.ts +0 -106
- package/dist/generated/accounts/UserPermissions.js +0 -161
- package/dist/generated/accounts/UserStats.d.ts +0 -211
- package/dist/generated/accounts/UserStats.js +0 -323
- package/dist/generated/accounts/index.d.ts +0 -38
- package/dist/generated/accounts/index.js +0 -55
- package/dist/generated/errors/index.d.ts +0 -1024
- package/dist/generated/errors/index.js +0 -1761
- package/dist/generated/index.d.ts +0 -19
- package/dist/generated/index.js +0 -36
- package/dist/generated/instructions/addLstDrift.d.ts +0 -49
- package/dist/generated/instructions/addLstDrift.js +0 -106
- package/dist/generated/instructions/addSubAccount.d.ts +0 -54
- package/dist/generated/instructions/addSubAccount.js +0 -121
- package/dist/generated/instructions/adjustHedgeS2.d.ts +0 -69
- package/dist/generated/instructions/adjustHedgeS2.js +0 -157
- package/dist/generated/instructions/captureSpreadDrift.d.ts +0 -56
- package/dist/generated/instructions/captureSpreadDrift.js +0 -120
- package/dist/generated/instructions/createAdminAccount.d.ts +0 -53
- package/dist/generated/instructions/createAdminAccount.js +0 -95
- package/dist/generated/instructions/createUserStatsAccount.d.ts +0 -54
- package/dist/generated/instructions/createUserStatsAccount.js +0 -121
- package/dist/generated/instructions/depositDrift.d.ts +0 -73
- package/dist/generated/instructions/depositDrift.js +0 -142
- package/dist/generated/instructions/freezeProgram.d.ts +0 -54
- package/dist/generated/instructions/freezeProgram.js +0 -95
- package/dist/generated/instructions/freezeProtocolAction.d.ts +0 -55
- package/dist/generated/instructions/freezeProtocolAction.js +0 -96
- package/dist/generated/instructions/freezeStrategyAction.d.ts +0 -58
- package/dist/generated/instructions/freezeStrategyAction.js +0 -102
- package/dist/generated/instructions/index.d.ts +0 -41
- package/dist/generated/instructions/index.js +0 -57
- package/dist/generated/instructions/initDriftAccountsS1.d.ts +0 -56
- package/dist/generated/instructions/initDriftAccountsS1.js +0 -126
- package/dist/generated/instructions/initDriftControllerS1.d.ts +0 -60
- package/dist/generated/instructions/initDriftControllerS1.js +0 -108
- package/dist/generated/instructions/initDriftControllerS2.d.ts +0 -66
- package/dist/generated/instructions/initDriftControllerS2.js +0 -125
- package/dist/generated/instructions/initDriftControllerS3.d.ts +0 -58
- package/dist/generated/instructions/initDriftControllerS3.js +0 -103
- package/dist/generated/instructions/initMain.d.ts +0 -43
- package/dist/generated/instructions/initMain.js +0 -91
- package/dist/generated/instructions/mintDriftS1.d.ts +0 -90
- package/dist/generated/instructions/mintDriftS1.js +0 -184
- package/dist/generated/instructions/mintDriftS2.d.ts +0 -80
- package/dist/generated/instructions/mintDriftS2.js +0 -161
- package/dist/generated/instructions/mintDriftS3.d.ts +0 -86
- package/dist/generated/instructions/mintDriftS3.js +0 -174
- package/dist/generated/instructions/processSwapDeposit.d.ts +0 -79
- package/dist/generated/instructions/processSwapDeposit.js +0 -161
- package/dist/generated/instructions/processSwapDepositIntrospection.d.ts +0 -79
- package/dist/generated/instructions/processSwapDepositIntrospection.js +0 -161
- package/dist/generated/instructions/processSwapWithdraw.d.ts +0 -68
- package/dist/generated/instructions/processSwapWithdraw.js +0 -157
- package/dist/generated/instructions/processSwapWithdrawIntrospection.d.ts +0 -68
- package/dist/generated/instructions/processSwapWithdrawIntrospection.js +0 -157
- package/dist/generated/instructions/rebalanceJlp.d.ts +0 -81
- package/dist/generated/instructions/rebalanceJlp.js +0 -187
- package/dist/generated/instructions/redeem2DriftS2.d.ts +0 -80
- package/dist/generated/instructions/redeem2DriftS2.js +0 -161
- package/dist/generated/instructions/redeemDriftS1.d.ts +0 -91
- package/dist/generated/instructions/redeemDriftS1.js +0 -185
- package/dist/generated/instructions/redeemDriftS2.d.ts +0 -80
- package/dist/generated/instructions/redeemDriftS2.js +0 -161
- package/dist/generated/instructions/redeemDriftS3.d.ts +0 -87
- package/dist/generated/instructions/redeemDriftS3.js +0 -175
- package/dist/generated/instructions/settlePnl.d.ts +0 -55
- package/dist/generated/instructions/settlePnl.js +0 -114
- package/dist/generated/instructions/settlePnlMulti.d.ts +0 -65
- package/dist/generated/instructions/settlePnlMulti.js +0 -117
- package/dist/generated/instructions/suspendLstProtocol.d.ts +0 -54
- package/dist/generated/instructions/suspendLstProtocol.js +0 -96
- package/dist/generated/instructions/suspendLstStrategy.d.ts +0 -56
- package/dist/generated/instructions/suspendLstStrategy.js +0 -101
- package/dist/generated/instructions/swapOrca.d.ts +0 -78
- package/dist/generated/instructions/swapOrca.js +0 -153
- package/dist/generated/instructions/swapOrcaTwoHop.d.ts +0 -98
- package/dist/generated/instructions/swapOrcaTwoHop.js +0 -200
- package/dist/generated/instructions/updateActionRoleProtocol.d.ts +0 -58
- package/dist/generated/instructions/updateActionRoleProtocol.js +0 -99
- package/dist/generated/instructions/updateActionRoleStrategy.d.ts +0 -61
- package/dist/generated/instructions/updateActionRoleStrategy.js +0 -105
- package/dist/generated/instructions/updateAttenuation.d.ts +0 -56
- package/dist/generated/instructions/updateAttenuation.js +0 -100
- package/dist/generated/instructions/updateCap.d.ts +0 -55
- package/dist/generated/instructions/updateCap.js +0 -99
- package/dist/generated/instructions/updateRebalanceSlippage.d.ts +0 -55
- package/dist/generated/instructions/updateRebalanceSlippage.js +0 -99
- package/dist/generated/instructions/updateRecipients.d.ts +0 -56
- package/dist/generated/instructions/updateRecipients.js +0 -101
- package/dist/generated/instructions/updateRoleHolderProtocol.d.ts +0 -61
- package/dist/generated/instructions/updateRoleHolderProtocol.js +0 -109
- package/dist/generated/instructions/updateRoleHolderStrategy.d.ts +0 -62
- package/dist/generated/instructions/updateRoleHolderStrategy.js +0 -110
- package/dist/generated/types/AMM.d.ts +0 -102
- package/dist/generated/types/AMM.js +0 -127
- package/dist/generated/types/AccKey.d.ts +0 -15
- package/dist/generated/types/AccKey.js +0 -38
- package/dist/generated/types/AccessControl.d.ts +0 -18
- package/dist/generated/types/AccessControl.js +0 -43
- package/dist/generated/types/AccessMap.d.ts +0 -17
- package/dist/generated/types/AccessMap.js +0 -42
- package/dist/generated/types/Action.d.ts +0 -36
- package/dist/generated/types/Action.js +0 -63
- package/dist/generated/types/ActionMapping.d.ts +0 -19
- package/dist/generated/types/ActionMapping.js +0 -44
- package/dist/generated/types/AssetTier.d.ts +0 -23
- package/dist/generated/types/AssetTier.js +0 -50
- package/dist/generated/types/Attenuation.d.ts +0 -16
- package/dist/generated/types/Attenuation.js +0 -41
- package/dist/generated/types/BalanceType.d.ts +0 -20
- package/dist/generated/types/BalanceType.js +0 -47
- package/dist/generated/types/ContractTier.d.ts +0 -24
- package/dist/generated/types/ContractTier.js +0 -51
- package/dist/generated/types/ContractType.d.ts +0 -20
- package/dist/generated/types/ContractType.js +0 -47
- package/dist/generated/types/CorpAction.d.ts +0 -19
- package/dist/generated/types/CorpAction.js +0 -46
- package/dist/generated/types/CustodyInfo.d.ts +0 -20
- package/dist/generated/types/CustodyInfo.js +0 -45
- package/dist/generated/types/DirectionCollateral.d.ts +0 -20
- package/dist/generated/types/DirectionCollateral.js +0 -47
- package/dist/generated/types/DirectionPosition.d.ts +0 -20
- package/dist/generated/types/DirectionPosition.js +0 -47
- package/dist/generated/types/DriftControllerBase.d.ts +0 -15
- package/dist/generated/types/DriftControllerBase.js +0 -38
- package/dist/generated/types/DriftJlpControllerFixedAccounts.d.ts +0 -18
- package/dist/generated/types/DriftJlpControllerFixedAccounts.js +0 -43
- package/dist/generated/types/DriftLstData.d.ts +0 -17
- package/dist/generated/types/DriftLstData.js +0 -42
- package/dist/generated/types/Ema.d.ts +0 -17
- package/dist/generated/types/Ema.js +0 -42
- package/dist/generated/types/Externals.d.ts +0 -16
- package/dist/generated/types/Externals.js +0 -39
- package/dist/generated/types/HistoricalIndexData.d.ts +0 -19
- package/dist/generated/types/HistoricalIndexData.js +0 -44
- package/dist/generated/types/HistoricalOracleData.d.ts +0 -20
- package/dist/generated/types/HistoricalOracleData.js +0 -45
- package/dist/generated/types/Holding.d.ts +0 -21
- package/dist/generated/types/Holding.js +0 -46
- package/dist/generated/types/Holdings.d.ts +0 -17
- package/dist/generated/types/Holdings.js +0 -42
- package/dist/generated/types/InitControllerS2Args.d.ts +0 -23
- package/dist/generated/types/InitControllerS2Args.js +0 -48
- package/dist/generated/types/InsuranceClaim.d.ts +0 -19
- package/dist/generated/types/InsuranceClaim.js +0 -44
- package/dist/generated/types/InsuranceFund.d.ts +0 -24
- package/dist/generated/types/InsuranceFund.js +0 -49
- package/dist/generated/types/JlpRebalanceSettings.d.ts +0 -15
- package/dist/generated/types/JlpRebalanceSettings.js +0 -38
- package/dist/generated/types/KillSwitch.d.ts +0 -15
- package/dist/generated/types/KillSwitch.js +0 -38
- package/dist/generated/types/LevelRoles.d.ts +0 -16
- package/dist/generated/types/LevelRoles.js +0 -39
- package/dist/generated/types/MarketStatus.d.ts +0 -27
- package/dist/generated/types/MarketStatus.js +0 -54
- package/dist/generated/types/MarketType.d.ts +0 -20
- package/dist/generated/types/MarketType.js +0 -47
- package/dist/generated/types/MintJlpArgs.d.ts +0 -15
- package/dist/generated/types/MintJlpArgs.js +0 -38
- package/dist/generated/types/ModifyOrderParams.d.ts +0 -32
- package/dist/generated/types/ModifyOrderParams.js +0 -57
- package/dist/generated/types/ModifyOrderPolicy.d.ts +0 -20
- package/dist/generated/types/ModifyOrderPolicy.js +0 -47
- package/dist/generated/types/Movements.d.ts +0 -19
- package/dist/generated/types/Movements.js +0 -44
- package/dist/generated/types/OracleGuardRails.d.ts +0 -18
- package/dist/generated/types/OracleGuardRails.js +0 -43
- package/dist/generated/types/OracleSource.d.ts +0 -34
- package/dist/generated/types/OracleSource.js +0 -61
- package/dist/generated/types/OracleValidity.d.ts +0 -25
- package/dist/generated/types/OracleValidity.js +0 -52
- package/dist/generated/types/Order.d.ts +0 -43
- package/dist/generated/types/Order.js +0 -68
- package/dist/generated/types/OrderDirection.d.ts +0 -20
- package/dist/generated/types/OrderDirection.js +0 -47
- package/dist/generated/types/OrderParams.d.ts +0 -36
- package/dist/generated/types/OrderParams.js +0 -61
- package/dist/generated/types/OrderStatus.d.ts +0 -22
- package/dist/generated/types/OrderStatus.js +0 -49
- package/dist/generated/types/OrderTriggerCondition.d.ts +0 -22
- package/dist/generated/types/OrderTriggerCondition.js +0 -49
- package/dist/generated/types/OrderType.d.ts +0 -23
- package/dist/generated/types/OrderType.js +0 -50
- package/dist/generated/types/PermissionLevel.d.ts +0 -45
- package/dist/generated/types/PermissionLevel.js +0 -48
- package/dist/generated/types/PerpHedge.d.ts +0 -17
- package/dist/generated/types/PerpHedge.js +0 -42
- package/dist/generated/types/PerpPosition.d.ts +0 -29
- package/dist/generated/types/PerpPosition.js +0 -54
- package/dist/generated/types/PoolBalance.d.ts +0 -17
- package/dist/generated/types/PoolBalance.js +0 -42
- package/dist/generated/types/Position.d.ts +0 -20
- package/dist/generated/types/Position.js +0 -45
- package/dist/generated/types/PositionDirection.d.ts +0 -20
- package/dist/generated/types/PositionDirection.js +0 -47
- package/dist/generated/types/PositionDrift.d.ts +0 -18
- package/dist/generated/types/PositionDrift.js +0 -43
- package/dist/generated/types/PostOnlyParam.d.ts +0 -22
- package/dist/generated/types/PostOnlyParam.js +0 -49
- package/dist/generated/types/Price.d.ts +0 -41
- package/dist/generated/types/Price.js +0 -66
- package/dist/generated/types/PriceComp.d.ts +0 -19
- package/dist/generated/types/PriceComp.js +0 -44
- package/dist/generated/types/PriceDivergenceGuardRails.d.ts +0 -16
- package/dist/generated/types/PriceDivergenceGuardRails.js +0 -41
- package/dist/generated/types/PriceInfo.d.ts +0 -21
- package/dist/generated/types/PriceInfo.js +0 -46
- package/dist/generated/types/PriceStatus.d.ts +0 -22
- package/dist/generated/types/PriceStatus.js +0 -49
- package/dist/generated/types/PriceType.d.ts +0 -20
- package/dist/generated/types/PriceType.js +0 -47
- package/dist/generated/types/ProcessSwapDepositArgs.d.ts +0 -15
- package/dist/generated/types/ProcessSwapDepositArgs.js +0 -38
- package/dist/generated/types/ProcessSwapDepositIntrospectionArgs.d.ts +0 -15
- package/dist/generated/types/ProcessSwapDepositIntrospectionArgs.js +0 -38
- package/dist/generated/types/Program.d.ts +0 -19
- package/dist/generated/types/Program.js +0 -44
- package/dist/generated/types/ProgramStatus.d.ts +0 -20
- package/dist/generated/types/ProgramStatus.js +0 -47
- package/dist/generated/types/RebalanceConfig.d.ts +0 -15
- package/dist/generated/types/RebalanceConfig.js +0 -38
- package/dist/generated/types/Recipient.d.ts +0 -17
- package/dist/generated/types/Recipient.js +0 -42
- package/dist/generated/types/Recipients.d.ts +0 -17
- package/dist/generated/types/Recipients.js +0 -42
- package/dist/generated/types/RedeemJlpArgs.d.ts +0 -15
- package/dist/generated/types/RedeemJlpArgs.js +0 -38
- package/dist/generated/types/Role.d.ts +0 -25
- package/dist/generated/types/Role.js +0 -52
- package/dist/generated/types/ShiftCollateral.d.ts +0 -19
- package/dist/generated/types/ShiftCollateral.js +0 -44
- package/dist/generated/types/ShiftPosition.d.ts +0 -17
- package/dist/generated/types/ShiftPosition.js +0 -42
- package/dist/generated/types/ShortHolding.d.ts +0 -17
- package/dist/generated/types/ShortHolding.js +0 -42
- package/dist/generated/types/SplBase.d.ts +0 -17
- package/dist/generated/types/SplBase.js +0 -42
- package/dist/generated/types/SplMain.d.ts +0 -22
- package/dist/generated/types/SplMain.js +0 -47
- package/dist/generated/types/Spls.d.ts +0 -17
- package/dist/generated/types/Spls.js +0 -42
- package/dist/generated/types/SpotBalanceType.d.ts +0 -20
- package/dist/generated/types/SpotBalanceType.js +0 -47
- package/dist/generated/types/SpotPosition.d.ts +0 -23
- package/dist/generated/types/SpotPosition.js +0 -48
- package/dist/generated/types/Status.d.ts +0 -20
- package/dist/generated/types/Status.js +0 -47
- package/dist/generated/types/Strategy.d.ts +0 -31
- package/dist/generated/types/Strategy.js +0 -56
- package/dist/generated/types/StrategyRoleEntry.d.ts +0 -17
- package/dist/generated/types/StrategyRoleEntry.js +0 -42
- package/dist/generated/types/SubAccount.d.ts +0 -17
- package/dist/generated/types/SubAccount.js +0 -42
- package/dist/generated/types/Update.d.ts +0 -20
- package/dist/generated/types/Update.js +0 -47
- package/dist/generated/types/UserFees.d.ts +0 -20
- package/dist/generated/types/UserFees.js +0 -45
- package/dist/generated/types/ValidityGuardRails.d.ts +0 -18
- package/dist/generated/types/ValidityGuardRails.js +0 -43
- package/dist/generated/types/index.d.ts +0 -83
- package/dist/generated/types/index.js +0 -99
- package/dist/strategies/JlpStrategy.d.ts +0 -17
- package/dist/strategies/JlpStrategy.js +0 -337
- package/dist/strategies/LstStrategy.d.ts +0 -19
- package/dist/strategies/LstStrategy.js +0 -169
- package/dist/strategies/UsdcStrategy.d.ts +0 -12
- package/dist/strategies/UsdcStrategy.js +0 -89
- package/dist/strategies/index.d.ts +0 -3
- package/dist/strategies/index.js +0 -19
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was GENERATED using the solita package.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
-
*
|
|
5
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
-
*/
|
|
7
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
-
import * as web3 from '@solana/web3.js';
|
|
9
|
-
/**
|
|
10
|
-
* @category Instructions
|
|
11
|
-
* @category FreezeProgram
|
|
12
|
-
* @category generated
|
|
13
|
-
*/
|
|
14
|
-
export type FreezeProgramInstructionArgs = {
|
|
15
|
-
freeze: boolean;
|
|
16
|
-
programIndex: number;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @category Instructions
|
|
20
|
-
* @category FreezeProgram
|
|
21
|
-
* @category generated
|
|
22
|
-
*/
|
|
23
|
-
export declare const freezeProgramStruct: beet.BeetArgsStruct<FreezeProgramInstructionArgs & {
|
|
24
|
-
instructionDiscriminator: number[];
|
|
25
|
-
}>;
|
|
26
|
-
/**
|
|
27
|
-
* Accounts required by the _freezeProgram_ instruction
|
|
28
|
-
*
|
|
29
|
-
* @property [_writable_] main
|
|
30
|
-
* @property [_writable_, **signer**] admin
|
|
31
|
-
* @property [_writable_] adminPermissions
|
|
32
|
-
* @category Instructions
|
|
33
|
-
* @category FreezeProgram
|
|
34
|
-
* @category generated
|
|
35
|
-
*/
|
|
36
|
-
export type FreezeProgramInstructionAccounts = {
|
|
37
|
-
main: web3.PublicKey;
|
|
38
|
-
admin: web3.PublicKey;
|
|
39
|
-
systemProgram?: web3.PublicKey;
|
|
40
|
-
adminPermissions: web3.PublicKey;
|
|
41
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
42
|
-
};
|
|
43
|
-
export declare const freezeProgramInstructionDiscriminator: number[];
|
|
44
|
-
/**
|
|
45
|
-
* Creates a _FreezeProgram_ instruction.
|
|
46
|
-
*
|
|
47
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
48
|
-
* @param args to provide as instruction data to the program
|
|
49
|
-
*
|
|
50
|
-
* @category Instructions
|
|
51
|
-
* @category FreezeProgram
|
|
52
|
-
* @category generated
|
|
53
|
-
*/
|
|
54
|
-
export declare function createFreezeProgramInstruction(accounts: FreezeProgramInstructionAccounts, args: FreezeProgramInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was GENERATED using the solita package.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
5
|
-
*
|
|
6
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
-
}) : function(o, v) {
|
|
22
|
-
o["default"] = v;
|
|
23
|
-
});
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
-
__setModuleDefault(result, mod);
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.freezeProgramInstructionDiscriminator = exports.freezeProgramStruct = void 0;
|
|
33
|
-
exports.createFreezeProgramInstruction = createFreezeProgramInstruction;
|
|
34
|
-
const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
35
|
-
const web3 = __importStar(require("@solana/web3.js"));
|
|
36
|
-
/**
|
|
37
|
-
* @category Instructions
|
|
38
|
-
* @category FreezeProgram
|
|
39
|
-
* @category generated
|
|
40
|
-
*/
|
|
41
|
-
exports.freezeProgramStruct = new beet.BeetArgsStruct([
|
|
42
|
-
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
43
|
-
['freeze', beet.bool],
|
|
44
|
-
['programIndex', beet.u8],
|
|
45
|
-
], 'FreezeProgramInstructionArgs');
|
|
46
|
-
exports.freezeProgramInstructionDiscriminator = [
|
|
47
|
-
197, 134, 244, 37, 49, 38, 23, 79,
|
|
48
|
-
];
|
|
49
|
-
/**
|
|
50
|
-
* Creates a _FreezeProgram_ instruction.
|
|
51
|
-
*
|
|
52
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
53
|
-
* @param args to provide as instruction data to the program
|
|
54
|
-
*
|
|
55
|
-
* @category Instructions
|
|
56
|
-
* @category FreezeProgram
|
|
57
|
-
* @category generated
|
|
58
|
-
*/
|
|
59
|
-
function createFreezeProgramInstruction(accounts, args, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
|
|
60
|
-
var _a;
|
|
61
|
-
const [data] = exports.freezeProgramStruct.serialize(Object.assign({ instructionDiscriminator: exports.freezeProgramInstructionDiscriminator }, args));
|
|
62
|
-
const keys = [
|
|
63
|
-
{
|
|
64
|
-
pubkey: accounts.main,
|
|
65
|
-
isWritable: true,
|
|
66
|
-
isSigner: false,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
pubkey: accounts.admin,
|
|
70
|
-
isWritable: true,
|
|
71
|
-
isSigner: true,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
pubkey: (_a = accounts.systemProgram) !== null && _a !== void 0 ? _a : web3.SystemProgram.programId,
|
|
75
|
-
isWritable: false,
|
|
76
|
-
isSigner: false,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
pubkey: accounts.adminPermissions,
|
|
80
|
-
isWritable: true,
|
|
81
|
-
isSigner: false,
|
|
82
|
-
},
|
|
83
|
-
];
|
|
84
|
-
if (accounts.anchorRemainingAccounts != null) {
|
|
85
|
-
for (const acc of accounts.anchorRemainingAccounts) {
|
|
86
|
-
keys.push(acc);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
const ix = new web3.TransactionInstruction({
|
|
90
|
-
programId,
|
|
91
|
-
keys,
|
|
92
|
-
data,
|
|
93
|
-
});
|
|
94
|
-
return ix;
|
|
95
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was GENERATED using the solita package.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
-
*
|
|
5
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
-
*/
|
|
7
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
-
import * as web3 from '@solana/web3.js';
|
|
9
|
-
import { Action } from '../types/Action';
|
|
10
|
-
/**
|
|
11
|
-
* @category Instructions
|
|
12
|
-
* @category FreezeProtocolAction
|
|
13
|
-
* @category generated
|
|
14
|
-
*/
|
|
15
|
-
export type FreezeProtocolActionInstructionArgs = {
|
|
16
|
-
action: Action;
|
|
17
|
-
freeze: boolean;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @category Instructions
|
|
21
|
-
* @category FreezeProtocolAction
|
|
22
|
-
* @category generated
|
|
23
|
-
*/
|
|
24
|
-
export declare const freezeProtocolActionStruct: beet.BeetArgsStruct<FreezeProtocolActionInstructionArgs & {
|
|
25
|
-
instructionDiscriminator: number[];
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Accounts required by the _freezeProtocolAction_ instruction
|
|
29
|
-
*
|
|
30
|
-
* @property [_writable_] main
|
|
31
|
-
* @property [_writable_, **signer**] admin
|
|
32
|
-
* @property [_writable_] adminPermissions
|
|
33
|
-
* @category Instructions
|
|
34
|
-
* @category FreezeProtocolAction
|
|
35
|
-
* @category generated
|
|
36
|
-
*/
|
|
37
|
-
export type FreezeProtocolActionInstructionAccounts = {
|
|
38
|
-
main: web3.PublicKey;
|
|
39
|
-
admin: web3.PublicKey;
|
|
40
|
-
systemProgram?: web3.PublicKey;
|
|
41
|
-
adminPermissions: web3.PublicKey;
|
|
42
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
43
|
-
};
|
|
44
|
-
export declare const freezeProtocolActionInstructionDiscriminator: number[];
|
|
45
|
-
/**
|
|
46
|
-
* Creates a _FreezeProtocolAction_ instruction.
|
|
47
|
-
*
|
|
48
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
49
|
-
* @param args to provide as instruction data to the program
|
|
50
|
-
*
|
|
51
|
-
* @category Instructions
|
|
52
|
-
* @category FreezeProtocolAction
|
|
53
|
-
* @category generated
|
|
54
|
-
*/
|
|
55
|
-
export declare function createFreezeProtocolActionInstruction(accounts: FreezeProtocolActionInstructionAccounts, args: FreezeProtocolActionInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was GENERATED using the solita package.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
5
|
-
*
|
|
6
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
-
}) : function(o, v) {
|
|
22
|
-
o["default"] = v;
|
|
23
|
-
});
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
-
__setModuleDefault(result, mod);
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.freezeProtocolActionInstructionDiscriminator = exports.freezeProtocolActionStruct = void 0;
|
|
33
|
-
exports.createFreezeProtocolActionInstruction = createFreezeProtocolActionInstruction;
|
|
34
|
-
const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
35
|
-
const web3 = __importStar(require("@solana/web3.js"));
|
|
36
|
-
const Action_1 = require("../types/Action");
|
|
37
|
-
/**
|
|
38
|
-
* @category Instructions
|
|
39
|
-
* @category FreezeProtocolAction
|
|
40
|
-
* @category generated
|
|
41
|
-
*/
|
|
42
|
-
exports.freezeProtocolActionStruct = new beet.BeetArgsStruct([
|
|
43
|
-
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
44
|
-
['action', Action_1.actionBeet],
|
|
45
|
-
['freeze', beet.bool],
|
|
46
|
-
], 'FreezeProtocolActionInstructionArgs');
|
|
47
|
-
exports.freezeProtocolActionInstructionDiscriminator = [
|
|
48
|
-
56, 49, 79, 49, 48, 38, 169, 134,
|
|
49
|
-
];
|
|
50
|
-
/**
|
|
51
|
-
* Creates a _FreezeProtocolAction_ instruction.
|
|
52
|
-
*
|
|
53
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
54
|
-
* @param args to provide as instruction data to the program
|
|
55
|
-
*
|
|
56
|
-
* @category Instructions
|
|
57
|
-
* @category FreezeProtocolAction
|
|
58
|
-
* @category generated
|
|
59
|
-
*/
|
|
60
|
-
function createFreezeProtocolActionInstruction(accounts, args, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
|
|
61
|
-
var _a;
|
|
62
|
-
const [data] = exports.freezeProtocolActionStruct.serialize(Object.assign({ instructionDiscriminator: exports.freezeProtocolActionInstructionDiscriminator }, args));
|
|
63
|
-
const keys = [
|
|
64
|
-
{
|
|
65
|
-
pubkey: accounts.main,
|
|
66
|
-
isWritable: true,
|
|
67
|
-
isSigner: false,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
pubkey: accounts.admin,
|
|
71
|
-
isWritable: true,
|
|
72
|
-
isSigner: true,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
pubkey: (_a = accounts.systemProgram) !== null && _a !== void 0 ? _a : web3.SystemProgram.programId,
|
|
76
|
-
isWritable: false,
|
|
77
|
-
isSigner: false,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
pubkey: accounts.adminPermissions,
|
|
81
|
-
isWritable: true,
|
|
82
|
-
isSigner: false,
|
|
83
|
-
},
|
|
84
|
-
];
|
|
85
|
-
if (accounts.anchorRemainingAccounts != null) {
|
|
86
|
-
for (const acc of accounts.anchorRemainingAccounts) {
|
|
87
|
-
keys.push(acc);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
const ix = new web3.TransactionInstruction({
|
|
91
|
-
programId,
|
|
92
|
-
keys,
|
|
93
|
-
data,
|
|
94
|
-
});
|
|
95
|
-
return ix;
|
|
96
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was GENERATED using the solita package.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
-
*
|
|
5
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
-
*/
|
|
7
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
-
import * as web3 from '@solana/web3.js';
|
|
9
|
-
import { Action } from '../types/Action';
|
|
10
|
-
/**
|
|
11
|
-
* @category Instructions
|
|
12
|
-
* @category FreezeStrategyAction
|
|
13
|
-
* @category generated
|
|
14
|
-
*/
|
|
15
|
-
export type FreezeStrategyActionInstructionArgs = {
|
|
16
|
-
action: Action;
|
|
17
|
-
freeze: boolean;
|
|
18
|
-
strategyId: number;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @category Instructions
|
|
22
|
-
* @category FreezeStrategyAction
|
|
23
|
-
* @category generated
|
|
24
|
-
*/
|
|
25
|
-
export declare const freezeStrategyActionStruct: beet.BeetArgsStruct<FreezeStrategyActionInstructionArgs & {
|
|
26
|
-
instructionDiscriminator: number[];
|
|
27
|
-
}>;
|
|
28
|
-
/**
|
|
29
|
-
* Accounts required by the _freezeStrategyAction_ instruction
|
|
30
|
-
*
|
|
31
|
-
* @property [_writable_] main
|
|
32
|
-
* @property [_writable_, **signer**] admin
|
|
33
|
-
* @property [_writable_] strategy
|
|
34
|
-
* @property [_writable_] adminPermissions
|
|
35
|
-
* @category Instructions
|
|
36
|
-
* @category FreezeStrategyAction
|
|
37
|
-
* @category generated
|
|
38
|
-
*/
|
|
39
|
-
export type FreezeStrategyActionInstructionAccounts = {
|
|
40
|
-
main: web3.PublicKey;
|
|
41
|
-
admin: web3.PublicKey;
|
|
42
|
-
systemProgram?: web3.PublicKey;
|
|
43
|
-
strategy: web3.PublicKey;
|
|
44
|
-
adminPermissions: web3.PublicKey;
|
|
45
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
46
|
-
};
|
|
47
|
-
export declare const freezeStrategyActionInstructionDiscriminator: number[];
|
|
48
|
-
/**
|
|
49
|
-
* Creates a _FreezeStrategyAction_ instruction.
|
|
50
|
-
*
|
|
51
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
52
|
-
* @param args to provide as instruction data to the program
|
|
53
|
-
*
|
|
54
|
-
* @category Instructions
|
|
55
|
-
* @category FreezeStrategyAction
|
|
56
|
-
* @category generated
|
|
57
|
-
*/
|
|
58
|
-
export declare function createFreezeStrategyActionInstruction(accounts: FreezeStrategyActionInstructionAccounts, args: FreezeStrategyActionInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This code was GENERATED using the solita package.
|
|
4
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
5
|
-
*
|
|
6
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
-
}) : function(o, v) {
|
|
22
|
-
o["default"] = v;
|
|
23
|
-
});
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
-
__setModuleDefault(result, mod);
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.freezeStrategyActionInstructionDiscriminator = exports.freezeStrategyActionStruct = void 0;
|
|
33
|
-
exports.createFreezeStrategyActionInstruction = createFreezeStrategyActionInstruction;
|
|
34
|
-
const beet = __importStar(require("@metaplex-foundation/beet"));
|
|
35
|
-
const web3 = __importStar(require("@solana/web3.js"));
|
|
36
|
-
const Action_1 = require("../types/Action");
|
|
37
|
-
/**
|
|
38
|
-
* @category Instructions
|
|
39
|
-
* @category FreezeStrategyAction
|
|
40
|
-
* @category generated
|
|
41
|
-
*/
|
|
42
|
-
exports.freezeStrategyActionStruct = new beet.BeetArgsStruct([
|
|
43
|
-
['instructionDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
|
|
44
|
-
['action', Action_1.actionBeet],
|
|
45
|
-
['freeze', beet.bool],
|
|
46
|
-
['strategyId', beet.u8],
|
|
47
|
-
], 'FreezeStrategyActionInstructionArgs');
|
|
48
|
-
exports.freezeStrategyActionInstructionDiscriminator = [
|
|
49
|
-
185, 174, 75, 111, 184, 21, 124, 11,
|
|
50
|
-
];
|
|
51
|
-
/**
|
|
52
|
-
* Creates a _FreezeStrategyAction_ instruction.
|
|
53
|
-
*
|
|
54
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
55
|
-
* @param args to provide as instruction data to the program
|
|
56
|
-
*
|
|
57
|
-
* @category Instructions
|
|
58
|
-
* @category FreezeStrategyAction
|
|
59
|
-
* @category generated
|
|
60
|
-
*/
|
|
61
|
-
function createFreezeStrategyActionInstruction(accounts, args, programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
|
|
62
|
-
var _a;
|
|
63
|
-
const [data] = exports.freezeStrategyActionStruct.serialize(Object.assign({ instructionDiscriminator: exports.freezeStrategyActionInstructionDiscriminator }, args));
|
|
64
|
-
const keys = [
|
|
65
|
-
{
|
|
66
|
-
pubkey: accounts.main,
|
|
67
|
-
isWritable: true,
|
|
68
|
-
isSigner: false,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
pubkey: accounts.admin,
|
|
72
|
-
isWritable: true,
|
|
73
|
-
isSigner: true,
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
pubkey: (_a = accounts.systemProgram) !== null && _a !== void 0 ? _a : web3.SystemProgram.programId,
|
|
77
|
-
isWritable: false,
|
|
78
|
-
isSigner: false,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
pubkey: accounts.strategy,
|
|
82
|
-
isWritable: true,
|
|
83
|
-
isSigner: false,
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
pubkey: accounts.adminPermissions,
|
|
87
|
-
isWritable: true,
|
|
88
|
-
isSigner: false,
|
|
89
|
-
},
|
|
90
|
-
];
|
|
91
|
-
if (accounts.anchorRemainingAccounts != null) {
|
|
92
|
-
for (const acc of accounts.anchorRemainingAccounts) {
|
|
93
|
-
keys.push(acc);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
const ix = new web3.TransactionInstruction({
|
|
97
|
-
programId,
|
|
98
|
-
keys,
|
|
99
|
-
data,
|
|
100
|
-
});
|
|
101
|
-
return ix;
|
|
102
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export * from './addLstDrift';
|
|
2
|
-
export * from './addSubAccount';
|
|
3
|
-
export * from './adjustHedgeS2';
|
|
4
|
-
export * from './captureSpreadDrift';
|
|
5
|
-
export * from './createAdminAccount';
|
|
6
|
-
export * from './createUserStatsAccount';
|
|
7
|
-
export * from './depositDrift';
|
|
8
|
-
export * from './freezeProgram';
|
|
9
|
-
export * from './freezeProtocolAction';
|
|
10
|
-
export * from './freezeStrategyAction';
|
|
11
|
-
export * from './initDriftAccountsS1';
|
|
12
|
-
export * from './initDriftControllerS1';
|
|
13
|
-
export * from './initDriftControllerS2';
|
|
14
|
-
export * from './initDriftControllerS3';
|
|
15
|
-
export * from './initMain';
|
|
16
|
-
export * from './mintDriftS1';
|
|
17
|
-
export * from './mintDriftS2';
|
|
18
|
-
export * from './mintDriftS3';
|
|
19
|
-
export * from './processSwapDeposit';
|
|
20
|
-
export * from './processSwapDepositIntrospection';
|
|
21
|
-
export * from './processSwapWithdraw';
|
|
22
|
-
export * from './processSwapWithdrawIntrospection';
|
|
23
|
-
export * from './rebalanceJlp';
|
|
24
|
-
export * from './redeem2DriftS2';
|
|
25
|
-
export * from './redeemDriftS1';
|
|
26
|
-
export * from './redeemDriftS2';
|
|
27
|
-
export * from './redeemDriftS3';
|
|
28
|
-
export * from './settlePnl';
|
|
29
|
-
export * from './settlePnlMulti';
|
|
30
|
-
export * from './suspendLstProtocol';
|
|
31
|
-
export * from './suspendLstStrategy';
|
|
32
|
-
export * from './swapOrca';
|
|
33
|
-
export * from './swapOrcaTwoHop';
|
|
34
|
-
export * from './updateActionRoleProtocol';
|
|
35
|
-
export * from './updateActionRoleStrategy';
|
|
36
|
-
export * from './updateAttenuation';
|
|
37
|
-
export * from './updateCap';
|
|
38
|
-
export * from './updateRebalanceSlippage';
|
|
39
|
-
export * from './updateRecipients';
|
|
40
|
-
export * from './updateRoleHolderProtocol';
|
|
41
|
-
export * from './updateRoleHolderStrategy';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./addLstDrift"), exports);
|
|
18
|
-
__exportStar(require("./addSubAccount"), exports);
|
|
19
|
-
__exportStar(require("./adjustHedgeS2"), exports);
|
|
20
|
-
__exportStar(require("./captureSpreadDrift"), exports);
|
|
21
|
-
__exportStar(require("./createAdminAccount"), exports);
|
|
22
|
-
__exportStar(require("./createUserStatsAccount"), exports);
|
|
23
|
-
__exportStar(require("./depositDrift"), exports);
|
|
24
|
-
__exportStar(require("./freezeProgram"), exports);
|
|
25
|
-
__exportStar(require("./freezeProtocolAction"), exports);
|
|
26
|
-
__exportStar(require("./freezeStrategyAction"), exports);
|
|
27
|
-
__exportStar(require("./initDriftAccountsS1"), exports);
|
|
28
|
-
__exportStar(require("./initDriftControllerS1"), exports);
|
|
29
|
-
__exportStar(require("./initDriftControllerS2"), exports);
|
|
30
|
-
__exportStar(require("./initDriftControllerS3"), exports);
|
|
31
|
-
__exportStar(require("./initMain"), exports);
|
|
32
|
-
__exportStar(require("./mintDriftS1"), exports);
|
|
33
|
-
__exportStar(require("./mintDriftS2"), exports);
|
|
34
|
-
__exportStar(require("./mintDriftS3"), exports);
|
|
35
|
-
__exportStar(require("./processSwapDeposit"), exports);
|
|
36
|
-
__exportStar(require("./processSwapDepositIntrospection"), exports);
|
|
37
|
-
__exportStar(require("./processSwapWithdraw"), exports);
|
|
38
|
-
__exportStar(require("./processSwapWithdrawIntrospection"), exports);
|
|
39
|
-
__exportStar(require("./rebalanceJlp"), exports);
|
|
40
|
-
__exportStar(require("./redeem2DriftS2"), exports);
|
|
41
|
-
__exportStar(require("./redeemDriftS1"), exports);
|
|
42
|
-
__exportStar(require("./redeemDriftS2"), exports);
|
|
43
|
-
__exportStar(require("./redeemDriftS3"), exports);
|
|
44
|
-
__exportStar(require("./settlePnl"), exports);
|
|
45
|
-
__exportStar(require("./settlePnlMulti"), exports);
|
|
46
|
-
__exportStar(require("./suspendLstProtocol"), exports);
|
|
47
|
-
__exportStar(require("./suspendLstStrategy"), exports);
|
|
48
|
-
__exportStar(require("./swapOrca"), exports);
|
|
49
|
-
__exportStar(require("./swapOrcaTwoHop"), exports);
|
|
50
|
-
__exportStar(require("./updateActionRoleProtocol"), exports);
|
|
51
|
-
__exportStar(require("./updateActionRoleStrategy"), exports);
|
|
52
|
-
__exportStar(require("./updateAttenuation"), exports);
|
|
53
|
-
__exportStar(require("./updateCap"), exports);
|
|
54
|
-
__exportStar(require("./updateRebalanceSlippage"), exports);
|
|
55
|
-
__exportStar(require("./updateRecipients"), exports);
|
|
56
|
-
__exportStar(require("./updateRoleHolderProtocol"), exports);
|
|
57
|
-
__exportStar(require("./updateRoleHolderStrategy"), exports);
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was GENERATED using the solita package.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
|
|
4
|
-
*
|
|
5
|
-
* See: https://github.com/metaplex-foundation/solita
|
|
6
|
-
*/
|
|
7
|
-
import * as beet from '@metaplex-foundation/beet';
|
|
8
|
-
import * as web3 from '@solana/web3.js';
|
|
9
|
-
/**
|
|
10
|
-
* @category Instructions
|
|
11
|
-
* @category InitDriftAccountsS1
|
|
12
|
-
* @category generated
|
|
13
|
-
*/
|
|
14
|
-
export declare const initDriftAccountsS1Struct: beet.BeetArgsStruct<{
|
|
15
|
-
instructionDiscriminator: number[];
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Accounts required by the _initDriftAccountsS1_ instruction
|
|
19
|
-
*
|
|
20
|
-
* @property [_writable_] main
|
|
21
|
-
* @property [_writable_] usdcController
|
|
22
|
-
* @property [] adminPermissions
|
|
23
|
-
* @property [_writable_, **signer**] admin
|
|
24
|
-
* @property [] drift
|
|
25
|
-
* @property [_writable_] state
|
|
26
|
-
* @property [_writable_] userStats
|
|
27
|
-
* @property [_writable_] userAccount0
|
|
28
|
-
* @property [_writable_] userAccount1
|
|
29
|
-
* @category Instructions
|
|
30
|
-
* @category InitDriftAccountsS1
|
|
31
|
-
* @category generated
|
|
32
|
-
*/
|
|
33
|
-
export type InitDriftAccountsS1InstructionAccounts = {
|
|
34
|
-
main: web3.PublicKey;
|
|
35
|
-
usdcController: web3.PublicKey;
|
|
36
|
-
adminPermissions: web3.PublicKey;
|
|
37
|
-
admin: web3.PublicKey;
|
|
38
|
-
drift: web3.PublicKey;
|
|
39
|
-
state: web3.PublicKey;
|
|
40
|
-
userStats: web3.PublicKey;
|
|
41
|
-
userAccount0: web3.PublicKey;
|
|
42
|
-
userAccount1: web3.PublicKey;
|
|
43
|
-
rent?: web3.PublicKey;
|
|
44
|
-
systemProgram?: web3.PublicKey;
|
|
45
|
-
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
46
|
-
};
|
|
47
|
-
export declare const initDriftAccountsS1InstructionDiscriminator: number[];
|
|
48
|
-
/**
|
|
49
|
-
* Creates a _InitDriftAccountsS1_ instruction.
|
|
50
|
-
*
|
|
51
|
-
* @param accounts that will be accessed while the instruction is processed
|
|
52
|
-
* @category Instructions
|
|
53
|
-
* @category InitDriftAccountsS1
|
|
54
|
-
* @category generated
|
|
55
|
-
*/
|
|
56
|
-
export declare function createInitDriftAccountsS1Instruction(accounts: InitDriftAccountsS1InstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|