@reflectmoney/stable.ts 1.1.3 → 1.1.5
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 +84 -0
- package/dist/classes/ApiClient.js +24 -2
- 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/ReflectKeeper.js +4 -3
- package/dist/classes/ReflectTokenisedBond.d.ts +75 -0
- package/dist/classes/Stablecoin.d.ts +219 -0
- package/dist/classes/index.d.ts +5 -0
- package/dist/classes/index.js +1 -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/lookupTables.js +1 -1
- 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/DriftJlpController.js +1 -1
- package/dist/generated/reflect_main/accounts/DriftLstController.d.ts +108 -0
- package/dist/generated/reflect_main/accounts/DriftLstController.js +1 -1
- package/dist/generated/reflect_main/accounts/DriftUsdcController.d.ts +107 -0
- package/dist/generated/reflect_main/accounts/DriftUsdcController.js +8 -60
- package/dist/generated/reflect_main/accounts/Main.d.ts +110 -0
- package/dist/generated/reflect_main/accounts/Main.js +1 -1
- package/dist/generated/reflect_main/accounts/PerpMarket.d.ts +226 -0
- package/dist/generated/reflect_main/accounts/PerpMarket.js +1 -1
- package/dist/generated/reflect_main/accounts/PrelaunchOracle.d.ts +130 -0
- package/dist/generated/reflect_main/accounts/PrelaunchOracle.js +1 -1
- package/dist/generated/reflect_main/accounts/PythLazerOracle.d.ts +124 -0
- package/dist/generated/reflect_main/accounts/PythLazerOracle.js +1 -1
- package/dist/generated/reflect_main/accounts/RebalanceLst.d.ts +111 -0
- package/dist/generated/reflect_main/accounts/RebalanceLst.js +1 -1
- package/dist/generated/reflect_main/accounts/SpotMarket.d.ts +377 -0
- package/dist/generated/reflect_main/accounts/SpotMarket.js +1 -1
- package/dist/generated/reflect_main/accounts/User.d.ts +221 -0
- package/dist/generated/reflect_main/accounts/User.js +1 -1
- package/dist/generated/reflect_main/accounts/UserPermissions.d.ts +106 -0
- package/dist/generated/reflect_main/accounts/UserPermissions.js +1 -1
- package/dist/generated/reflect_main/accounts/UserStats.d.ts +211 -0
- package/dist/generated/reflect_main/accounts/UserStats.js +1 -1
- 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/errors/index.js +133 -133
- package/dist/generated/reflect_main/index.d.ts +19 -0
- package/dist/generated/reflect_main/index.js +1 -1
- package/dist/generated/reflect_main/instructions/addLstDrift.d.ts +49 -0
- package/dist/generated/reflect_main/instructions/addLstDrift.js +1 -1
- package/dist/generated/reflect_main/instructions/addSubAccount.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/addSubAccount.js +1 -1
- package/dist/generated/reflect_main/instructions/captureSpreadDrift.d.ts +66 -0
- package/dist/generated/reflect_main/instructions/captureSpreadDrift.js +3 -3
- package/dist/generated/reflect_main/instructions/captureSpreadDriftS1.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/createAdminAccount.d.ts +52 -0
- package/dist/generated/reflect_main/instructions/createAdminAccount.js +2 -1
- package/dist/generated/reflect_main/instructions/createUserStatsAccount.d.ts +52 -0
- package/dist/generated/reflect_main/instructions/createUserStatsAccount.js +1 -1
- package/dist/generated/reflect_main/instructions/depositDrift.d.ts +73 -0
- package/dist/generated/reflect_main/instructions/depositDrift.js +1 -1
- package/dist/generated/reflect_main/instructions/freezeProgram.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/freezeProgram.js +1 -1
- package/dist/generated/reflect_main/instructions/freezeProtocolAction.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/freezeProtocolAction.js +1 -1
- package/dist/generated/reflect_main/instructions/freezeStrategyAction.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/freezeStrategyAction.js +1 -1
- package/dist/generated/reflect_main/instructions/increaseAdminSize.d.ts +51 -0
- package/dist/generated/reflect_main/instructions/increaseAdminSize.js +89 -0
- package/dist/generated/reflect_main/instructions/index.d.ts +34 -0
- package/dist/generated/reflect_main/instructions/index.js +1 -1
- package/dist/generated/reflect_main/instructions/initDriftAccountsS1.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/initDriftAccountsS1.js +1 -1
- package/dist/generated/reflect_main/instructions/initDriftControllerS1.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/initDriftControllerS1.js +1 -1
- package/dist/generated/reflect_main/instructions/initDriftControllerS3.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/initDriftControllerS3.js +1 -1
- package/dist/generated/reflect_main/instructions/initMain.d.ts +43 -0
- package/dist/generated/reflect_main/instructions/initMain.js +1 -1
- package/dist/generated/reflect_main/instructions/mintDriftS1.d.ts +86 -0
- package/dist/generated/reflect_main/instructions/mintDriftS1.js +1 -1
- package/dist/generated/reflect_main/instructions/mintDriftS3.d.ts +86 -0
- package/dist/generated/reflect_main/instructions/mintDriftS3.js +1 -1
- package/dist/generated/reflect_main/instructions/processSwapDeposit.d.ts +69 -0
- package/dist/generated/reflect_main/instructions/processSwapDeposit.js +1 -1
- package/dist/generated/reflect_main/instructions/processSwapWithdraw.d.ts +69 -0
- package/dist/generated/reflect_main/instructions/processSwapWithdraw.js +1 -1
- package/dist/generated/reflect_main/instructions/redeemDriftS1.d.ts +87 -0
- package/dist/generated/reflect_main/instructions/redeemDriftS1.js +1 -1
- package/dist/generated/reflect_main/instructions/redeemDriftS3.d.ts +87 -0
- package/dist/generated/reflect_main/instructions/redeemDriftS3.js +1 -1
- package/dist/generated/reflect_main/instructions/settlePnl.d.ts +50 -0
- package/dist/generated/reflect_main/instructions/settlePnl.js +1 -10
- package/dist/generated/reflect_main/instructions/settlePnlMulti.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/settlePnlMulti.js +1 -10
- package/dist/generated/reflect_main/instructions/suspendSplProtocol.d.ts +54 -0
- package/dist/generated/reflect_main/instructions/suspendSplProtocol.js +1 -1
- package/dist/generated/reflect_main/instructions/suspendSplStrategy.d.ts +56 -0
- package/dist/generated/reflect_main/instructions/suspendSplStrategy.js +1 -1
- package/dist/generated/reflect_main/instructions/swapOrca.d.ts +81 -0
- package/dist/generated/reflect_main/instructions/swapOrca.js +1 -1
- package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.d.ts +101 -0
- package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.js +1 -1
- package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.d.ts +58 -0
- package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.js +1 -1
- package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.js +1 -1
- package/dist/generated/reflect_main/instructions/updateAttenuation.d.ts +57 -0
- package/dist/generated/reflect_main/instructions/updateAttenuation.js +1 -1
- package/dist/generated/reflect_main/instructions/updateCap.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/updateCap.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.d.ts +55 -0
- package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRecipients.d.ts +56 -0
- package/dist/generated/reflect_main/instructions/updateRecipients.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.js +1 -1
- package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.d.ts +60 -0
- package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.js +1 -1
- 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/AutoCompound.d.ts +18 -0
- package/dist/generated/reflect_main/types/AutoCompound.js +43 -0
- package/dist/generated/reflect_main/types/BalanceType.d.ts +20 -0
- package/dist/generated/reflect_main/types/Capture.d.ts +19 -0
- package/dist/generated/reflect_main/types/Capture.js +2 -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/OrderParams.js +1 -1
- 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 +34 -0
- package/dist/generated/reflect_main/types/Strategy.js +2 -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/YieldDistribution.d.ts +20 -0
- package/dist/generated/reflect_main/types/YieldDistribution.js +47 -0
- package/dist/generated/reflect_main/types/index.d.ts +82 -0
- package/dist/generated/reflect_main/types/index.js +2 -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 +10 -0
- package/dist/index.js +1 -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/tsconfig.tsbuildinfo +1 -0
- package/dist/types/api.d.ts +1384 -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 +2 -2
|
@@ -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('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
61
61
|
var _a;
|
|
62
62
|
const [data] = exports.suspendSplProtocolStruct.serialize(Object.assign({ instructionDiscriminator: exports.suspendSplProtocolInstructionDiscriminator }, args));
|
|
63
63
|
const keys = [
|
|
@@ -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;
|
|
@@ -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('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
61
61
|
var _a;
|
|
62
62
|
const [data] = exports.suspendSplStrategyStruct.serialize(Object.assign({ instructionDiscriminator: exports.suspendSplStrategyInstructionDiscriminator }, args));
|
|
63
63
|
const keys = [
|
|
@@ -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;
|
|
@@ -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('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
66
66
|
var _a, _b;
|
|
67
67
|
const [data] = exports.swapOrcaStruct.serialize(Object.assign({ instructionDiscriminator: exports.swapOrcaInstructionDiscriminator }, args));
|
|
68
68
|
const keys = [
|
|
@@ -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;
|
|
@@ -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('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
68
68
|
var _a, _b;
|
|
69
69
|
const [data] = exports.swapOrcaTwoHopStruct.serialize(Object.assign({ instructionDiscriminator: exports.swapOrcaTwoHopInstructionDiscriminator }, args));
|
|
70
70
|
const keys = [
|
|
@@ -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;
|
|
@@ -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('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
64
64
|
var _a;
|
|
65
65
|
const [data] = exports.updateActionRoleProtocolStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateActionRoleProtocolInstructionDiscriminator }, args));
|
|
66
66
|
const keys = [
|
|
@@ -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;
|
|
@@ -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('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
64
64
|
var _a;
|
|
65
65
|
const [data] = exports.updateActionRoleStrategyStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateActionRoleStrategyInstructionDiscriminator }, args));
|
|
66
66
|
const keys = [
|
|
@@ -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;
|
|
@@ -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('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
61
61
|
var _a;
|
|
62
62
|
const [data] = exports.updateAttenuationStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateAttenuationInstructionDiscriminator }, args));
|
|
63
63
|
const keys = [
|
|
@@ -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;
|
|
@@ -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('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
59
59
|
var _a;
|
|
60
60
|
const [data] = exports.updateCapStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateCapInstructionDiscriminator }, args));
|
|
61
61
|
const keys = [
|
|
@@ -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 UpdateRebalanceSlippage
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type UpdateRebalanceSlippageInstructionArgs = {
|
|
15
|
+
slippage: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @category Instructions
|
|
19
|
+
* @category UpdateRebalanceSlippage
|
|
20
|
+
* @category generated
|
|
21
|
+
*/
|
|
22
|
+
export declare const updateRebalanceSlippageStruct: beet.BeetArgsStruct<UpdateRebalanceSlippageInstructionArgs & {
|
|
23
|
+
instructionDiscriminator: number[];
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Accounts required by the _updateRebalanceSlippage_ instruction
|
|
27
|
+
*
|
|
28
|
+
* @property [_writable_] main
|
|
29
|
+
* @property [_writable_, **signer**] admin
|
|
30
|
+
* @property [_writable_] strategy
|
|
31
|
+
* @property [_writable_] adminPermissions
|
|
32
|
+
* @category Instructions
|
|
33
|
+
* @category UpdateRebalanceSlippage
|
|
34
|
+
* @category generated
|
|
35
|
+
*/
|
|
36
|
+
export type UpdateRebalanceSlippageInstructionAccounts = {
|
|
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 updateRebalanceSlippageInstructionDiscriminator: number[];
|
|
45
|
+
/**
|
|
46
|
+
* Creates a _UpdateRebalanceSlippage_ 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 UpdateRebalanceSlippage
|
|
53
|
+
* @category generated
|
|
54
|
+
*/
|
|
55
|
+
export declare function createUpdateRebalanceSlippageInstruction(accounts: UpdateRebalanceSlippageInstructionAccounts, args: UpdateRebalanceSlippageInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|
|
@@ -55,7 +55,7 @@ exports.updateRebalanceSlippageInstructionDiscriminator = [
|
|
|
55
55
|
* @category UpdateRebalanceSlippage
|
|
56
56
|
* @category generated
|
|
57
57
|
*/
|
|
58
|
-
function createUpdateRebalanceSlippageInstruction(accounts, args, programId = new web3.PublicKey('
|
|
58
|
+
function createUpdateRebalanceSlippageInstruction(accounts, args, programId = new web3.PublicKey('rf1ctRXK4bmG5XNttAMYfB3TKd2vQjFv5cfQhDBxdAQ')) {
|
|
59
59
|
var _a;
|
|
60
60
|
const [data] = exports.updateRebalanceSlippageStruct.serialize(Object.assign({ instructionDiscriminator: exports.updateRebalanceSlippageInstructionDiscriminator }, args));
|
|
61
61
|
const keys = [
|
|
@@ -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 UpdateRecipients
|
|
12
|
+
* @category generated
|
|
13
|
+
*/
|
|
14
|
+
export type UpdateRecipientsInstructionArgs = {
|
|
15
|
+
recipientAddresses: web3.PublicKey[];
|
|
16
|
+
recipientCuts: number[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @category Instructions
|
|
20
|
+
* @category UpdateRecipients
|
|
21
|
+
* @category generated
|
|
22
|
+
*/
|
|
23
|
+
export declare const updateRecipientsStruct: beet.FixableBeetArgsStruct<UpdateRecipientsInstructionArgs & {
|
|
24
|
+
instructionDiscriminator: number[];
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Accounts required by the _updateRecipients_ instruction
|
|
28
|
+
*
|
|
29
|
+
* @property [_writable_] main
|
|
30
|
+
* @property [_writable_, **signer**] admin
|
|
31
|
+
* @property [_writable_] strategy
|
|
32
|
+
* @property [_writable_] adminPermissions
|
|
33
|
+
* @category Instructions
|
|
34
|
+
* @category UpdateRecipients
|
|
35
|
+
* @category generated
|
|
36
|
+
*/
|
|
37
|
+
export type UpdateRecipientsInstructionAccounts = {
|
|
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 updateRecipientsInstructionDiscriminator: number[];
|
|
46
|
+
/**
|
|
47
|
+
* Creates a _UpdateRecipients_ 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 UpdateRecipients
|
|
54
|
+
* @category generated
|
|
55
|
+
*/
|
|
56
|
+
export declare function createUpdateRecipientsInstruction(accounts: UpdateRecipientsInstructionAccounts, args: UpdateRecipientsInstructionArgs, programId?: web3.PublicKey): web3.TransactionInstruction;
|