@reflectmoney/stable.ts 1.1.3 → 1.1.4
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/ApiClient.d.ts +56 -0
- package/dist/classes/PdaClient.d.ts +131 -0
- package/dist/classes/Reflect.d.ts +7 -0
- package/dist/classes/ReflectKeeper.d.ts +105 -0
- package/dist/classes/ReflectTokenisedBond.d.ts +75 -0
- package/dist/classes/Stablecoin.d.ts +219 -0
- package/dist/classes/index.d.ts +4 -0
- package/dist/constants/drift.d.ts +6 -0
- package/dist/constants/index.d.ts +8 -0
- package/dist/constants/jupiter.d.ts +4 -0
- package/dist/constants/lookupTables.d.ts +4 -0
- package/dist/constants/lst.d.ts +3 -0
- package/dist/constants/pyth.d.ts +1 -0
- package/dist/constants/usdc.d.ts +6 -0
- package/dist/constants/wsol.d.ts +6 -0
- package/dist/errors/ReflectError.d.ts +4 -0
- package/dist/generated/reflect_main/accounts/DriftJlpController.d.ts +114 -0
- package/dist/generated/reflect_main/accounts/DriftLstController.d.ts +108 -0
- package/dist/generated/reflect_main/accounts/DriftUsdcController.d.ts +126 -0
- package/dist/generated/reflect_main/accounts/Main.d.ts +110 -0
- package/dist/generated/reflect_main/accounts/PerpMarket.d.ts +226 -0
- package/dist/generated/reflect_main/accounts/PrelaunchOracle.d.ts +130 -0
- package/dist/generated/reflect_main/accounts/PythLazerOracle.d.ts +124 -0
- package/dist/generated/reflect_main/accounts/RebalanceLst.d.ts +111 -0
- package/dist/generated/reflect_main/accounts/SpotMarket.d.ts +377 -0
- package/dist/generated/reflect_main/accounts/User.d.ts +221 -0
- package/dist/generated/reflect_main/accounts/UserPermissions.d.ts +106 -0
- package/dist/generated/reflect_main/accounts/UserStats.d.ts +211 -0
- package/dist/generated/reflect_main/accounts/index.d.ts +38 -0
- package/dist/generated/reflect_main/errors/index.d.ts +969 -0
- package/dist/generated/reflect_main/index.d.ts +19 -0
- package/dist/generated/reflect_main/instructions/addLstDrift.d.ts +49 -0
- package/dist/generated/reflect_main/instructions/addSubAccount.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/captureSpreadDrift.d.ts +66 -0
- package/dist/generated/reflect_main/instructions/captureSpreadDriftS1.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/createAdminAccount.d.ts +51 -0
- package/dist/generated/reflect_main/instructions/createUserStatsAccount.d.ts +52 -0
- package/dist/generated/reflect_main/instructions/depositDrift.d.ts +73 -0
- package/dist/generated/reflect_main/instructions/freezeProgram.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/freezeProtocolAction.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/freezeStrategyAction.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/index.d.ts +34 -0
- package/dist/generated/reflect_main/instructions/initDriftAccountsS1.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/initDriftControllerS1.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/initDriftControllerS3.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/initMain.d.ts +43 -0
- package/dist/generated/reflect_main/instructions/mintDriftS1.d.ts +86 -0
- package/dist/generated/reflect_main/instructions/mintDriftS3.d.ts +86 -0
- package/dist/generated/reflect_main/instructions/processSwapDeposit.d.ts +69 -0
- package/dist/generated/reflect_main/instructions/processSwapWithdraw.d.ts +69 -0
- package/dist/generated/reflect_main/instructions/redeemDriftS1.d.ts +87 -0
- package/dist/generated/reflect_main/instructions/redeemDriftS3.d.ts +87 -0
- package/dist/generated/reflect_main/instructions/settlePnl.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/settlePnlMulti.d.ts +65 -0
- package/dist/generated/reflect_main/instructions/suspendSplProtocol.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/suspendSplStrategy.d.ts +56 -0
- package/dist/generated/reflect_main/instructions/swapOrca.d.ts +81 -0
- package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.d.ts +101 -0
- package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/updateAttenuation.d.ts +57 -0
- package/dist/generated/reflect_main/instructions/updateCap.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/updateRecipients.d.ts +56 -0
- package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.d.ts +60 -0
- package/dist/generated/reflect_main/types/AMM.d.ts +102 -0
- package/dist/generated/reflect_main/types/AccKey.d.ts +15 -0
- package/dist/generated/reflect_main/types/AccessControl.d.ts +18 -0
- package/dist/generated/reflect_main/types/AccessMap.d.ts +17 -0
- package/dist/generated/reflect_main/types/Action.d.ts +35 -0
- package/dist/generated/reflect_main/types/ActionMapping.d.ts +19 -0
- package/dist/generated/reflect_main/types/AssetTier.d.ts +23 -0
- package/dist/generated/reflect_main/types/Attenuation.d.ts +16 -0
- package/dist/generated/reflect_main/types/BalanceType.d.ts +20 -0
- package/dist/generated/reflect_main/types/Capture.d.ts +17 -0
- package/dist/generated/reflect_main/types/ContractTier.d.ts +24 -0
- package/dist/generated/reflect_main/types/ContractType.d.ts +20 -0
- package/dist/generated/reflect_main/types/CorpAction.d.ts +19 -0
- package/dist/generated/reflect_main/types/CustodyInfo.d.ts +20 -0
- package/dist/generated/reflect_main/types/DirectionCollateral.d.ts +20 -0
- package/dist/generated/reflect_main/types/DirectionPosition.d.ts +20 -0
- package/dist/generated/reflect_main/types/DriftControllerBase.d.ts +15 -0
- package/dist/generated/reflect_main/types/DriftJlpControllerFixedAccounts.d.ts +18 -0
- package/dist/generated/reflect_main/types/DriftLstData.d.ts +17 -0
- package/dist/generated/reflect_main/types/Ema.d.ts +17 -0
- package/dist/generated/reflect_main/types/Externals.d.ts +16 -0
- package/dist/generated/reflect_main/types/FlowControl.d.ts +17 -0
- package/dist/generated/reflect_main/types/HistoricalIndexData.d.ts +19 -0
- package/dist/generated/reflect_main/types/HistoricalOracleData.d.ts +20 -0
- package/dist/generated/reflect_main/types/Holding.d.ts +21 -0
- package/dist/generated/reflect_main/types/Holdings.d.ts +17 -0
- package/dist/generated/reflect_main/types/InsuranceClaim.d.ts +19 -0
- package/dist/generated/reflect_main/types/InsuranceFund.d.ts +24 -0
- package/dist/generated/reflect_main/types/JlpRebalanceSettings.d.ts +15 -0
- package/dist/generated/reflect_main/types/KillSwitch.d.ts +15 -0
- package/dist/generated/reflect_main/types/LevelRoles.d.ts +16 -0
- package/dist/generated/reflect_main/types/MarketStatus.d.ts +27 -0
- package/dist/generated/reflect_main/types/MarketType.d.ts +20 -0
- package/dist/generated/reflect_main/types/ModifyOrderParams.d.ts +32 -0
- package/dist/generated/reflect_main/types/ModifyOrderPolicy.d.ts +20 -0
- package/dist/generated/reflect_main/types/Movements.d.ts +19 -0
- package/dist/generated/reflect_main/types/OracleGuardRails.d.ts +18 -0
- package/dist/generated/reflect_main/types/OracleSource.d.ts +34 -0
- package/dist/generated/reflect_main/types/OracleValidity.d.ts +25 -0
- package/dist/generated/reflect_main/types/Order.d.ts +43 -0
- package/dist/generated/reflect_main/types/OrderDirection.d.ts +20 -0
- package/dist/generated/reflect_main/types/OrderParams.d.ts +36 -0
- package/dist/generated/reflect_main/types/OrderStatus.d.ts +22 -0
- package/dist/generated/reflect_main/types/OrderTriggerCondition.d.ts +22 -0
- package/dist/generated/reflect_main/types/OrderType.d.ts +23 -0
- package/dist/generated/reflect_main/types/PermissionLevel.d.ts +45 -0
- package/dist/generated/reflect_main/types/PerpHedge.d.ts +17 -0
- package/dist/generated/reflect_main/types/PerpPosition.d.ts +29 -0
- package/dist/generated/reflect_main/types/PoolBalance.d.ts +17 -0
- package/dist/generated/reflect_main/types/Position.d.ts +20 -0
- package/dist/generated/reflect_main/types/PositionDirection.d.ts +20 -0
- package/dist/generated/reflect_main/types/PositionDrift.d.ts +18 -0
- package/dist/generated/reflect_main/types/PostOnlyParam.d.ts +22 -0
- package/dist/generated/reflect_main/types/Price.d.ts +41 -0
- package/dist/generated/reflect_main/types/PriceComp.d.ts +19 -0
- package/dist/generated/reflect_main/types/PriceDivergenceGuardRails.d.ts +16 -0
- package/dist/generated/reflect_main/types/PriceInfo.d.ts +21 -0
- package/dist/generated/reflect_main/types/PriceStatus.d.ts +22 -0
- package/dist/generated/reflect_main/types/PriceType.d.ts +20 -0
- package/dist/generated/reflect_main/types/Program.d.ts +19 -0
- package/dist/generated/reflect_main/types/ProgramStatus.d.ts +20 -0
- package/dist/generated/reflect_main/types/Recipient.d.ts +17 -0
- package/dist/generated/reflect_main/types/Recipients.d.ts +17 -0
- package/dist/generated/reflect_main/types/Role.d.ts +25 -0
- package/dist/generated/reflect_main/types/ShiftCollateral.d.ts +19 -0
- package/dist/generated/reflect_main/types/ShiftPosition.d.ts +17 -0
- package/dist/generated/reflect_main/types/ShortHolding.d.ts +17 -0
- package/dist/generated/reflect_main/types/SplBase.d.ts +17 -0
- package/dist/generated/reflect_main/types/SplMain.d.ts +22 -0
- package/dist/generated/reflect_main/types/Spls.d.ts +17 -0
- package/dist/generated/reflect_main/types/SpotBalanceType.d.ts +20 -0
- package/dist/generated/reflect_main/types/SpotPosition.d.ts +23 -0
- package/dist/generated/reflect_main/types/Status.d.ts +21 -0
- package/dist/generated/reflect_main/types/Strategy.d.ts +32 -0
- package/dist/generated/reflect_main/types/StrategyPadding.d.ts +15 -0
- package/dist/generated/reflect_main/types/StrategyRoleEntry.d.ts +17 -0
- package/dist/generated/reflect_main/types/SubAccount.d.ts +17 -0
- package/dist/generated/reflect_main/types/Update.d.ts +20 -0
- package/dist/generated/reflect_main/types/UserFees.d.ts +20 -0
- package/dist/generated/reflect_main/types/ValidityGuardRails.d.ts +18 -0
- package/dist/generated/reflect_main/types/index.d.ts +80 -0
- package/dist/generated/reflect_tokenised_bonds/accounts/Admin.d.ts +99 -0
- package/dist/generated/reflect_tokenised_bonds/accounts/Config.d.ts +106 -0
- package/dist/generated/reflect_tokenised_bonds/accounts/Vault.d.ts +114 -0
- package/dist/generated/reflect_tokenised_bonds/accounts/index.d.ts +11 -0
- package/dist/generated/reflect_tokenised_bonds/errors/index.d.ts +144 -0
- package/dist/generated/reflect_tokenised_bonds/index.d.ts +19 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/createVault.d.ts +50 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/deposit.d.ts +62 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/index.d.ts +4 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/initialize.d.ts +43 -0
- package/dist/generated/reflect_tokenised_bonds/instructions/withdraw.d.ts +62 -0
- package/dist/generated/reflect_tokenised_bonds/types/DepositArgs.d.ts +17 -0
- package/dist/generated/reflect_tokenised_bonds/types/Permissions.d.ts +21 -0
- package/dist/generated/reflect_tokenised_bonds/types/WithdrawArgs.d.ts +16 -0
- package/dist/generated/reflect_tokenised_bonds/types/index.d.ts +3 -0
- package/dist/helpers/getOrcaQuote.d.ts +3 -0
- package/dist/idl/perpetuals.d.ts +5771 -0
- package/dist/index.d.ts +9 -0
- package/dist/stablecoins/LstStablecoin.d.ts +103 -0
- package/dist/stablecoins/UsdcPlusStablecoin.d.ts +86 -0
- package/dist/stablecoins/UsdjStablecoin.d.ts +1 -0
- package/dist/stablecoins/index.d.ts +3 -0
- package/dist/types/api.d.ts +1172 -0
- package/dist/types/api.js +6 -0
- package/dist/types/index.d.ts +81 -0
- package/dist/types/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
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 SettlePnl
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export declare const settlePnlStruct: beet.BeetArgsStruct<{
|
|
15
|
+
instructionDiscriminator: number[];
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Accounts required by the _settlePnl_ instruction
|
|
19
|
+
*
|
|
20
|
+
* @property [_writable_, **signer**] settler
|
|
21
|
+
* @property [_writable_] main
|
|
22
|
+
* @property [_writable_] strategyController
|
|
23
|
+
* @property [] adminPermissions (optional)
|
|
24
|
+
* @property [] drift
|
|
25
|
+
* @property [_writable_] state
|
|
26
|
+
* @property [_writable_] userAccount
|
|
27
|
+
* @property [_writable_] usdcMarketVault
|
|
28
|
+
* @category Instructions
|
|
29
|
+
* @category SettlePnl
|
|
30
|
+
* @category generated
|
|
31
|
+
*/
|
|
32
|
+
export type SettlePnlInstructionAccounts = {
|
|
33
|
+
settler: web3.PublicKey;
|
|
34
|
+
main: web3.PublicKey;
|
|
35
|
+
strategyController: web3.PublicKey;
|
|
36
|
+
adminPermissions?: web3.PublicKey;
|
|
37
|
+
drift: web3.PublicKey;
|
|
38
|
+
state: web3.PublicKey;
|
|
39
|
+
userAccount: web3.PublicKey;
|
|
40
|
+
usdcMarketVault: web3.PublicKey;
|
|
41
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
42
|
+
};
|
|
43
|
+
export declare const settlePnlInstructionDiscriminator: number[];
|
|
44
|
+
/**
|
|
45
|
+
* Creates a _SettlePnl_ instruction.
|
|
46
|
+
*
|
|
47
|
+
* Optional accounts that are not provided default to the program ID since
|
|
48
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
49
|
+
*
|
|
50
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
51
|
+
* @category Instructions
|
|
52
|
+
* @category SettlePnl
|
|
53
|
+
* @category generated
|
|
54
|
+
*/
|
|
55
|
+
export declare function createSettlePnlInstruction(accounts: SettlePnlInstructionAccounts, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 SettlePnlMulti
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type SettlePnlMultiInstructionArgs = {
|
|
15
|
+
marketIndexes: number[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @category Instructions
|
|
19
|
+
* @category SettlePnlMulti
|
|
20
|
+
* @category generated
|
|
21
|
+
*/
|
|
22
|
+
export declare const settlePnlMultiStruct: beet.FixableBeetArgsStruct<SettlePnlMultiInstructionArgs & {
|
|
23
|
+
instructionDiscriminator: number[];
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Accounts required by the _settlePnlMulti_ instruction
|
|
27
|
+
*
|
|
28
|
+
* @property [_writable_, **signer**] settler
|
|
29
|
+
* @property [_writable_] main
|
|
30
|
+
* @property [_writable_] strategyController
|
|
31
|
+
* @property [] adminPermissions (optional)
|
|
32
|
+
* @property [] drift
|
|
33
|
+
* @property [_writable_] state
|
|
34
|
+
* @property [_writable_] userAccount
|
|
35
|
+
* @property [_writable_] usdcMarketVault
|
|
36
|
+
* @category Instructions
|
|
37
|
+
* @category SettlePnlMulti
|
|
38
|
+
* @category generated
|
|
39
|
+
*/
|
|
40
|
+
export type SettlePnlMultiInstructionAccounts = {
|
|
41
|
+
settler: web3.PublicKey;
|
|
42
|
+
main: web3.PublicKey;
|
|
43
|
+
strategyController: web3.PublicKey;
|
|
44
|
+
adminPermissions?: web3.PublicKey;
|
|
45
|
+
drift: web3.PublicKey;
|
|
46
|
+
state: web3.PublicKey;
|
|
47
|
+
userAccount: web3.PublicKey;
|
|
48
|
+
usdcMarketVault: web3.PublicKey;
|
|
49
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
50
|
+
};
|
|
51
|
+
export declare const settlePnlMultiInstructionDiscriminator: number[];
|
|
52
|
+
/**
|
|
53
|
+
* Creates a _SettlePnlMulti_ instruction.
|
|
54
|
+
*
|
|
55
|
+
* Optional accounts that are not provided default to the program ID since
|
|
56
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
57
|
+
*
|
|
58
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
59
|
+
* @param args to provide as instruction data to the program
|
|
60
|
+
*
|
|
61
|
+
* @category Instructions
|
|
62
|
+
* @category SettlePnlMulti
|
|
63
|
+
* @category generated
|
|
64
|
+
*/
|
|
65
|
+
export declare function createSettlePnlMultiInstruction(accounts: SettlePnlMultiInstructionAccounts, args: SettlePnlMultiInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 web3 from '@solana/web3.js';
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
9
|
+
/**
|
|
10
|
+
* @category Instructions
|
|
11
|
+
* @category SuspendSplProtocol
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type SuspendSplProtocolInstructionArgs = {
|
|
15
|
+
lstMint: web3.PublicKey;
|
|
16
|
+
freeze: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @category Instructions
|
|
20
|
+
* @category SuspendSplProtocol
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export declare const suspendSplProtocolStruct: beet.BeetArgsStruct<SuspendSplProtocolInstructionArgs & {
|
|
24
|
+
instructionDiscriminator: number[];
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Accounts required by the _suspendSplProtocol_ instruction
|
|
28
|
+
*
|
|
29
|
+
* @property [_writable_] main
|
|
30
|
+
* @property [_writable_, **signer**] admin
|
|
31
|
+
* @property [_writable_] adminPermissions
|
|
32
|
+
* @category Instructions
|
|
33
|
+
* @category SuspendSplProtocol
|
|
34
|
+
* @category generated
|
|
35
|
+
*/
|
|
36
|
+
export type SuspendSplProtocolInstructionAccounts = {
|
|
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 suspendSplProtocolInstructionDiscriminator: number[];
|
|
44
|
+
/**
|
|
45
|
+
* Creates a _SuspendSplProtocol_ 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 SuspendSplProtocol
|
|
52
|
+
* @category generated
|
|
53
|
+
*/
|
|
54
|
+
export declare function createSuspendSplProtocolInstruction(accounts: SuspendSplProtocolInstructionAccounts, args: SuspendSplProtocolInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 web3 from '@solana/web3.js';
|
|
8
|
+
import * as beet from '@metaplex-foundation/beet';
|
|
9
|
+
/**
|
|
10
|
+
* @category Instructions
|
|
11
|
+
* @category SuspendSplStrategy
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type SuspendSplStrategyInstructionArgs = {
|
|
15
|
+
lstMint: web3.PublicKey;
|
|
16
|
+
freeze: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @category Instructions
|
|
20
|
+
* @category SuspendSplStrategy
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export declare const suspendSplStrategyStruct: beet.BeetArgsStruct<SuspendSplStrategyInstructionArgs & {
|
|
24
|
+
instructionDiscriminator: number[];
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Accounts required by the _suspendSplStrategy_ instruction
|
|
28
|
+
*
|
|
29
|
+
* @property [_writable_] main
|
|
30
|
+
* @property [_writable_, **signer**] admin
|
|
31
|
+
* @property [_writable_] strategy
|
|
32
|
+
* @property [_writable_] adminPermissions
|
|
33
|
+
* @category Instructions
|
|
34
|
+
* @category SuspendSplStrategy
|
|
35
|
+
* @category generated
|
|
36
|
+
*/
|
|
37
|
+
export type SuspendSplStrategyInstructionAccounts = {
|
|
38
|
+
main: web3.PublicKey;
|
|
39
|
+
admin: web3.PublicKey;
|
|
40
|
+
systemProgram?: web3.PublicKey;
|
|
41
|
+
strategy: web3.PublicKey;
|
|
42
|
+
adminPermissions: web3.PublicKey;
|
|
43
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
44
|
+
};
|
|
45
|
+
export declare const suspendSplStrategyInstructionDiscriminator: number[];
|
|
46
|
+
/**
|
|
47
|
+
* Creates a _SuspendSplStrategy_ instruction.
|
|
48
|
+
*
|
|
49
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
50
|
+
* @param args to provide as instruction data to the program
|
|
51
|
+
*
|
|
52
|
+
* @category Instructions
|
|
53
|
+
* @category SuspendSplStrategy
|
|
54
|
+
* @category generated
|
|
55
|
+
*/
|
|
56
|
+
export declare function createSuspendSplStrategyInstruction(accounts: SuspendSplStrategyInstructionAccounts, args: SuspendSplStrategyInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 SwapOrca
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type SwapOrcaInstructionArgs = {
|
|
15
|
+
amount: beet.bignum;
|
|
16
|
+
otherAmountThreshold: beet.bignum;
|
|
17
|
+
sqrtPriceLimit: beet.bignum;
|
|
18
|
+
aToB: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @category Instructions
|
|
22
|
+
* @category SwapOrca
|
|
23
|
+
* @category generated
|
|
24
|
+
*/
|
|
25
|
+
export declare const swapOrcaStruct: beet.BeetArgsStruct<SwapOrcaInstructionArgs & {
|
|
26
|
+
instructionDiscriminator: number[];
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Accounts required by the _swapOrca_ instruction
|
|
30
|
+
*
|
|
31
|
+
* @property [_writable_, **signer**] admin
|
|
32
|
+
* @property [] main
|
|
33
|
+
* @property [_writable_] strategy
|
|
34
|
+
* @property [] adminPermissions (optional)
|
|
35
|
+
* @property [_writable_] whirlpool
|
|
36
|
+
* @property [] whirlpoolProgram
|
|
37
|
+
* @property [_writable_] tokenOwnerAccountA
|
|
38
|
+
* @property [_writable_] tokenVaultA
|
|
39
|
+
* @property [_writable_] tokenOwnerAccountB
|
|
40
|
+
* @property [_writable_] tokenVaultB
|
|
41
|
+
* @property [_writable_] tickArray0
|
|
42
|
+
* @property [_writable_] tickArray1
|
|
43
|
+
* @property [_writable_] tickArray2
|
|
44
|
+
* @property [_writable_] oracle
|
|
45
|
+
* @category Instructions
|
|
46
|
+
* @category SwapOrca
|
|
47
|
+
* @category generated
|
|
48
|
+
*/
|
|
49
|
+
export type SwapOrcaInstructionAccounts = {
|
|
50
|
+
admin: web3.PublicKey;
|
|
51
|
+
main: web3.PublicKey;
|
|
52
|
+
strategy: web3.PublicKey;
|
|
53
|
+
adminPermissions?: web3.PublicKey;
|
|
54
|
+
whirlpool: web3.PublicKey;
|
|
55
|
+
whirlpoolProgram: web3.PublicKey;
|
|
56
|
+
tokenProgram?: web3.PublicKey;
|
|
57
|
+
tokenOwnerAccountA: web3.PublicKey;
|
|
58
|
+
tokenVaultA: web3.PublicKey;
|
|
59
|
+
tokenOwnerAccountB: web3.PublicKey;
|
|
60
|
+
tokenVaultB: web3.PublicKey;
|
|
61
|
+
tickArray0: web3.PublicKey;
|
|
62
|
+
tickArray1: web3.PublicKey;
|
|
63
|
+
tickArray2: web3.PublicKey;
|
|
64
|
+
oracle: web3.PublicKey;
|
|
65
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
66
|
+
};
|
|
67
|
+
export declare const swapOrcaInstructionDiscriminator: number[];
|
|
68
|
+
/**
|
|
69
|
+
* Creates a _SwapOrca_ instruction.
|
|
70
|
+
*
|
|
71
|
+
* Optional accounts that are not provided default to the program ID since
|
|
72
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
73
|
+
*
|
|
74
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
75
|
+
* @param args to provide as instruction data to the program
|
|
76
|
+
*
|
|
77
|
+
* @category Instructions
|
|
78
|
+
* @category SwapOrca
|
|
79
|
+
* @category generated
|
|
80
|
+
*/
|
|
81
|
+
export declare function createSwapOrcaInstruction(accounts: SwapOrcaInstructionAccounts, args: SwapOrcaInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,101 @@
|
|
|
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 SwapOrcaTwoHop
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type SwapOrcaTwoHopInstructionArgs = {
|
|
15
|
+
amount: beet.bignum;
|
|
16
|
+
otherAmountThreshold: beet.bignum;
|
|
17
|
+
aToBOne: boolean;
|
|
18
|
+
aToBTwo: boolean;
|
|
19
|
+
sqrtPriceLimitOne: beet.bignum;
|
|
20
|
+
sqrtPriceLimitTwo: beet.bignum;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @category Instructions
|
|
24
|
+
* @category SwapOrcaTwoHop
|
|
25
|
+
* @category generated
|
|
26
|
+
*/
|
|
27
|
+
export declare const swapOrcaTwoHopStruct: beet.BeetArgsStruct<SwapOrcaTwoHopInstructionArgs & {
|
|
28
|
+
instructionDiscriminator: number[];
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Accounts required by the _swapOrcaTwoHop_ instruction
|
|
32
|
+
*
|
|
33
|
+
* @property [_writable_, **signer**] admin
|
|
34
|
+
* @property [] main
|
|
35
|
+
* @property [_writable_] strategy
|
|
36
|
+
* @property [] adminPermissions (optional)
|
|
37
|
+
* @property [] whirlpoolProgram
|
|
38
|
+
* @property [_writable_] whirlpoolOne
|
|
39
|
+
* @property [_writable_] whirlpoolTwo
|
|
40
|
+
* @property [_writable_] tokenOwnerAccountOneA
|
|
41
|
+
* @property [_writable_] tokenVaultOneA
|
|
42
|
+
* @property [_writable_] tokenOwnerAccountOneB
|
|
43
|
+
* @property [_writable_] tokenVaultOneB
|
|
44
|
+
* @property [_writable_] tokenOwnerAccountTwoA
|
|
45
|
+
* @property [_writable_] tokenVaultTwoA
|
|
46
|
+
* @property [_writable_] tokenOwnerAccountTwoB
|
|
47
|
+
* @property [_writable_] tokenVaultTwoB
|
|
48
|
+
* @property [_writable_] tickArrayOne0
|
|
49
|
+
* @property [_writable_] tickArrayOne1
|
|
50
|
+
* @property [_writable_] tickArrayOne2
|
|
51
|
+
* @property [_writable_] tickArrayTwo0
|
|
52
|
+
* @property [_writable_] tickArrayTwo1
|
|
53
|
+
* @property [_writable_] tickArrayTwo2
|
|
54
|
+
* @property [_writable_] oracleOne
|
|
55
|
+
* @property [_writable_] oracleTwo
|
|
56
|
+
* @category Instructions
|
|
57
|
+
* @category SwapOrcaTwoHop
|
|
58
|
+
* @category generated
|
|
59
|
+
*/
|
|
60
|
+
export type SwapOrcaTwoHopInstructionAccounts = {
|
|
61
|
+
admin: web3.PublicKey;
|
|
62
|
+
main: web3.PublicKey;
|
|
63
|
+
strategy: web3.PublicKey;
|
|
64
|
+
adminPermissions?: web3.PublicKey;
|
|
65
|
+
whirlpoolProgram: web3.PublicKey;
|
|
66
|
+
tokenProgram?: web3.PublicKey;
|
|
67
|
+
whirlpoolOne: web3.PublicKey;
|
|
68
|
+
whirlpoolTwo: web3.PublicKey;
|
|
69
|
+
tokenOwnerAccountOneA: web3.PublicKey;
|
|
70
|
+
tokenVaultOneA: web3.PublicKey;
|
|
71
|
+
tokenOwnerAccountOneB: web3.PublicKey;
|
|
72
|
+
tokenVaultOneB: web3.PublicKey;
|
|
73
|
+
tokenOwnerAccountTwoA: web3.PublicKey;
|
|
74
|
+
tokenVaultTwoA: web3.PublicKey;
|
|
75
|
+
tokenOwnerAccountTwoB: web3.PublicKey;
|
|
76
|
+
tokenVaultTwoB: web3.PublicKey;
|
|
77
|
+
tickArrayOne0: web3.PublicKey;
|
|
78
|
+
tickArrayOne1: web3.PublicKey;
|
|
79
|
+
tickArrayOne2: web3.PublicKey;
|
|
80
|
+
tickArrayTwo0: web3.PublicKey;
|
|
81
|
+
tickArrayTwo1: web3.PublicKey;
|
|
82
|
+
tickArrayTwo2: web3.PublicKey;
|
|
83
|
+
oracleOne: web3.PublicKey;
|
|
84
|
+
oracleTwo: web3.PublicKey;
|
|
85
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
86
|
+
};
|
|
87
|
+
export declare const swapOrcaTwoHopInstructionDiscriminator: number[];
|
|
88
|
+
/**
|
|
89
|
+
* Creates a _SwapOrcaTwoHop_ instruction.
|
|
90
|
+
*
|
|
91
|
+
* Optional accounts that are not provided default to the program ID since
|
|
92
|
+
* this was indicated in the IDL from which this instruction was generated.
|
|
93
|
+
*
|
|
94
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
95
|
+
* @param args to provide as instruction data to the program
|
|
96
|
+
*
|
|
97
|
+
* @category Instructions
|
|
98
|
+
* @category SwapOrcaTwoHop
|
|
99
|
+
* @category generated
|
|
100
|
+
*/
|
|
101
|
+
export declare function createSwapOrcaTwoHopInstruction(accounts: SwapOrcaTwoHopInstructionAccounts, args: SwapOrcaTwoHopInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import { Role } from '../types/Role';
|
|
11
|
+
import { Update } from '../types/Update';
|
|
12
|
+
/**
|
|
13
|
+
* @category Instructions
|
|
14
|
+
* @category UpdateActionRoleProtocol
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export type UpdateActionRoleProtocolInstructionArgs = {
|
|
18
|
+
action: Action;
|
|
19
|
+
role: Role;
|
|
20
|
+
update: Update;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @category Instructions
|
|
24
|
+
* @category UpdateActionRoleProtocol
|
|
25
|
+
* @category generated
|
|
26
|
+
*/
|
|
27
|
+
export declare const updateActionRoleProtocolStruct: beet.BeetArgsStruct<UpdateActionRoleProtocolInstructionArgs & {
|
|
28
|
+
instructionDiscriminator: number[];
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Accounts required by the _updateActionRoleProtocol_ instruction
|
|
32
|
+
*
|
|
33
|
+
* @property [_writable_] main
|
|
34
|
+
* @property [_writable_, **signer**] admin
|
|
35
|
+
* @property [_writable_] adminPermissions
|
|
36
|
+
* @category Instructions
|
|
37
|
+
* @category UpdateActionRoleProtocol
|
|
38
|
+
* @category generated
|
|
39
|
+
*/
|
|
40
|
+
export type UpdateActionRoleProtocolInstructionAccounts = {
|
|
41
|
+
main: web3.PublicKey;
|
|
42
|
+
admin: web3.PublicKey;
|
|
43
|
+
systemProgram?: web3.PublicKey;
|
|
44
|
+
adminPermissions: web3.PublicKey;
|
|
45
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
46
|
+
};
|
|
47
|
+
export declare const updateActionRoleProtocolInstructionDiscriminator: number[];
|
|
48
|
+
/**
|
|
49
|
+
* Creates a _UpdateActionRoleProtocol_ 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 UpdateActionRoleProtocol
|
|
56
|
+
* @category generated
|
|
57
|
+
*/
|
|
58
|
+
export declare function createUpdateActionRoleProtocolInstruction(accounts: UpdateActionRoleProtocolInstructionAccounts, args: UpdateActionRoleProtocolInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import { Role } from '../types/Role';
|
|
11
|
+
import { Update } from '../types/Update';
|
|
12
|
+
/**
|
|
13
|
+
* @category Instructions
|
|
14
|
+
* @category UpdateActionRoleStrategy
|
|
15
|
+
* @category generated
|
|
16
|
+
*/
|
|
17
|
+
export type UpdateActionRoleStrategyInstructionArgs = {
|
|
18
|
+
action: Action;
|
|
19
|
+
role: Role;
|
|
20
|
+
update: Update;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @category Instructions
|
|
24
|
+
* @category UpdateActionRoleStrategy
|
|
25
|
+
* @category generated
|
|
26
|
+
*/
|
|
27
|
+
export declare const updateActionRoleStrategyStruct: beet.BeetArgsStruct<UpdateActionRoleStrategyInstructionArgs & {
|
|
28
|
+
instructionDiscriminator: number[];
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Accounts required by the _updateActionRoleStrategy_ instruction
|
|
32
|
+
*
|
|
33
|
+
* @property [_writable_] main
|
|
34
|
+
* @property [_writable_, **signer**] admin
|
|
35
|
+
* @property [_writable_] strategy
|
|
36
|
+
* @property [_writable_] adminPermissions
|
|
37
|
+
* @category Instructions
|
|
38
|
+
* @category UpdateActionRoleStrategy
|
|
39
|
+
* @category generated
|
|
40
|
+
*/
|
|
41
|
+
export type UpdateActionRoleStrategyInstructionAccounts = {
|
|
42
|
+
main: web3.PublicKey;
|
|
43
|
+
admin: web3.PublicKey;
|
|
44
|
+
systemProgram?: web3.PublicKey;
|
|
45
|
+
strategy: web3.PublicKey;
|
|
46
|
+
adminPermissions: web3.PublicKey;
|
|
47
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
48
|
+
};
|
|
49
|
+
export declare const updateActionRoleStrategyInstructionDiscriminator: number[];
|
|
50
|
+
/**
|
|
51
|
+
* Creates a _UpdateActionRoleStrategy_ 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 UpdateActionRoleStrategy
|
|
58
|
+
* @category generated
|
|
59
|
+
*/
|
|
60
|
+
export declare function createUpdateActionRoleStrategyInstruction(accounts: UpdateActionRoleStrategyInstructionAccounts, args: UpdateActionRoleStrategyInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 UpdateAttenuation
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type UpdateAttenuationInstructionArgs = {
|
|
15
|
+
deposit: boolean;
|
|
16
|
+
base: beet.COption<number>;
|
|
17
|
+
flex: beet.COption<number>;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @category Instructions
|
|
21
|
+
* @category UpdateAttenuation
|
|
22
|
+
* @category generated
|
|
23
|
+
*/
|
|
24
|
+
export declare const updateAttenuationStruct: beet.FixableBeetArgsStruct<UpdateAttenuationInstructionArgs & {
|
|
25
|
+
instructionDiscriminator: number[];
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Accounts required by the _updateAttenuation_ instruction
|
|
29
|
+
*
|
|
30
|
+
* @property [_writable_] main
|
|
31
|
+
* @property [_writable_, **signer**] admin
|
|
32
|
+
* @property [_writable_] strategy
|
|
33
|
+
* @property [_writable_] adminPermissions
|
|
34
|
+
* @category Instructions
|
|
35
|
+
* @category UpdateAttenuation
|
|
36
|
+
* @category generated
|
|
37
|
+
*/
|
|
38
|
+
export type UpdateAttenuationInstructionAccounts = {
|
|
39
|
+
main: web3.PublicKey;
|
|
40
|
+
admin: web3.PublicKey;
|
|
41
|
+
systemProgram?: web3.PublicKey;
|
|
42
|
+
strategy: web3.PublicKey;
|
|
43
|
+
adminPermissions: web3.PublicKey;
|
|
44
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
45
|
+
};
|
|
46
|
+
export declare const updateAttenuationInstructionDiscriminator: number[];
|
|
47
|
+
/**
|
|
48
|
+
* Creates a _UpdateAttenuation_ instruction.
|
|
49
|
+
*
|
|
50
|
+
* @param accounts that will be accessed while the instruction is processed
|
|
51
|
+
* @param args to provide as instruction data to the program
|
|
52
|
+
*
|
|
53
|
+
* @category Instructions
|
|
54
|
+
* @category UpdateAttenuation
|
|
55
|
+
* @category generated
|
|
56
|
+
*/
|
|
57
|
+
export declare function createUpdateAttenuationInstruction(accounts: UpdateAttenuationInstructionAccounts, args: UpdateAttenuationInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 UpdateCap
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type UpdateCapInstructionArgs = {
|
|
15
|
+
newCap: beet.bignum;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @category Instructions
|
|
19
|
+
* @category UpdateCap
|
|
20
|
+
* @category generated
|
|
21
|
+
*/
|
|
22
|
+
export declare const updateCapStruct: beet.BeetArgsStruct<UpdateCapInstructionArgs & {
|
|
23
|
+
instructionDiscriminator: number[];
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Accounts required by the _updateCap_ instruction
|
|
27
|
+
*
|
|
28
|
+
* @property [_writable_] main
|
|
29
|
+
* @property [_writable_, **signer**] admin
|
|
30
|
+
* @property [_writable_] strategy
|
|
31
|
+
* @property [_writable_] adminPermissions
|
|
32
|
+
* @category Instructions
|
|
33
|
+
* @category UpdateCap
|
|
34
|
+
* @category generated
|
|
35
|
+
*/
|
|
36
|
+
export type UpdateCapInstructionAccounts = {
|
|
37
|
+
main: web3.PublicKey;
|
|
38
|
+
admin: web3.PublicKey;
|
|
39
|
+
systemProgram?: web3.PublicKey;
|
|
40
|
+
strategy: web3.PublicKey;
|
|
41
|
+
adminPermissions: web3.PublicKey;
|
|
42
|
+
anchorRemainingAccounts?: web3.AccountMeta[];
|
|
43
|
+
};
|
|
44
|
+
export declare const updateCapInstructionDiscriminator: number[];
|
|
45
|
+
/**
|
|
46
|
+
* Creates a _UpdateCap_ 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 UpdateCap
|
|
53
|
+
* @category generated
|
|
54
|
+
*/
|
|
55
|
+
export declare function createUpdateCapInstruction(accounts: UpdateCapInstructionAccounts, args: UpdateCapInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|