@kamino-finance/kliquidity-sdk 6.2.0 → 6.2.2
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/Kamino.js +1 -1
- package/dist/Kamino.js.map +1 -1
- package/dist/kamino-client/accounts/WhirlpoolStrategy.d.ts +3 -0
- package/dist/kamino-client/accounts/WhirlpoolStrategy.js +6 -1
- package/dist/kamino-client/accounts/WhirlpoolStrategy.js.map +1 -1
- package/dist/kamino-client/idl.json +24 -1
- package/dist/kamino-client/instructions/index.d.ts +2 -0
- package/dist/kamino-client/instructions/index.js +3 -1
- package/dist/kamino-client/instructions/index.js.map +1 -1
- package/dist/kamino-client/instructions/updateStrategyAdmin.d.ts +6 -0
- package/dist/kamino-client/instructions/updateStrategyAdmin.js +16 -0
- package/dist/kamino-client/instructions/updateStrategyAdmin.js.map +1 -0
- package/dist/kamino-client/types/StrategyConfigOption.d.ts +13 -0
- package/dist/kamino-client/types/StrategyConfigOption.js +27 -1
- package/dist/kamino-client/types/StrategyConfigOption.js.map +1 -1
- package/dist/kamino-client/types/index.d.ts +2 -2
- package/dist/kamino-client/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -97,6 +97,7 @@ export interface WhirlpoolStrategyFields {
|
|
|
97
97
|
swapUnevenAuthority: PublicKey;
|
|
98
98
|
tokenATokenProgram: PublicKey;
|
|
99
99
|
tokenBTokenProgram: PublicKey;
|
|
100
|
+
pendingAdmin: PublicKey;
|
|
100
101
|
padding3: BN;
|
|
101
102
|
padding4: Array<BN>;
|
|
102
103
|
padding5: Array<BN>;
|
|
@@ -199,6 +200,7 @@ export interface WhirlpoolStrategyJSON {
|
|
|
199
200
|
swapUnevenAuthority: string;
|
|
200
201
|
tokenATokenProgram: string;
|
|
201
202
|
tokenBTokenProgram: string;
|
|
203
|
+
pendingAdmin: string;
|
|
202
204
|
padding3: string;
|
|
203
205
|
padding4: Array<string>;
|
|
204
206
|
padding5: Array<string>;
|
|
@@ -301,6 +303,7 @@ export declare class WhirlpoolStrategy {
|
|
|
301
303
|
readonly swapUnevenAuthority: PublicKey;
|
|
302
304
|
readonly tokenATokenProgram: PublicKey;
|
|
303
305
|
readonly tokenBTokenProgram: PublicKey;
|
|
306
|
+
readonly pendingAdmin: PublicKey;
|
|
304
307
|
readonly padding3: BN;
|
|
305
308
|
readonly padding4: Array<BN>;
|
|
306
309
|
readonly padding5: Array<BN>;
|
|
@@ -142,6 +142,7 @@ class WhirlpoolStrategy {
|
|
|
142
142
|
this.swapUnevenAuthority = fields.swapUnevenAuthority;
|
|
143
143
|
this.tokenATokenProgram = fields.tokenATokenProgram;
|
|
144
144
|
this.tokenBTokenProgram = fields.tokenBTokenProgram;
|
|
145
|
+
this.pendingAdmin = fields.pendingAdmin;
|
|
145
146
|
this.padding3 = fields.padding3;
|
|
146
147
|
this.padding4 = fields.padding4;
|
|
147
148
|
this.padding5 = fields.padding5;
|
|
@@ -274,6 +275,7 @@ class WhirlpoolStrategy {
|
|
|
274
275
|
swapUnevenAuthority: dec.swapUnevenAuthority,
|
|
275
276
|
tokenATokenProgram: dec.tokenATokenProgram,
|
|
276
277
|
tokenBTokenProgram: dec.tokenBTokenProgram,
|
|
278
|
+
pendingAdmin: dec.pendingAdmin,
|
|
277
279
|
padding3: dec.padding3,
|
|
278
280
|
padding4: dec.padding4,
|
|
279
281
|
padding5: dec.padding5,
|
|
@@ -377,6 +379,7 @@ class WhirlpoolStrategy {
|
|
|
377
379
|
swapUnevenAuthority: this.swapUnevenAuthority.toString(),
|
|
378
380
|
tokenATokenProgram: this.tokenATokenProgram.toString(),
|
|
379
381
|
tokenBTokenProgram: this.tokenBTokenProgram.toString(),
|
|
382
|
+
pendingAdmin: this.pendingAdmin.toString(),
|
|
380
383
|
padding3: this.padding3.toString(),
|
|
381
384
|
padding4: this.padding4.map((item) => item.toString()),
|
|
382
385
|
padding5: this.padding5.map((item) => item.toString()),
|
|
@@ -480,6 +483,7 @@ class WhirlpoolStrategy {
|
|
|
480
483
|
swapUnevenAuthority: new web3_js_1.PublicKey(obj.swapUnevenAuthority),
|
|
481
484
|
tokenATokenProgram: new web3_js_1.PublicKey(obj.tokenATokenProgram),
|
|
482
485
|
tokenBTokenProgram: new web3_js_1.PublicKey(obj.tokenBTokenProgram),
|
|
486
|
+
pendingAdmin: new web3_js_1.PublicKey(obj.pendingAdmin),
|
|
483
487
|
padding3: new bn_js_1.default(obj.padding3),
|
|
484
488
|
padding4: obj.padding4.map((item) => new bn_js_1.default(item)),
|
|
485
489
|
padding5: obj.padding5.map((item) => new bn_js_1.default(item)),
|
|
@@ -587,8 +591,9 @@ WhirlpoolStrategy.layout = borsh.struct([
|
|
|
587
591
|
borsh.publicKey("swapUnevenAuthority"),
|
|
588
592
|
borsh.publicKey("tokenATokenProgram"),
|
|
589
593
|
borsh.publicKey("tokenBTokenProgram"),
|
|
594
|
+
borsh.publicKey("pendingAdmin"),
|
|
590
595
|
borsh.u64("padding3"),
|
|
591
|
-
borsh.array(borsh.u128(),
|
|
596
|
+
borsh.array(borsh.u128(), 13, "padding4"),
|
|
592
597
|
borsh.array(borsh.u128(), 32, "padding5"),
|
|
593
598
|
borsh.array(borsh.u128(), 32, "padding6"),
|
|
594
599
|
borsh.array(borsh.u128(), 32, "padding7"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhirlpoolStrategy.js","sourceRoot":"","sources":["../../../src/kamino-client/accounts/WhirlpoolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,kDAAsB,CAAC,wDAAwD;AAC/E,wDAAyC,CAAC,wDAAwD;AAClG,gDAAiC,CAAC,wDAAwD;AAC1F,4CAAyC;AAgNzC,MAAa,iBAAiB;IAgN5B,YAAY,MAA+B;QACzC,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY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C;IACvB,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,eAAe,CAAC;IAC5C,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC;IACtC,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC;IACrC,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC;IACrC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC;IACrB,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC;IACzC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC;IACzC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC;IACzC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC;CAC1C,CAAC,CAAA","sourcesContent":["import { PublicKey, Connection } from \"@solana/web3.js\"\nimport BN from \"bn.js\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as borsh from \"@coral-xyz/borsh\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as types from \"../types\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport { PROGRAM_ID } from \"../programId\"\n\nexport interface WhirlpoolStrategyFields {\n adminAuthority: PublicKey\n globalConfig: PublicKey\n baseVaultAuthority: PublicKey\n baseVaultAuthorityBump: BN\n pool: PublicKey\n poolTokenVaultA: PublicKey\n poolTokenVaultB: PublicKey\n tickArrayLower: PublicKey\n tickArrayUpper: PublicKey\n position: PublicKey\n positionMint: PublicKey\n positionMetadata: PublicKey\n positionTokenAccount: PublicKey\n tokenAVault: PublicKey\n tokenBVault: PublicKey\n deprecated0: Array<PublicKey>\n deprecated1: Array<BN>\n tokenAMint: PublicKey\n tokenBMint: PublicKey\n tokenAMintDecimals: BN\n tokenBMintDecimals: BN\n tokenAAmounts: BN\n tokenBAmounts: BN\n tokenACollateralId: BN\n tokenBCollateralId: BN\n scopePrices: PublicKey\n deprecated2: PublicKey\n sharesMint: PublicKey\n sharesMintDecimals: BN\n sharesMintAuthority: PublicKey\n sharesMintAuthorityBump: BN\n sharesIssued: BN\n status: BN\n reward0Amount: BN\n reward0Vault: PublicKey\n reward0CollateralId: BN\n reward0Decimals: BN\n reward1Amount: BN\n reward1Vault: PublicKey\n reward1CollateralId: BN\n reward1Decimals: BN\n reward2Amount: BN\n reward2Vault: PublicKey\n reward2CollateralId: BN\n reward2Decimals: BN\n depositCapUsd: BN\n feesACumulative: BN\n feesBCumulative: BN\n reward0AmountCumulative: BN\n reward1AmountCumulative: BN\n reward2AmountCumulative: BN\n depositCapUsdPerIxn: BN\n withdrawalCapA: types.WithdrawalCapsFields\n withdrawalCapB: types.WithdrawalCapsFields\n maxPriceDeviationBps: BN\n swapVaultMaxSlippageBps: number\n swapVaultMaxSlippageFromReferenceBps: number\n strategyType: BN\n padding0: BN\n withdrawFee: BN\n feesFee: BN\n reward0Fee: BN\n reward1Fee: BN\n reward2Fee: BN\n positionTimestamp: BN\n kaminoRewards: Array<types.KaminoRewardInfoFields>\n strategyDex: BN\n raydiumProtocolPositionOrBaseVaultAuthority: PublicKey\n allowDepositWithoutInvest: BN\n raydiumPoolConfigOrBaseVaultAuthority: PublicKey\n depositBlocked: number\n creationStatus: number\n investBlocked: number\n /** share_calculation_method can be either DOLAR_BASED=0 or PROPORTION_BASED=1 */\n shareCalculationMethod: number\n withdrawBlocked: number\n reservedFlag2: number\n localAdminBlocked: number\n flashVaultSwapAllowed: number\n referenceSwapPriceA: types.PriceFields\n referenceSwapPriceB: types.PriceFields\n isCommunity: number\n rebalanceType: number\n padding1: Array<number>\n rebalanceRaw: types.RebalanceRawFields\n padding2: Array<number>\n tokenAFeesFromRewardsCumulative: BN\n tokenBFeesFromRewardsCumulative: BN\n strategyLookupTable: PublicKey\n lastSwapUnevenStepTimestamp: BN\n farm: PublicKey\n rebalancesCap: types.WithdrawalCapsFields\n swapUnevenAuthority: PublicKey\n tokenATokenProgram: PublicKey\n tokenBTokenProgram: PublicKey\n padding3: BN\n padding4: Array<BN>\n padding5: Array<BN>\n padding6: Array<BN>\n padding7: Array<BN>\n}\n\nexport interface WhirlpoolStrategyJSON {\n adminAuthority: string\n globalConfig: string\n baseVaultAuthority: string\n baseVaultAuthorityBump: string\n pool: string\n poolTokenVaultA: string\n poolTokenVaultB: string\n tickArrayLower: string\n tickArrayUpper: string\n position: string\n positionMint: string\n positionMetadata: string\n positionTokenAccount: string\n tokenAVault: string\n tokenBVault: string\n deprecated0: Array<string>\n deprecated1: Array<string>\n tokenAMint: string\n tokenBMint: string\n tokenAMintDecimals: string\n tokenBMintDecimals: string\n tokenAAmounts: string\n tokenBAmounts: string\n tokenACollateralId: string\n tokenBCollateralId: string\n scopePrices: string\n deprecated2: string\n sharesMint: string\n sharesMintDecimals: string\n sharesMintAuthority: string\n sharesMintAuthorityBump: string\n sharesIssued: string\n status: string\n reward0Amount: string\n reward0Vault: string\n reward0CollateralId: string\n reward0Decimals: string\n reward1Amount: string\n reward1Vault: string\n reward1CollateralId: string\n reward1Decimals: string\n reward2Amount: string\n reward2Vault: string\n reward2CollateralId: string\n reward2Decimals: string\n depositCapUsd: string\n feesACumulative: string\n feesBCumulative: string\n reward0AmountCumulative: string\n reward1AmountCumulative: string\n reward2AmountCumulative: string\n depositCapUsdPerIxn: string\n withdrawalCapA: types.WithdrawalCapsJSON\n withdrawalCapB: types.WithdrawalCapsJSON\n maxPriceDeviationBps: string\n swapVaultMaxSlippageBps: number\n swapVaultMaxSlippageFromReferenceBps: number\n strategyType: string\n padding0: string\n withdrawFee: string\n feesFee: string\n reward0Fee: string\n reward1Fee: string\n reward2Fee: string\n positionTimestamp: string\n kaminoRewards: Array<types.KaminoRewardInfoJSON>\n strategyDex: string\n raydiumProtocolPositionOrBaseVaultAuthority: string\n allowDepositWithoutInvest: string\n raydiumPoolConfigOrBaseVaultAuthority: string\n depositBlocked: number\n creationStatus: number\n investBlocked: number\n /** share_calculation_method can be either DOLAR_BASED=0 or PROPORTION_BASED=1 */\n shareCalculationMethod: number\n withdrawBlocked: number\n reservedFlag2: number\n localAdminBlocked: number\n flashVaultSwapAllowed: number\n referenceSwapPriceA: types.PriceJSON\n referenceSwapPriceB: types.PriceJSON\n isCommunity: number\n rebalanceType: number\n padding1: Array<number>\n rebalanceRaw: types.RebalanceRawJSON\n padding2: Array<number>\n tokenAFeesFromRewardsCumulative: string\n tokenBFeesFromRewardsCumulative: string\n strategyLookupTable: string\n lastSwapUnevenStepTimestamp: string\n farm: string\n rebalancesCap: types.WithdrawalCapsJSON\n swapUnevenAuthority: string\n tokenATokenProgram: string\n tokenBTokenProgram: string\n padding3: string\n padding4: Array<string>\n padding5: Array<string>\n padding6: Array<string>\n padding7: Array<string>\n}\n\nexport class WhirlpoolStrategy {\n readonly adminAuthority: PublicKey\n readonly globalConfig: PublicKey\n readonly baseVaultAuthority: PublicKey\n readonly baseVaultAuthorityBump: BN\n readonly pool: PublicKey\n readonly poolTokenVaultA: PublicKey\n readonly poolTokenVaultB: PublicKey\n readonly tickArrayLower: PublicKey\n readonly tickArrayUpper: PublicKey\n readonly position: PublicKey\n readonly positionMint: PublicKey\n readonly positionMetadata: PublicKey\n readonly positionTokenAccount: PublicKey\n readonly tokenAVault: PublicKey\n readonly tokenBVault: PublicKey\n readonly deprecated0: Array<PublicKey>\n readonly deprecated1: Array<BN>\n readonly tokenAMint: PublicKey\n readonly tokenBMint: PublicKey\n readonly tokenAMintDecimals: BN\n readonly tokenBMintDecimals: BN\n readonly tokenAAmounts: BN\n readonly tokenBAmounts: BN\n readonly tokenACollateralId: BN\n readonly tokenBCollateralId: BN\n readonly scopePrices: PublicKey\n readonly deprecated2: PublicKey\n readonly sharesMint: PublicKey\n readonly sharesMintDecimals: BN\n readonly sharesMintAuthority: PublicKey\n readonly sharesMintAuthorityBump: BN\n readonly sharesIssued: BN\n readonly status: BN\n readonly reward0Amount: BN\n readonly reward0Vault: PublicKey\n readonly reward0CollateralId: BN\n readonly reward0Decimals: BN\n readonly reward1Amount: BN\n readonly reward1Vault: PublicKey\n readonly reward1CollateralId: BN\n readonly reward1Decimals: BN\n readonly reward2Amount: BN\n readonly reward2Vault: PublicKey\n readonly reward2CollateralId: BN\n readonly reward2Decimals: BN\n readonly depositCapUsd: BN\n readonly feesACumulative: BN\n readonly feesBCumulative: BN\n readonly reward0AmountCumulative: BN\n readonly reward1AmountCumulative: BN\n readonly reward2AmountCumulative: BN\n readonly depositCapUsdPerIxn: BN\n readonly withdrawalCapA: types.WithdrawalCaps\n readonly withdrawalCapB: types.WithdrawalCaps\n readonly maxPriceDeviationBps: BN\n readonly swapVaultMaxSlippageBps: number\n readonly swapVaultMaxSlippageFromReferenceBps: number\n readonly strategyType: BN\n readonly padding0: BN\n readonly withdrawFee: BN\n readonly feesFee: BN\n readonly reward0Fee: BN\n readonly reward1Fee: BN\n readonly reward2Fee: BN\n readonly positionTimestamp: BN\n readonly kaminoRewards: Array<types.KaminoRewardInfo>\n readonly strategyDex: BN\n readonly raydiumProtocolPositionOrBaseVaultAuthority: PublicKey\n readonly allowDepositWithoutInvest: BN\n readonly raydiumPoolConfigOrBaseVaultAuthority: PublicKey\n readonly depositBlocked: number\n readonly creationStatus: number\n readonly investBlocked: number\n /** share_calculation_method can be either DOLAR_BASED=0 or PROPORTION_BASED=1 */\n readonly shareCalculationMethod: number\n readonly withdrawBlocked: number\n readonly reservedFlag2: number\n readonly localAdminBlocked: number\n readonly flashVaultSwapAllowed: number\n readonly referenceSwapPriceA: types.Price\n readonly referenceSwapPriceB: types.Price\n readonly isCommunity: number\n readonly rebalanceType: number\n readonly padding1: Array<number>\n readonly rebalanceRaw: types.RebalanceRaw\n readonly padding2: Array<number>\n readonly tokenAFeesFromRewardsCumulative: BN\n readonly tokenBFeesFromRewardsCumulative: BN\n readonly strategyLookupTable: PublicKey\n readonly lastSwapUnevenStepTimestamp: BN\n readonly farm: PublicKey\n readonly rebalancesCap: types.WithdrawalCaps\n readonly swapUnevenAuthority: PublicKey\n readonly tokenATokenProgram: PublicKey\n readonly tokenBTokenProgram: PublicKey\n readonly padding3: BN\n readonly padding4: Array<BN>\n readonly padding5: Array<BN>\n readonly padding6: Array<BN>\n readonly padding7: Array<BN>\n\n static readonly discriminator = Buffer.from([\n 190, 178, 231, 184, 49, 186, 103, 13,\n ])\n\n static readonly layout = borsh.struct([\n borsh.publicKey(\"adminAuthority\"),\n borsh.publicKey(\"globalConfig\"),\n borsh.publicKey(\"baseVaultAuthority\"),\n borsh.u64(\"baseVaultAuthorityBump\"),\n borsh.publicKey(\"pool\"),\n borsh.publicKey(\"poolTokenVaultA\"),\n borsh.publicKey(\"poolTokenVaultB\"),\n borsh.publicKey(\"tickArrayLower\"),\n borsh.publicKey(\"tickArrayUpper\"),\n borsh.publicKey(\"position\"),\n borsh.publicKey(\"positionMint\"),\n borsh.publicKey(\"positionMetadata\"),\n borsh.publicKey(\"positionTokenAccount\"),\n borsh.publicKey(\"tokenAVault\"),\n borsh.publicKey(\"tokenBVault\"),\n borsh.array(borsh.publicKey(), 2, \"deprecated0\"),\n borsh.array(borsh.u64(), 2, \"deprecated1\"),\n borsh.publicKey(\"tokenAMint\"),\n borsh.publicKey(\"tokenBMint\"),\n borsh.u64(\"tokenAMintDecimals\"),\n borsh.u64(\"tokenBMintDecimals\"),\n borsh.u64(\"tokenAAmounts\"),\n borsh.u64(\"tokenBAmounts\"),\n borsh.u64(\"tokenACollateralId\"),\n borsh.u64(\"tokenBCollateralId\"),\n borsh.publicKey(\"scopePrices\"),\n borsh.publicKey(\"deprecated2\"),\n borsh.publicKey(\"sharesMint\"),\n borsh.u64(\"sharesMintDecimals\"),\n borsh.publicKey(\"sharesMintAuthority\"),\n borsh.u64(\"sharesMintAuthorityBump\"),\n borsh.u64(\"sharesIssued\"),\n borsh.u64(\"status\"),\n borsh.u64(\"reward0Amount\"),\n borsh.publicKey(\"reward0Vault\"),\n borsh.u64(\"reward0CollateralId\"),\n borsh.u64(\"reward0Decimals\"),\n borsh.u64(\"reward1Amount\"),\n borsh.publicKey(\"reward1Vault\"),\n borsh.u64(\"reward1CollateralId\"),\n borsh.u64(\"reward1Decimals\"),\n borsh.u64(\"reward2Amount\"),\n borsh.publicKey(\"reward2Vault\"),\n borsh.u64(\"reward2CollateralId\"),\n borsh.u64(\"reward2Decimals\"),\n borsh.u64(\"depositCapUsd\"),\n borsh.u64(\"feesACumulative\"),\n borsh.u64(\"feesBCumulative\"),\n borsh.u64(\"reward0AmountCumulative\"),\n borsh.u64(\"reward1AmountCumulative\"),\n borsh.u64(\"reward2AmountCumulative\"),\n borsh.u64(\"depositCapUsdPerIxn\"),\n types.WithdrawalCaps.layout(\"withdrawalCapA\"),\n types.WithdrawalCaps.layout(\"withdrawalCapB\"),\n borsh.u64(\"maxPriceDeviationBps\"),\n borsh.u32(\"swapVaultMaxSlippageBps\"),\n borsh.u32(\"swapVaultMaxSlippageFromReferenceBps\"),\n borsh.u64(\"strategyType\"),\n borsh.u64(\"padding0\"),\n borsh.u64(\"withdrawFee\"),\n borsh.u64(\"feesFee\"),\n borsh.u64(\"reward0Fee\"),\n borsh.u64(\"reward1Fee\"),\n borsh.u64(\"reward2Fee\"),\n borsh.u64(\"positionTimestamp\"),\n borsh.array(types.KaminoRewardInfo.layout(), 3, \"kaminoRewards\"),\n borsh.u64(\"strategyDex\"),\n borsh.publicKey(\"raydiumProtocolPositionOrBaseVaultAuthority\"),\n borsh.u64(\"allowDepositWithoutInvest\"),\n borsh.publicKey(\"raydiumPoolConfigOrBaseVaultAuthority\"),\n borsh.u8(\"depositBlocked\"),\n borsh.u8(\"creationStatus\"),\n borsh.u8(\"investBlocked\"),\n borsh.u8(\"shareCalculationMethod\"),\n borsh.u8(\"withdrawBlocked\"),\n borsh.u8(\"reservedFlag2\"),\n borsh.u8(\"localAdminBlocked\"),\n borsh.u8(\"flashVaultSwapAllowed\"),\n types.Price.layout(\"referenceSwapPriceA\"),\n types.Price.layout(\"referenceSwapPriceB\"),\n borsh.u8(\"isCommunity\"),\n borsh.u8(\"rebalanceType\"),\n borsh.array(borsh.u8(), 6, \"padding1\"),\n types.RebalanceRaw.layout(\"rebalanceRaw\"),\n borsh.array(borsh.u8(), 7, \"padding2\"),\n borsh.u64(\"tokenAFeesFromRewardsCumulative\"),\n borsh.u64(\"tokenBFeesFromRewardsCumulative\"),\n borsh.publicKey(\"strategyLookupTable\"),\n borsh.u64(\"lastSwapUnevenStepTimestamp\"),\n borsh.publicKey(\"farm\"),\n types.WithdrawalCaps.layout(\"rebalancesCap\"),\n borsh.publicKey(\"swapUnevenAuthority\"),\n borsh.publicKey(\"tokenATokenProgram\"),\n borsh.publicKey(\"tokenBTokenProgram\"),\n borsh.u64(\"padding3\"),\n borsh.array(borsh.u128(), 15, \"padding4\"),\n borsh.array(borsh.u128(), 32, \"padding5\"),\n borsh.array(borsh.u128(), 32, \"padding6\"),\n borsh.array(borsh.u128(), 32, \"padding7\"),\n ])\n\n constructor(fields: WhirlpoolStrategyFields) {\n this.adminAuthority = fields.adminAuthority\n this.globalConfig = fields.globalConfig\n this.baseVaultAuthority = fields.baseVaultAuthority\n this.baseVaultAuthorityBump = fields.baseVaultAuthorityBump\n this.pool = fields.pool\n this.poolTokenVaultA = fields.poolTokenVaultA\n this.poolTokenVaultB = fields.poolTokenVaultB\n this.tickArrayLower = fields.tickArrayLower\n this.tickArrayUpper = fields.tickArrayUpper\n this.position = fields.position\n this.positionMint = fields.positionMint\n this.positionMetadata = fields.positionMetadata\n this.positionTokenAccount = fields.positionTokenAccount\n this.tokenAVault = fields.tokenAVault\n this.tokenBVault = fields.tokenBVault\n this.deprecated0 = fields.deprecated0\n this.deprecated1 = fields.deprecated1\n this.tokenAMint = fields.tokenAMint\n this.tokenBMint = fields.tokenBMint\n this.tokenAMintDecimals = fields.tokenAMintDecimals\n this.tokenBMintDecimals = fields.tokenBMintDecimals\n this.tokenAAmounts = fields.tokenAAmounts\n this.tokenBAmounts = fields.tokenBAmounts\n this.tokenACollateralId = fields.tokenACollateralId\n this.tokenBCollateralId = fields.tokenBCollateralId\n this.scopePrices = fields.scopePrices\n this.deprecated2 = fields.deprecated2\n this.sharesMint = fields.sharesMint\n this.sharesMintDecimals = fields.sharesMintDecimals\n this.sharesMintAuthority = fields.sharesMintAuthority\n this.sharesMintAuthorityBump = fields.sharesMintAuthorityBump\n this.sharesIssued = fields.sharesIssued\n this.status = fields.status\n this.reward0Amount = fields.reward0Amount\n this.reward0Vault = fields.reward0Vault\n this.reward0CollateralId = fields.reward0CollateralId\n this.reward0Decimals = fields.reward0Decimals\n this.reward1Amount = fields.reward1Amount\n this.reward1Vault = fields.reward1Vault\n this.reward1CollateralId = fields.reward1CollateralId\n this.reward1Decimals = fields.reward1Decimals\n this.reward2Amount = fields.reward2Amount\n this.reward2Vault = fields.reward2Vault\n this.reward2CollateralId = fields.reward2CollateralId\n this.reward2Decimals = fields.reward2Decimals\n this.depositCapUsd = fields.depositCapUsd\n this.feesACumulative = fields.feesACumulative\n this.feesBCumulative = fields.feesBCumulative\n this.reward0AmountCumulative = fields.reward0AmountCumulative\n this.reward1AmountCumulative = fields.reward1AmountCumulative\n this.reward2AmountCumulative = fields.reward2AmountCumulative\n this.depositCapUsdPerIxn = fields.depositCapUsdPerIxn\n this.withdrawalCapA = new types.WithdrawalCaps({ ...fields.withdrawalCapA })\n this.withdrawalCapB = new types.WithdrawalCaps({ ...fields.withdrawalCapB })\n this.maxPriceDeviationBps = fields.maxPriceDeviationBps\n this.swapVaultMaxSlippageBps = fields.swapVaultMaxSlippageBps\n this.swapVaultMaxSlippageFromReferenceBps =\n fields.swapVaultMaxSlippageFromReferenceBps\n this.strategyType = fields.strategyType\n this.padding0 = fields.padding0\n this.withdrawFee = fields.withdrawFee\n this.feesFee = fields.feesFee\n this.reward0Fee = fields.reward0Fee\n this.reward1Fee = fields.reward1Fee\n this.reward2Fee = fields.reward2Fee\n this.positionTimestamp = fields.positionTimestamp\n this.kaminoRewards = fields.kaminoRewards.map(\n (item) => new types.KaminoRewardInfo({ ...item })\n )\n this.strategyDex = fields.strategyDex\n this.raydiumProtocolPositionOrBaseVaultAuthority =\n fields.raydiumProtocolPositionOrBaseVaultAuthority\n this.allowDepositWithoutInvest = fields.allowDepositWithoutInvest\n this.raydiumPoolConfigOrBaseVaultAuthority =\n fields.raydiumPoolConfigOrBaseVaultAuthority\n this.depositBlocked = fields.depositBlocked\n this.creationStatus = fields.creationStatus\n this.investBlocked = fields.investBlocked\n this.shareCalculationMethod = fields.shareCalculationMethod\n this.withdrawBlocked = fields.withdrawBlocked\n this.reservedFlag2 = fields.reservedFlag2\n this.localAdminBlocked = fields.localAdminBlocked\n this.flashVaultSwapAllowed = fields.flashVaultSwapAllowed\n this.referenceSwapPriceA = new types.Price({\n ...fields.referenceSwapPriceA,\n })\n this.referenceSwapPriceB = new types.Price({\n ...fields.referenceSwapPriceB,\n })\n this.isCommunity = fields.isCommunity\n this.rebalanceType = fields.rebalanceType\n this.padding1 = fields.padding1\n this.rebalanceRaw = new types.RebalanceRaw({ ...fields.rebalanceRaw })\n this.padding2 = fields.padding2\n this.tokenAFeesFromRewardsCumulative =\n fields.tokenAFeesFromRewardsCumulative\n this.tokenBFeesFromRewardsCumulative =\n fields.tokenBFeesFromRewardsCumulative\n this.strategyLookupTable = fields.strategyLookupTable\n this.lastSwapUnevenStepTimestamp = fields.lastSwapUnevenStepTimestamp\n this.farm = fields.farm\n this.rebalancesCap = new types.WithdrawalCaps({ ...fields.rebalancesCap })\n this.swapUnevenAuthority = fields.swapUnevenAuthority\n this.tokenATokenProgram = fields.tokenATokenProgram\n this.tokenBTokenProgram = fields.tokenBTokenProgram\n this.padding3 = fields.padding3\n this.padding4 = fields.padding4\n this.padding5 = fields.padding5\n this.padding6 = fields.padding6\n this.padding7 = fields.padding7\n }\n\n static async fetch(\n c: Connection,\n address: PublicKey,\n programId: PublicKey = PROGRAM_ID\n ): Promise<WhirlpoolStrategy | null> {\n const info = await c.getAccountInfo(address)\n\n if (info === null) {\n return null\n }\n if (!info.owner.equals(programId)) {\n throw new Error(\"account doesn't belong to this program\")\n }\n\n return this.decode(info.data)\n }\n\n static async fetchMultiple(\n c: Connection,\n addresses: PublicKey[],\n programId: PublicKey = PROGRAM_ID\n ): Promise<Array<WhirlpoolStrategy | null>> {\n const infos = await c.getMultipleAccountsInfo(addresses)\n\n return infos.map((info) => {\n if (info === null) {\n return null\n }\n if (!info.owner.equals(programId)) {\n throw new Error(\"account doesn't belong to this program\")\n }\n\n return this.decode(info.data)\n })\n }\n\n static decode(data: Buffer): WhirlpoolStrategy {\n if (!data.slice(0, 8).equals(WhirlpoolStrategy.discriminator)) {\n throw new Error(\"invalid account discriminator\")\n }\n\n const dec = WhirlpoolStrategy.layout.decode(data.slice(8))\n\n return new WhirlpoolStrategy({\n adminAuthority: dec.adminAuthority,\n globalConfig: dec.globalConfig,\n baseVaultAuthority: dec.baseVaultAuthority,\n baseVaultAuthorityBump: dec.baseVaultAuthorityBump,\n pool: dec.pool,\n poolTokenVaultA: dec.poolTokenVaultA,\n poolTokenVaultB: dec.poolTokenVaultB,\n tickArrayLower: dec.tickArrayLower,\n tickArrayUpper: dec.tickArrayUpper,\n position: dec.position,\n positionMint: dec.positionMint,\n positionMetadata: dec.positionMetadata,\n positionTokenAccount: dec.positionTokenAccount,\n tokenAVault: dec.tokenAVault,\n tokenBVault: dec.tokenBVault,\n deprecated0: dec.deprecated0,\n deprecated1: dec.deprecated1,\n tokenAMint: dec.tokenAMint,\n tokenBMint: dec.tokenBMint,\n tokenAMintDecimals: dec.tokenAMintDecimals,\n tokenBMintDecimals: dec.tokenBMintDecimals,\n tokenAAmounts: dec.tokenAAmounts,\n tokenBAmounts: dec.tokenBAmounts,\n tokenACollateralId: dec.tokenACollateralId,\n tokenBCollateralId: dec.tokenBCollateralId,\n scopePrices: dec.scopePrices,\n deprecated2: dec.deprecated2,\n sharesMint: dec.sharesMint,\n sharesMintDecimals: dec.sharesMintDecimals,\n sharesMintAuthority: dec.sharesMintAuthority,\n sharesMintAuthorityBump: dec.sharesMintAuthorityBump,\n sharesIssued: dec.sharesIssued,\n status: dec.status,\n reward0Amount: dec.reward0Amount,\n reward0Vault: dec.reward0Vault,\n reward0CollateralId: dec.reward0CollateralId,\n reward0Decimals: dec.reward0Decimals,\n reward1Amount: dec.reward1Amount,\n reward1Vault: dec.reward1Vault,\n reward1CollateralId: dec.reward1CollateralId,\n reward1Decimals: dec.reward1Decimals,\n reward2Amount: dec.reward2Amount,\n reward2Vault: dec.reward2Vault,\n reward2CollateralId: dec.reward2CollateralId,\n reward2Decimals: dec.reward2Decimals,\n depositCapUsd: dec.depositCapUsd,\n feesACumulative: dec.feesACumulative,\n feesBCumulative: dec.feesBCumulative,\n reward0AmountCumulative: dec.reward0AmountCumulative,\n reward1AmountCumulative: dec.reward1AmountCumulative,\n reward2AmountCumulative: dec.reward2AmountCumulative,\n depositCapUsdPerIxn: dec.depositCapUsdPerIxn,\n withdrawalCapA: types.WithdrawalCaps.fromDecoded(dec.withdrawalCapA),\n withdrawalCapB: types.WithdrawalCaps.fromDecoded(dec.withdrawalCapB),\n maxPriceDeviationBps: dec.maxPriceDeviationBps,\n swapVaultMaxSlippageBps: dec.swapVaultMaxSlippageBps,\n swapVaultMaxSlippageFromReferenceBps:\n dec.swapVaultMaxSlippageFromReferenceBps,\n strategyType: dec.strategyType,\n padding0: dec.padding0,\n withdrawFee: dec.withdrawFee,\n feesFee: dec.feesFee,\n reward0Fee: dec.reward0Fee,\n reward1Fee: dec.reward1Fee,\n reward2Fee: dec.reward2Fee,\n positionTimestamp: dec.positionTimestamp,\n kaminoRewards: dec.kaminoRewards.map(\n (\n item: any /* eslint-disable-line @typescript-eslint/no-explicit-any */\n ) => types.KaminoRewardInfo.fromDecoded(item)\n ),\n strategyDex: dec.strategyDex,\n raydiumProtocolPositionOrBaseVaultAuthority:\n dec.raydiumProtocolPositionOrBaseVaultAuthority,\n allowDepositWithoutInvest: dec.allowDepositWithoutInvest,\n raydiumPoolConfigOrBaseVaultAuthority:\n dec.raydiumPoolConfigOrBaseVaultAuthority,\n depositBlocked: dec.depositBlocked,\n creationStatus: dec.creationStatus,\n investBlocked: dec.investBlocked,\n shareCalculationMethod: dec.shareCalculationMethod,\n withdrawBlocked: dec.withdrawBlocked,\n reservedFlag2: dec.reservedFlag2,\n localAdminBlocked: dec.localAdminBlocked,\n flashVaultSwapAllowed: dec.flashVaultSwapAllowed,\n referenceSwapPriceA: types.Price.fromDecoded(dec.referenceSwapPriceA),\n referenceSwapPriceB: types.Price.fromDecoded(dec.referenceSwapPriceB),\n isCommunity: dec.isCommunity,\n rebalanceType: dec.rebalanceType,\n padding1: dec.padding1,\n rebalanceRaw: types.RebalanceRaw.fromDecoded(dec.rebalanceRaw),\n padding2: dec.padding2,\n tokenAFeesFromRewardsCumulative: dec.tokenAFeesFromRewardsCumulative,\n tokenBFeesFromRewardsCumulative: dec.tokenBFeesFromRewardsCumulative,\n strategyLookupTable: dec.strategyLookupTable,\n lastSwapUnevenStepTimestamp: dec.lastSwapUnevenStepTimestamp,\n farm: dec.farm,\n rebalancesCap: types.WithdrawalCaps.fromDecoded(dec.rebalancesCap),\n swapUnevenAuthority: dec.swapUnevenAuthority,\n tokenATokenProgram: dec.tokenATokenProgram,\n tokenBTokenProgram: dec.tokenBTokenProgram,\n padding3: dec.padding3,\n padding4: dec.padding4,\n padding5: dec.padding5,\n padding6: dec.padding6,\n padding7: dec.padding7,\n })\n }\n\n toJSON(): WhirlpoolStrategyJSON {\n return {\n adminAuthority: this.adminAuthority.toString(),\n globalConfig: this.globalConfig.toString(),\n baseVaultAuthority: this.baseVaultAuthority.toString(),\n baseVaultAuthorityBump: this.baseVaultAuthorityBump.toString(),\n pool: this.pool.toString(),\n poolTokenVaultA: this.poolTokenVaultA.toString(),\n poolTokenVaultB: this.poolTokenVaultB.toString(),\n tickArrayLower: this.tickArrayLower.toString(),\n tickArrayUpper: this.tickArrayUpper.toString(),\n position: this.position.toString(),\n positionMint: this.positionMint.toString(),\n positionMetadata: this.positionMetadata.toString(),\n positionTokenAccount: this.positionTokenAccount.toString(),\n tokenAVault: this.tokenAVault.toString(),\n tokenBVault: this.tokenBVault.toString(),\n deprecated0: this.deprecated0.map((item) => item.toString()),\n deprecated1: this.deprecated1.map((item) => item.toString()),\n tokenAMint: this.tokenAMint.toString(),\n tokenBMint: this.tokenBMint.toString(),\n tokenAMintDecimals: this.tokenAMintDecimals.toString(),\n tokenBMintDecimals: this.tokenBMintDecimals.toString(),\n tokenAAmounts: this.tokenAAmounts.toString(),\n tokenBAmounts: this.tokenBAmounts.toString(),\n tokenACollateralId: this.tokenACollateralId.toString(),\n tokenBCollateralId: this.tokenBCollateralId.toString(),\n scopePrices: this.scopePrices.toString(),\n deprecated2: this.deprecated2.toString(),\n sharesMint: this.sharesMint.toString(),\n sharesMintDecimals: this.sharesMintDecimals.toString(),\n sharesMintAuthority: this.sharesMintAuthority.toString(),\n sharesMintAuthorityBump: this.sharesMintAuthorityBump.toString(),\n sharesIssued: this.sharesIssued.toString(),\n status: this.status.toString(),\n reward0Amount: this.reward0Amount.toString(),\n reward0Vault: this.reward0Vault.toString(),\n reward0CollateralId: this.reward0CollateralId.toString(),\n reward0Decimals: this.reward0Decimals.toString(),\n reward1Amount: this.reward1Amount.toString(),\n reward1Vault: this.reward1Vault.toString(),\n reward1CollateralId: this.reward1CollateralId.toString(),\n reward1Decimals: this.reward1Decimals.toString(),\n reward2Amount: this.reward2Amount.toString(),\n reward2Vault: this.reward2Vault.toString(),\n reward2CollateralId: this.reward2CollateralId.toString(),\n reward2Decimals: this.reward2Decimals.toString(),\n depositCapUsd: this.depositCapUsd.toString(),\n feesACumulative: this.feesACumulative.toString(),\n feesBCumulative: this.feesBCumulative.toString(),\n reward0AmountCumulative: this.reward0AmountCumulative.toString(),\n reward1AmountCumulative: this.reward1AmountCumulative.toString(),\n reward2AmountCumulative: this.reward2AmountCumulative.toString(),\n depositCapUsdPerIxn: this.depositCapUsdPerIxn.toString(),\n withdrawalCapA: this.withdrawalCapA.toJSON(),\n withdrawalCapB: this.withdrawalCapB.toJSON(),\n maxPriceDeviationBps: this.maxPriceDeviationBps.toString(),\n swapVaultMaxSlippageBps: this.swapVaultMaxSlippageBps,\n swapVaultMaxSlippageFromReferenceBps:\n this.swapVaultMaxSlippageFromReferenceBps,\n strategyType: this.strategyType.toString(),\n padding0: this.padding0.toString(),\n withdrawFee: this.withdrawFee.toString(),\n feesFee: this.feesFee.toString(),\n reward0Fee: this.reward0Fee.toString(),\n reward1Fee: this.reward1Fee.toString(),\n reward2Fee: this.reward2Fee.toString(),\n positionTimestamp: this.positionTimestamp.toString(),\n kaminoRewards: this.kaminoRewards.map((item) => item.toJSON()),\n strategyDex: this.strategyDex.toString(),\n raydiumProtocolPositionOrBaseVaultAuthority:\n this.raydiumProtocolPositionOrBaseVaultAuthority.toString(),\n allowDepositWithoutInvest: this.allowDepositWithoutInvest.toString(),\n raydiumPoolConfigOrBaseVaultAuthority:\n this.raydiumPoolConfigOrBaseVaultAuthority.toString(),\n depositBlocked: this.depositBlocked,\n creationStatus: this.creationStatus,\n investBlocked: this.investBlocked,\n shareCalculationMethod: this.shareCalculationMethod,\n withdrawBlocked: this.withdrawBlocked,\n reservedFlag2: this.reservedFlag2,\n localAdminBlocked: this.localAdminBlocked,\n flashVaultSwapAllowed: this.flashVaultSwapAllowed,\n referenceSwapPriceA: this.referenceSwapPriceA.toJSON(),\n referenceSwapPriceB: this.referenceSwapPriceB.toJSON(),\n isCommunity: this.isCommunity,\n rebalanceType: this.rebalanceType,\n padding1: this.padding1,\n rebalanceRaw: this.rebalanceRaw.toJSON(),\n padding2: this.padding2,\n tokenAFeesFromRewardsCumulative:\n this.tokenAFeesFromRewardsCumulative.toString(),\n tokenBFeesFromRewardsCumulative:\n this.tokenBFeesFromRewardsCumulative.toString(),\n strategyLookupTable: this.strategyLookupTable.toString(),\n lastSwapUnevenStepTimestamp: this.lastSwapUnevenStepTimestamp.toString(),\n farm: this.farm.toString(),\n rebalancesCap: this.rebalancesCap.toJSON(),\n swapUnevenAuthority: this.swapUnevenAuthority.toString(),\n tokenATokenProgram: this.tokenATokenProgram.toString(),\n tokenBTokenProgram: this.tokenBTokenProgram.toString(),\n padding3: this.padding3.toString(),\n padding4: this.padding4.map((item) => item.toString()),\n padding5: this.padding5.map((item) => item.toString()),\n padding6: this.padding6.map((item) => item.toString()),\n padding7: this.padding7.map((item) => item.toString()),\n }\n }\n\n static fromJSON(obj: WhirlpoolStrategyJSON): WhirlpoolStrategy {\n return new WhirlpoolStrategy({\n adminAuthority: new PublicKey(obj.adminAuthority),\n globalConfig: new PublicKey(obj.globalConfig),\n baseVaultAuthority: new PublicKey(obj.baseVaultAuthority),\n baseVaultAuthorityBump: new BN(obj.baseVaultAuthorityBump),\n pool: new PublicKey(obj.pool),\n poolTokenVaultA: new PublicKey(obj.poolTokenVaultA),\n poolTokenVaultB: new PublicKey(obj.poolTokenVaultB),\n tickArrayLower: new PublicKey(obj.tickArrayLower),\n tickArrayUpper: new PublicKey(obj.tickArrayUpper),\n position: new PublicKey(obj.position),\n positionMint: new PublicKey(obj.positionMint),\n positionMetadata: new PublicKey(obj.positionMetadata),\n positionTokenAccount: new PublicKey(obj.positionTokenAccount),\n tokenAVault: new PublicKey(obj.tokenAVault),\n tokenBVault: new PublicKey(obj.tokenBVault),\n deprecated0: obj.deprecated0.map((item) => new PublicKey(item)),\n deprecated1: obj.deprecated1.map((item) => new BN(item)),\n tokenAMint: new PublicKey(obj.tokenAMint),\n tokenBMint: new PublicKey(obj.tokenBMint),\n tokenAMintDecimals: new BN(obj.tokenAMintDecimals),\n tokenBMintDecimals: new BN(obj.tokenBMintDecimals),\n tokenAAmounts: new BN(obj.tokenAAmounts),\n tokenBAmounts: new BN(obj.tokenBAmounts),\n tokenACollateralId: new BN(obj.tokenACollateralId),\n tokenBCollateralId: new BN(obj.tokenBCollateralId),\n scopePrices: new PublicKey(obj.scopePrices),\n deprecated2: new PublicKey(obj.deprecated2),\n sharesMint: new PublicKey(obj.sharesMint),\n sharesMintDecimals: new BN(obj.sharesMintDecimals),\n sharesMintAuthority: new PublicKey(obj.sharesMintAuthority),\n sharesMintAuthorityBump: new BN(obj.sharesMintAuthorityBump),\n sharesIssued: new BN(obj.sharesIssued),\n status: new BN(obj.status),\n reward0Amount: new BN(obj.reward0Amount),\n reward0Vault: new PublicKey(obj.reward0Vault),\n reward0CollateralId: new BN(obj.reward0CollateralId),\n reward0Decimals: new BN(obj.reward0Decimals),\n reward1Amount: new BN(obj.reward1Amount),\n reward1Vault: new PublicKey(obj.reward1Vault),\n reward1CollateralId: new BN(obj.reward1CollateralId),\n reward1Decimals: new BN(obj.reward1Decimals),\n reward2Amount: new BN(obj.reward2Amount),\n reward2Vault: new PublicKey(obj.reward2Vault),\n reward2CollateralId: new BN(obj.reward2CollateralId),\n reward2Decimals: new BN(obj.reward2Decimals),\n depositCapUsd: new BN(obj.depositCapUsd),\n feesACumulative: new BN(obj.feesACumulative),\n feesBCumulative: new BN(obj.feesBCumulative),\n reward0AmountCumulative: new BN(obj.reward0AmountCumulative),\n reward1AmountCumulative: new BN(obj.reward1AmountCumulative),\n reward2AmountCumulative: new BN(obj.reward2AmountCumulative),\n depositCapUsdPerIxn: new BN(obj.depositCapUsdPerIxn),\n withdrawalCapA: types.WithdrawalCaps.fromJSON(obj.withdrawalCapA),\n withdrawalCapB: types.WithdrawalCaps.fromJSON(obj.withdrawalCapB),\n maxPriceDeviationBps: new BN(obj.maxPriceDeviationBps),\n swapVaultMaxSlippageBps: obj.swapVaultMaxSlippageBps,\n swapVaultMaxSlippageFromReferenceBps:\n obj.swapVaultMaxSlippageFromReferenceBps,\n strategyType: new BN(obj.strategyType),\n padding0: new BN(obj.padding0),\n withdrawFee: new BN(obj.withdrawFee),\n feesFee: new BN(obj.feesFee),\n reward0Fee: new BN(obj.reward0Fee),\n reward1Fee: new BN(obj.reward1Fee),\n reward2Fee: new BN(obj.reward2Fee),\n positionTimestamp: new BN(obj.positionTimestamp),\n kaminoRewards: obj.kaminoRewards.map((item) =>\n types.KaminoRewardInfo.fromJSON(item)\n ),\n strategyDex: new BN(obj.strategyDex),\n raydiumProtocolPositionOrBaseVaultAuthority: new PublicKey(\n obj.raydiumProtocolPositionOrBaseVaultAuthority\n ),\n allowDepositWithoutInvest: new BN(obj.allowDepositWithoutInvest),\n raydiumPoolConfigOrBaseVaultAuthority: new PublicKey(\n obj.raydiumPoolConfigOrBaseVaultAuthority\n ),\n depositBlocked: obj.depositBlocked,\n creationStatus: obj.creationStatus,\n investBlocked: obj.investBlocked,\n shareCalculationMethod: obj.shareCalculationMethod,\n withdrawBlocked: obj.withdrawBlocked,\n reservedFlag2: obj.reservedFlag2,\n localAdminBlocked: obj.localAdminBlocked,\n flashVaultSwapAllowed: obj.flashVaultSwapAllowed,\n referenceSwapPriceA: types.Price.fromJSON(obj.referenceSwapPriceA),\n referenceSwapPriceB: types.Price.fromJSON(obj.referenceSwapPriceB),\n isCommunity: obj.isCommunity,\n rebalanceType: obj.rebalanceType,\n padding1: obj.padding1,\n rebalanceRaw: types.RebalanceRaw.fromJSON(obj.rebalanceRaw),\n padding2: obj.padding2,\n tokenAFeesFromRewardsCumulative: new BN(\n obj.tokenAFeesFromRewardsCumulative\n ),\n tokenBFeesFromRewardsCumulative: new BN(\n obj.tokenBFeesFromRewardsCumulative\n ),\n strategyLookupTable: new PublicKey(obj.strategyLookupTable),\n lastSwapUnevenStepTimestamp: new BN(obj.lastSwapUnevenStepTimestamp),\n farm: new PublicKey(obj.farm),\n rebalancesCap: types.WithdrawalCaps.fromJSON(obj.rebalancesCap),\n swapUnevenAuthority: new PublicKey(obj.swapUnevenAuthority),\n tokenATokenProgram: new PublicKey(obj.tokenATokenProgram),\n tokenBTokenProgram: new PublicKey(obj.tokenBTokenProgram),\n padding3: new BN(obj.padding3),\n padding4: obj.padding4.map((item) => new BN(item)),\n padding5: obj.padding5.map((item) => new BN(item)),\n padding6: obj.padding6.map((item) => new BN(item)),\n padding7: obj.padding7.map((item) => new BN(item)),\n })\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"WhirlpoolStrategy.js","sourceRoot":"","sources":["../../../src/kamino-client/accounts/WhirlpoolStrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,kDAAsB,CAAC,wDAAwD;AAC/E,wDAAyC,CAAC,wDAAwD;AAClG,gDAAiC,CAAC,wDAAwD;AAC1F,4CAAyC;AAkNzC,MAAa,iBAAiB;IAkN5B,YAAY,MAA+B;QACzC,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAA;QACvC,IAAI,CAAC,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAA;QACnD,IAAI,CAAC,sBAAsB,GAAG,MAAM,CAAC,sBAAsB,CAAA;QAC3D,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;QACvB,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,CAAA;QAC7C,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,CAAA;QAC7C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAA;QACvC,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAA;QAC/C,IAAI,CAAC,oBAAoB,GAAG,MAAM,CAAC,oBAAoB,CAAA;QACvD,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;QACrC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;QACrC,IA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K,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC;CAC1C,CAAC,CAAA","sourcesContent":["import { PublicKey, Connection } from \"@solana/web3.js\"\nimport BN from \"bn.js\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as borsh from \"@coral-xyz/borsh\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as types from \"../types\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport { PROGRAM_ID } from \"../programId\"\n\nexport interface WhirlpoolStrategyFields {\n adminAuthority: PublicKey\n globalConfig: PublicKey\n baseVaultAuthority: PublicKey\n baseVaultAuthorityBump: BN\n pool: PublicKey\n poolTokenVaultA: PublicKey\n poolTokenVaultB: PublicKey\n tickArrayLower: PublicKey\n tickArrayUpper: PublicKey\n position: PublicKey\n positionMint: PublicKey\n positionMetadata: PublicKey\n positionTokenAccount: PublicKey\n tokenAVault: PublicKey\n tokenBVault: PublicKey\n deprecated0: Array<PublicKey>\n deprecated1: Array<BN>\n tokenAMint: PublicKey\n tokenBMint: PublicKey\n tokenAMintDecimals: BN\n tokenBMintDecimals: BN\n tokenAAmounts: BN\n tokenBAmounts: BN\n tokenACollateralId: BN\n tokenBCollateralId: BN\n scopePrices: PublicKey\n deprecated2: PublicKey\n sharesMint: PublicKey\n sharesMintDecimals: BN\n sharesMintAuthority: PublicKey\n sharesMintAuthorityBump: BN\n sharesIssued: BN\n status: BN\n reward0Amount: BN\n reward0Vault: PublicKey\n reward0CollateralId: BN\n reward0Decimals: BN\n reward1Amount: BN\n reward1Vault: PublicKey\n reward1CollateralId: BN\n reward1Decimals: BN\n reward2Amount: BN\n reward2Vault: PublicKey\n reward2CollateralId: BN\n reward2Decimals: BN\n depositCapUsd: BN\n feesACumulative: BN\n feesBCumulative: BN\n reward0AmountCumulative: BN\n reward1AmountCumulative: BN\n reward2AmountCumulative: BN\n depositCapUsdPerIxn: BN\n withdrawalCapA: types.WithdrawalCapsFields\n withdrawalCapB: types.WithdrawalCapsFields\n maxPriceDeviationBps: BN\n swapVaultMaxSlippageBps: number\n swapVaultMaxSlippageFromReferenceBps: number\n strategyType: BN\n padding0: BN\n withdrawFee: BN\n feesFee: BN\n reward0Fee: BN\n reward1Fee: BN\n reward2Fee: BN\n positionTimestamp: BN\n kaminoRewards: Array<types.KaminoRewardInfoFields>\n strategyDex: BN\n raydiumProtocolPositionOrBaseVaultAuthority: PublicKey\n allowDepositWithoutInvest: BN\n raydiumPoolConfigOrBaseVaultAuthority: PublicKey\n depositBlocked: number\n creationStatus: number\n investBlocked: number\n /** share_calculation_method can be either DOLAR_BASED=0 or PROPORTION_BASED=1 */\n shareCalculationMethod: number\n withdrawBlocked: number\n reservedFlag2: number\n localAdminBlocked: number\n flashVaultSwapAllowed: number\n referenceSwapPriceA: types.PriceFields\n referenceSwapPriceB: types.PriceFields\n isCommunity: number\n rebalanceType: number\n padding1: Array<number>\n rebalanceRaw: types.RebalanceRawFields\n padding2: Array<number>\n tokenAFeesFromRewardsCumulative: BN\n tokenBFeesFromRewardsCumulative: BN\n strategyLookupTable: PublicKey\n lastSwapUnevenStepTimestamp: BN\n farm: PublicKey\n rebalancesCap: types.WithdrawalCapsFields\n swapUnevenAuthority: PublicKey\n tokenATokenProgram: PublicKey\n tokenBTokenProgram: PublicKey\n pendingAdmin: PublicKey\n padding3: BN\n padding4: Array<BN>\n padding5: Array<BN>\n padding6: Array<BN>\n padding7: Array<BN>\n}\n\nexport interface WhirlpoolStrategyJSON {\n adminAuthority: string\n globalConfig: string\n baseVaultAuthority: string\n baseVaultAuthorityBump: string\n pool: string\n poolTokenVaultA: string\n poolTokenVaultB: string\n tickArrayLower: string\n tickArrayUpper: string\n position: string\n positionMint: string\n positionMetadata: string\n positionTokenAccount: string\n tokenAVault: string\n tokenBVault: string\n deprecated0: Array<string>\n deprecated1: Array<string>\n tokenAMint: string\n tokenBMint: string\n tokenAMintDecimals: string\n tokenBMintDecimals: string\n tokenAAmounts: string\n tokenBAmounts: string\n tokenACollateralId: string\n tokenBCollateralId: string\n scopePrices: string\n deprecated2: string\n sharesMint: string\n sharesMintDecimals: string\n sharesMintAuthority: string\n sharesMintAuthorityBump: string\n sharesIssued: string\n status: string\n reward0Amount: string\n reward0Vault: string\n reward0CollateralId: string\n reward0Decimals: string\n reward1Amount: string\n reward1Vault: string\n reward1CollateralId: string\n reward1Decimals: string\n reward2Amount: string\n reward2Vault: string\n reward2CollateralId: string\n reward2Decimals: string\n depositCapUsd: string\n feesACumulative: string\n feesBCumulative: string\n reward0AmountCumulative: string\n reward1AmountCumulative: string\n reward2AmountCumulative: string\n depositCapUsdPerIxn: string\n withdrawalCapA: types.WithdrawalCapsJSON\n withdrawalCapB: types.WithdrawalCapsJSON\n maxPriceDeviationBps: string\n swapVaultMaxSlippageBps: number\n swapVaultMaxSlippageFromReferenceBps: number\n strategyType: string\n padding0: string\n withdrawFee: string\n feesFee: string\n reward0Fee: string\n reward1Fee: string\n reward2Fee: string\n positionTimestamp: string\n kaminoRewards: Array<types.KaminoRewardInfoJSON>\n strategyDex: string\n raydiumProtocolPositionOrBaseVaultAuthority: string\n allowDepositWithoutInvest: string\n raydiumPoolConfigOrBaseVaultAuthority: string\n depositBlocked: number\n creationStatus: number\n investBlocked: number\n /** share_calculation_method can be either DOLAR_BASED=0 or PROPORTION_BASED=1 */\n shareCalculationMethod: number\n withdrawBlocked: number\n reservedFlag2: number\n localAdminBlocked: number\n flashVaultSwapAllowed: number\n referenceSwapPriceA: types.PriceJSON\n referenceSwapPriceB: types.PriceJSON\n isCommunity: number\n rebalanceType: number\n padding1: Array<number>\n rebalanceRaw: types.RebalanceRawJSON\n padding2: Array<number>\n tokenAFeesFromRewardsCumulative: string\n tokenBFeesFromRewardsCumulative: string\n strategyLookupTable: string\n lastSwapUnevenStepTimestamp: string\n farm: string\n rebalancesCap: types.WithdrawalCapsJSON\n swapUnevenAuthority: string\n tokenATokenProgram: string\n tokenBTokenProgram: string\n pendingAdmin: string\n padding3: string\n padding4: Array<string>\n padding5: Array<string>\n padding6: Array<string>\n padding7: Array<string>\n}\n\nexport class WhirlpoolStrategy {\n readonly adminAuthority: PublicKey\n readonly globalConfig: PublicKey\n readonly baseVaultAuthority: PublicKey\n readonly baseVaultAuthorityBump: BN\n readonly pool: PublicKey\n readonly poolTokenVaultA: PublicKey\n readonly poolTokenVaultB: PublicKey\n readonly tickArrayLower: PublicKey\n readonly tickArrayUpper: PublicKey\n readonly position: PublicKey\n readonly positionMint: PublicKey\n readonly positionMetadata: PublicKey\n readonly positionTokenAccount: PublicKey\n readonly tokenAVault: PublicKey\n readonly tokenBVault: PublicKey\n readonly deprecated0: Array<PublicKey>\n readonly deprecated1: Array<BN>\n readonly tokenAMint: PublicKey\n readonly tokenBMint: PublicKey\n readonly tokenAMintDecimals: BN\n readonly tokenBMintDecimals: BN\n readonly tokenAAmounts: BN\n readonly tokenBAmounts: BN\n readonly tokenACollateralId: BN\n readonly tokenBCollateralId: BN\n readonly scopePrices: PublicKey\n readonly deprecated2: PublicKey\n readonly sharesMint: PublicKey\n readonly sharesMintDecimals: BN\n readonly sharesMintAuthority: PublicKey\n readonly sharesMintAuthorityBump: BN\n readonly sharesIssued: BN\n readonly status: BN\n readonly reward0Amount: BN\n readonly reward0Vault: PublicKey\n readonly reward0CollateralId: BN\n readonly reward0Decimals: BN\n readonly reward1Amount: BN\n readonly reward1Vault: PublicKey\n readonly reward1CollateralId: BN\n readonly reward1Decimals: BN\n readonly reward2Amount: BN\n readonly reward2Vault: PublicKey\n readonly reward2CollateralId: BN\n readonly reward2Decimals: BN\n readonly depositCapUsd: BN\n readonly feesACumulative: BN\n readonly feesBCumulative: BN\n readonly reward0AmountCumulative: BN\n readonly reward1AmountCumulative: BN\n readonly reward2AmountCumulative: BN\n readonly depositCapUsdPerIxn: BN\n readonly withdrawalCapA: types.WithdrawalCaps\n readonly withdrawalCapB: types.WithdrawalCaps\n readonly maxPriceDeviationBps: BN\n readonly swapVaultMaxSlippageBps: number\n readonly swapVaultMaxSlippageFromReferenceBps: number\n readonly strategyType: BN\n readonly padding0: BN\n readonly withdrawFee: BN\n readonly feesFee: BN\n readonly reward0Fee: BN\n readonly reward1Fee: BN\n readonly reward2Fee: BN\n readonly positionTimestamp: BN\n readonly kaminoRewards: Array<types.KaminoRewardInfo>\n readonly strategyDex: BN\n readonly raydiumProtocolPositionOrBaseVaultAuthority: PublicKey\n readonly allowDepositWithoutInvest: BN\n readonly raydiumPoolConfigOrBaseVaultAuthority: PublicKey\n readonly depositBlocked: number\n readonly creationStatus: number\n readonly investBlocked: number\n /** share_calculation_method can be either DOLAR_BASED=0 or PROPORTION_BASED=1 */\n readonly shareCalculationMethod: number\n readonly withdrawBlocked: number\n readonly reservedFlag2: number\n readonly localAdminBlocked: number\n readonly flashVaultSwapAllowed: number\n readonly referenceSwapPriceA: types.Price\n readonly referenceSwapPriceB: types.Price\n readonly isCommunity: number\n readonly rebalanceType: number\n readonly padding1: Array<number>\n readonly rebalanceRaw: types.RebalanceRaw\n readonly padding2: Array<number>\n readonly tokenAFeesFromRewardsCumulative: BN\n readonly tokenBFeesFromRewardsCumulative: BN\n readonly strategyLookupTable: PublicKey\n readonly lastSwapUnevenStepTimestamp: BN\n readonly farm: PublicKey\n readonly rebalancesCap: types.WithdrawalCaps\n readonly swapUnevenAuthority: PublicKey\n readonly tokenATokenProgram: PublicKey\n readonly tokenBTokenProgram: PublicKey\n readonly pendingAdmin: PublicKey\n readonly padding3: BN\n readonly padding4: Array<BN>\n readonly padding5: Array<BN>\n readonly padding6: Array<BN>\n readonly padding7: Array<BN>\n\n static readonly discriminator = Buffer.from([\n 190, 178, 231, 184, 49, 186, 103, 13,\n ])\n\n static readonly layout = borsh.struct([\n borsh.publicKey(\"adminAuthority\"),\n borsh.publicKey(\"globalConfig\"),\n borsh.publicKey(\"baseVaultAuthority\"),\n borsh.u64(\"baseVaultAuthorityBump\"),\n borsh.publicKey(\"pool\"),\n borsh.publicKey(\"poolTokenVaultA\"),\n borsh.publicKey(\"poolTokenVaultB\"),\n borsh.publicKey(\"tickArrayLower\"),\n borsh.publicKey(\"tickArrayUpper\"),\n borsh.publicKey(\"position\"),\n borsh.publicKey(\"positionMint\"),\n borsh.publicKey(\"positionMetadata\"),\n borsh.publicKey(\"positionTokenAccount\"),\n borsh.publicKey(\"tokenAVault\"),\n borsh.publicKey(\"tokenBVault\"),\n borsh.array(borsh.publicKey(), 2, \"deprecated0\"),\n borsh.array(borsh.u64(), 2, \"deprecated1\"),\n borsh.publicKey(\"tokenAMint\"),\n borsh.publicKey(\"tokenBMint\"),\n borsh.u64(\"tokenAMintDecimals\"),\n borsh.u64(\"tokenBMintDecimals\"),\n borsh.u64(\"tokenAAmounts\"),\n borsh.u64(\"tokenBAmounts\"),\n borsh.u64(\"tokenACollateralId\"),\n borsh.u64(\"tokenBCollateralId\"),\n borsh.publicKey(\"scopePrices\"),\n borsh.publicKey(\"deprecated2\"),\n borsh.publicKey(\"sharesMint\"),\n borsh.u64(\"sharesMintDecimals\"),\n borsh.publicKey(\"sharesMintAuthority\"),\n borsh.u64(\"sharesMintAuthorityBump\"),\n borsh.u64(\"sharesIssued\"),\n borsh.u64(\"status\"),\n borsh.u64(\"reward0Amount\"),\n borsh.publicKey(\"reward0Vault\"),\n borsh.u64(\"reward0CollateralId\"),\n borsh.u64(\"reward0Decimals\"),\n borsh.u64(\"reward1Amount\"),\n borsh.publicKey(\"reward1Vault\"),\n borsh.u64(\"reward1CollateralId\"),\n borsh.u64(\"reward1Decimals\"),\n borsh.u64(\"reward2Amount\"),\n borsh.publicKey(\"reward2Vault\"),\n borsh.u64(\"reward2CollateralId\"),\n borsh.u64(\"reward2Decimals\"),\n borsh.u64(\"depositCapUsd\"),\n borsh.u64(\"feesACumulative\"),\n borsh.u64(\"feesBCumulative\"),\n borsh.u64(\"reward0AmountCumulative\"),\n borsh.u64(\"reward1AmountCumulative\"),\n borsh.u64(\"reward2AmountCumulative\"),\n borsh.u64(\"depositCapUsdPerIxn\"),\n types.WithdrawalCaps.layout(\"withdrawalCapA\"),\n types.WithdrawalCaps.layout(\"withdrawalCapB\"),\n borsh.u64(\"maxPriceDeviationBps\"),\n borsh.u32(\"swapVaultMaxSlippageBps\"),\n borsh.u32(\"swapVaultMaxSlippageFromReferenceBps\"),\n borsh.u64(\"strategyType\"),\n borsh.u64(\"padding0\"),\n borsh.u64(\"withdrawFee\"),\n borsh.u64(\"feesFee\"),\n borsh.u64(\"reward0Fee\"),\n borsh.u64(\"reward1Fee\"),\n borsh.u64(\"reward2Fee\"),\n borsh.u64(\"positionTimestamp\"),\n borsh.array(types.KaminoRewardInfo.layout(), 3, \"kaminoRewards\"),\n borsh.u64(\"strategyDex\"),\n borsh.publicKey(\"raydiumProtocolPositionOrBaseVaultAuthority\"),\n borsh.u64(\"allowDepositWithoutInvest\"),\n borsh.publicKey(\"raydiumPoolConfigOrBaseVaultAuthority\"),\n borsh.u8(\"depositBlocked\"),\n borsh.u8(\"creationStatus\"),\n borsh.u8(\"investBlocked\"),\n borsh.u8(\"shareCalculationMethod\"),\n borsh.u8(\"withdrawBlocked\"),\n borsh.u8(\"reservedFlag2\"),\n borsh.u8(\"localAdminBlocked\"),\n borsh.u8(\"flashVaultSwapAllowed\"),\n types.Price.layout(\"referenceSwapPriceA\"),\n types.Price.layout(\"referenceSwapPriceB\"),\n borsh.u8(\"isCommunity\"),\n borsh.u8(\"rebalanceType\"),\n borsh.array(borsh.u8(), 6, \"padding1\"),\n types.RebalanceRaw.layout(\"rebalanceRaw\"),\n borsh.array(borsh.u8(), 7, \"padding2\"),\n borsh.u64(\"tokenAFeesFromRewardsCumulative\"),\n borsh.u64(\"tokenBFeesFromRewardsCumulative\"),\n borsh.publicKey(\"strategyLookupTable\"),\n borsh.u64(\"lastSwapUnevenStepTimestamp\"),\n borsh.publicKey(\"farm\"),\n types.WithdrawalCaps.layout(\"rebalancesCap\"),\n borsh.publicKey(\"swapUnevenAuthority\"),\n borsh.publicKey(\"tokenATokenProgram\"),\n borsh.publicKey(\"tokenBTokenProgram\"),\n borsh.publicKey(\"pendingAdmin\"),\n borsh.u64(\"padding3\"),\n borsh.array(borsh.u128(), 13, \"padding4\"),\n borsh.array(borsh.u128(), 32, \"padding5\"),\n borsh.array(borsh.u128(), 32, \"padding6\"),\n borsh.array(borsh.u128(), 32, \"padding7\"),\n ])\n\n constructor(fields: WhirlpoolStrategyFields) {\n this.adminAuthority = fields.adminAuthority\n this.globalConfig = fields.globalConfig\n this.baseVaultAuthority = fields.baseVaultAuthority\n this.baseVaultAuthorityBump = fields.baseVaultAuthorityBump\n this.pool = fields.pool\n this.poolTokenVaultA = fields.poolTokenVaultA\n this.poolTokenVaultB = fields.poolTokenVaultB\n this.tickArrayLower = fields.tickArrayLower\n this.tickArrayUpper = fields.tickArrayUpper\n this.position = fields.position\n this.positionMint = fields.positionMint\n this.positionMetadata = fields.positionMetadata\n this.positionTokenAccount = fields.positionTokenAccount\n this.tokenAVault = fields.tokenAVault\n this.tokenBVault = fields.tokenBVault\n this.deprecated0 = fields.deprecated0\n this.deprecated1 = fields.deprecated1\n this.tokenAMint = fields.tokenAMint\n this.tokenBMint = fields.tokenBMint\n this.tokenAMintDecimals = fields.tokenAMintDecimals\n this.tokenBMintDecimals = fields.tokenBMintDecimals\n this.tokenAAmounts = fields.tokenAAmounts\n this.tokenBAmounts = fields.tokenBAmounts\n this.tokenACollateralId = fields.tokenACollateralId\n this.tokenBCollateralId = fields.tokenBCollateralId\n this.scopePrices = fields.scopePrices\n this.deprecated2 = fields.deprecated2\n this.sharesMint = fields.sharesMint\n this.sharesMintDecimals = fields.sharesMintDecimals\n this.sharesMintAuthority = fields.sharesMintAuthority\n this.sharesMintAuthorityBump = fields.sharesMintAuthorityBump\n this.sharesIssued = fields.sharesIssued\n this.status = fields.status\n this.reward0Amount = fields.reward0Amount\n this.reward0Vault = fields.reward0Vault\n this.reward0CollateralId = fields.reward0CollateralId\n this.reward0Decimals = fields.reward0Decimals\n this.reward1Amount = fields.reward1Amount\n this.reward1Vault = fields.reward1Vault\n this.reward1CollateralId = fields.reward1CollateralId\n this.reward1Decimals = fields.reward1Decimals\n this.reward2Amount = fields.reward2Amount\n this.reward2Vault = fields.reward2Vault\n this.reward2CollateralId = fields.reward2CollateralId\n this.reward2Decimals = fields.reward2Decimals\n this.depositCapUsd = fields.depositCapUsd\n this.feesACumulative = fields.feesACumulative\n this.feesBCumulative = fields.feesBCumulative\n this.reward0AmountCumulative = fields.reward0AmountCumulative\n this.reward1AmountCumulative = fields.reward1AmountCumulative\n this.reward2AmountCumulative = fields.reward2AmountCumulative\n this.depositCapUsdPerIxn = fields.depositCapUsdPerIxn\n this.withdrawalCapA = new types.WithdrawalCaps({ ...fields.withdrawalCapA })\n this.withdrawalCapB = new types.WithdrawalCaps({ ...fields.withdrawalCapB })\n this.maxPriceDeviationBps = fields.maxPriceDeviationBps\n this.swapVaultMaxSlippageBps = fields.swapVaultMaxSlippageBps\n this.swapVaultMaxSlippageFromReferenceBps =\n fields.swapVaultMaxSlippageFromReferenceBps\n this.strategyType = fields.strategyType\n this.padding0 = fields.padding0\n this.withdrawFee = fields.withdrawFee\n this.feesFee = fields.feesFee\n this.reward0Fee = fields.reward0Fee\n this.reward1Fee = fields.reward1Fee\n this.reward2Fee = fields.reward2Fee\n this.positionTimestamp = fields.positionTimestamp\n this.kaminoRewards = fields.kaminoRewards.map(\n (item) => new types.KaminoRewardInfo({ ...item })\n )\n this.strategyDex = fields.strategyDex\n this.raydiumProtocolPositionOrBaseVaultAuthority =\n fields.raydiumProtocolPositionOrBaseVaultAuthority\n this.allowDepositWithoutInvest = fields.allowDepositWithoutInvest\n this.raydiumPoolConfigOrBaseVaultAuthority =\n fields.raydiumPoolConfigOrBaseVaultAuthority\n this.depositBlocked = fields.depositBlocked\n this.creationStatus = fields.creationStatus\n this.investBlocked = fields.investBlocked\n this.shareCalculationMethod = fields.shareCalculationMethod\n this.withdrawBlocked = fields.withdrawBlocked\n this.reservedFlag2 = fields.reservedFlag2\n this.localAdminBlocked = fields.localAdminBlocked\n this.flashVaultSwapAllowed = fields.flashVaultSwapAllowed\n this.referenceSwapPriceA = new types.Price({\n ...fields.referenceSwapPriceA,\n })\n this.referenceSwapPriceB = new types.Price({\n ...fields.referenceSwapPriceB,\n })\n this.isCommunity = fields.isCommunity\n this.rebalanceType = fields.rebalanceType\n this.padding1 = fields.padding1\n this.rebalanceRaw = new types.RebalanceRaw({ ...fields.rebalanceRaw })\n this.padding2 = fields.padding2\n this.tokenAFeesFromRewardsCumulative =\n fields.tokenAFeesFromRewardsCumulative\n this.tokenBFeesFromRewardsCumulative =\n fields.tokenBFeesFromRewardsCumulative\n this.strategyLookupTable = fields.strategyLookupTable\n this.lastSwapUnevenStepTimestamp = fields.lastSwapUnevenStepTimestamp\n this.farm = fields.farm\n this.rebalancesCap = new types.WithdrawalCaps({ ...fields.rebalancesCap })\n this.swapUnevenAuthority = fields.swapUnevenAuthority\n this.tokenATokenProgram = fields.tokenATokenProgram\n this.tokenBTokenProgram = fields.tokenBTokenProgram\n this.pendingAdmin = fields.pendingAdmin\n this.padding3 = fields.padding3\n this.padding4 = fields.padding4\n this.padding5 = fields.padding5\n this.padding6 = fields.padding6\n this.padding7 = fields.padding7\n }\n\n static async fetch(\n c: Connection,\n address: PublicKey,\n programId: PublicKey = PROGRAM_ID\n ): Promise<WhirlpoolStrategy | null> {\n const info = await c.getAccountInfo(address)\n\n if (info === null) {\n return null\n }\n if (!info.owner.equals(programId)) {\n throw new Error(\"account doesn't belong to this program\")\n }\n\n return this.decode(info.data)\n }\n\n static async fetchMultiple(\n c: Connection,\n addresses: PublicKey[],\n programId: PublicKey = PROGRAM_ID\n ): Promise<Array<WhirlpoolStrategy | null>> {\n const infos = await c.getMultipleAccountsInfo(addresses)\n\n return infos.map((info) => {\n if (info === null) {\n return null\n }\n if (!info.owner.equals(programId)) {\n throw new Error(\"account doesn't belong to this program\")\n }\n\n return this.decode(info.data)\n })\n }\n\n static decode(data: Buffer): WhirlpoolStrategy {\n if (!data.slice(0, 8).equals(WhirlpoolStrategy.discriminator)) {\n throw new Error(\"invalid account discriminator\")\n }\n\n const dec = WhirlpoolStrategy.layout.decode(data.slice(8))\n\n return new WhirlpoolStrategy({\n adminAuthority: dec.adminAuthority,\n globalConfig: dec.globalConfig,\n baseVaultAuthority: dec.baseVaultAuthority,\n baseVaultAuthorityBump: dec.baseVaultAuthorityBump,\n pool: dec.pool,\n poolTokenVaultA: dec.poolTokenVaultA,\n poolTokenVaultB: dec.poolTokenVaultB,\n tickArrayLower: dec.tickArrayLower,\n tickArrayUpper: dec.tickArrayUpper,\n position: dec.position,\n positionMint: dec.positionMint,\n positionMetadata: dec.positionMetadata,\n positionTokenAccount: dec.positionTokenAccount,\n tokenAVault: dec.tokenAVault,\n tokenBVault: dec.tokenBVault,\n deprecated0: dec.deprecated0,\n deprecated1: dec.deprecated1,\n tokenAMint: dec.tokenAMint,\n tokenBMint: dec.tokenBMint,\n tokenAMintDecimals: dec.tokenAMintDecimals,\n tokenBMintDecimals: dec.tokenBMintDecimals,\n tokenAAmounts: dec.tokenAAmounts,\n tokenBAmounts: dec.tokenBAmounts,\n tokenACollateralId: dec.tokenACollateralId,\n tokenBCollateralId: dec.tokenBCollateralId,\n scopePrices: dec.scopePrices,\n deprecated2: dec.deprecated2,\n sharesMint: dec.sharesMint,\n sharesMintDecimals: dec.sharesMintDecimals,\n sharesMintAuthority: dec.sharesMintAuthority,\n sharesMintAuthorityBump: dec.sharesMintAuthorityBump,\n sharesIssued: dec.sharesIssued,\n status: dec.status,\n reward0Amount: dec.reward0Amount,\n reward0Vault: dec.reward0Vault,\n reward0CollateralId: dec.reward0CollateralId,\n reward0Decimals: dec.reward0Decimals,\n reward1Amount: dec.reward1Amount,\n reward1Vault: dec.reward1Vault,\n reward1CollateralId: dec.reward1CollateralId,\n reward1Decimals: dec.reward1Decimals,\n reward2Amount: dec.reward2Amount,\n reward2Vault: dec.reward2Vault,\n reward2CollateralId: dec.reward2CollateralId,\n reward2Decimals: dec.reward2Decimals,\n depositCapUsd: dec.depositCapUsd,\n feesACumulative: dec.feesACumulative,\n feesBCumulative: dec.feesBCumulative,\n reward0AmountCumulative: dec.reward0AmountCumulative,\n reward1AmountCumulative: dec.reward1AmountCumulative,\n reward2AmountCumulative: dec.reward2AmountCumulative,\n depositCapUsdPerIxn: dec.depositCapUsdPerIxn,\n withdrawalCapA: types.WithdrawalCaps.fromDecoded(dec.withdrawalCapA),\n withdrawalCapB: types.WithdrawalCaps.fromDecoded(dec.withdrawalCapB),\n maxPriceDeviationBps: dec.maxPriceDeviationBps,\n swapVaultMaxSlippageBps: dec.swapVaultMaxSlippageBps,\n swapVaultMaxSlippageFromReferenceBps:\n dec.swapVaultMaxSlippageFromReferenceBps,\n strategyType: dec.strategyType,\n padding0: dec.padding0,\n withdrawFee: dec.withdrawFee,\n feesFee: dec.feesFee,\n reward0Fee: dec.reward0Fee,\n reward1Fee: dec.reward1Fee,\n reward2Fee: dec.reward2Fee,\n positionTimestamp: dec.positionTimestamp,\n kaminoRewards: dec.kaminoRewards.map(\n (\n item: any /* eslint-disable-line @typescript-eslint/no-explicit-any */\n ) => types.KaminoRewardInfo.fromDecoded(item)\n ),\n strategyDex: dec.strategyDex,\n raydiumProtocolPositionOrBaseVaultAuthority:\n dec.raydiumProtocolPositionOrBaseVaultAuthority,\n allowDepositWithoutInvest: dec.allowDepositWithoutInvest,\n raydiumPoolConfigOrBaseVaultAuthority:\n dec.raydiumPoolConfigOrBaseVaultAuthority,\n depositBlocked: dec.depositBlocked,\n creationStatus: dec.creationStatus,\n investBlocked: dec.investBlocked,\n shareCalculationMethod: dec.shareCalculationMethod,\n withdrawBlocked: dec.withdrawBlocked,\n reservedFlag2: dec.reservedFlag2,\n localAdminBlocked: dec.localAdminBlocked,\n flashVaultSwapAllowed: dec.flashVaultSwapAllowed,\n referenceSwapPriceA: types.Price.fromDecoded(dec.referenceSwapPriceA),\n referenceSwapPriceB: types.Price.fromDecoded(dec.referenceSwapPriceB),\n isCommunity: dec.isCommunity,\n rebalanceType: dec.rebalanceType,\n padding1: dec.padding1,\n rebalanceRaw: types.RebalanceRaw.fromDecoded(dec.rebalanceRaw),\n padding2: dec.padding2,\n tokenAFeesFromRewardsCumulative: dec.tokenAFeesFromRewardsCumulative,\n tokenBFeesFromRewardsCumulative: dec.tokenBFeesFromRewardsCumulative,\n strategyLookupTable: dec.strategyLookupTable,\n lastSwapUnevenStepTimestamp: dec.lastSwapUnevenStepTimestamp,\n farm: dec.farm,\n rebalancesCap: types.WithdrawalCaps.fromDecoded(dec.rebalancesCap),\n swapUnevenAuthority: dec.swapUnevenAuthority,\n tokenATokenProgram: dec.tokenATokenProgram,\n tokenBTokenProgram: dec.tokenBTokenProgram,\n pendingAdmin: dec.pendingAdmin,\n padding3: dec.padding3,\n padding4: dec.padding4,\n padding5: dec.padding5,\n padding6: dec.padding6,\n padding7: dec.padding7,\n })\n }\n\n toJSON(): WhirlpoolStrategyJSON {\n return {\n adminAuthority: this.adminAuthority.toString(),\n globalConfig: this.globalConfig.toString(),\n baseVaultAuthority: this.baseVaultAuthority.toString(),\n baseVaultAuthorityBump: this.baseVaultAuthorityBump.toString(),\n pool: this.pool.toString(),\n poolTokenVaultA: this.poolTokenVaultA.toString(),\n poolTokenVaultB: this.poolTokenVaultB.toString(),\n tickArrayLower: this.tickArrayLower.toString(),\n tickArrayUpper: this.tickArrayUpper.toString(),\n position: this.position.toString(),\n positionMint: this.positionMint.toString(),\n positionMetadata: this.positionMetadata.toString(),\n positionTokenAccount: this.positionTokenAccount.toString(),\n tokenAVault: this.tokenAVault.toString(),\n tokenBVault: this.tokenBVault.toString(),\n deprecated0: this.deprecated0.map((item) => item.toString()),\n deprecated1: this.deprecated1.map((item) => item.toString()),\n tokenAMint: this.tokenAMint.toString(),\n tokenBMint: this.tokenBMint.toString(),\n tokenAMintDecimals: this.tokenAMintDecimals.toString(),\n tokenBMintDecimals: this.tokenBMintDecimals.toString(),\n tokenAAmounts: this.tokenAAmounts.toString(),\n tokenBAmounts: this.tokenBAmounts.toString(),\n tokenACollateralId: this.tokenACollateralId.toString(),\n tokenBCollateralId: this.tokenBCollateralId.toString(),\n scopePrices: this.scopePrices.toString(),\n deprecated2: this.deprecated2.toString(),\n sharesMint: this.sharesMint.toString(),\n sharesMintDecimals: this.sharesMintDecimals.toString(),\n sharesMintAuthority: this.sharesMintAuthority.toString(),\n sharesMintAuthorityBump: this.sharesMintAuthorityBump.toString(),\n sharesIssued: this.sharesIssued.toString(),\n status: this.status.toString(),\n reward0Amount: this.reward0Amount.toString(),\n reward0Vault: this.reward0Vault.toString(),\n reward0CollateralId: this.reward0CollateralId.toString(),\n reward0Decimals: this.reward0Decimals.toString(),\n reward1Amount: this.reward1Amount.toString(),\n reward1Vault: this.reward1Vault.toString(),\n reward1CollateralId: this.reward1CollateralId.toString(),\n reward1Decimals: this.reward1Decimals.toString(),\n reward2Amount: this.reward2Amount.toString(),\n reward2Vault: this.reward2Vault.toString(),\n reward2CollateralId: this.reward2CollateralId.toString(),\n reward2Decimals: this.reward2Decimals.toString(),\n depositCapUsd: this.depositCapUsd.toString(),\n feesACumulative: this.feesACumulative.toString(),\n feesBCumulative: this.feesBCumulative.toString(),\n reward0AmountCumulative: this.reward0AmountCumulative.toString(),\n reward1AmountCumulative: this.reward1AmountCumulative.toString(),\n reward2AmountCumulative: this.reward2AmountCumulative.toString(),\n depositCapUsdPerIxn: this.depositCapUsdPerIxn.toString(),\n withdrawalCapA: this.withdrawalCapA.toJSON(),\n withdrawalCapB: this.withdrawalCapB.toJSON(),\n maxPriceDeviationBps: this.maxPriceDeviationBps.toString(),\n swapVaultMaxSlippageBps: this.swapVaultMaxSlippageBps,\n swapVaultMaxSlippageFromReferenceBps:\n this.swapVaultMaxSlippageFromReferenceBps,\n strategyType: this.strategyType.toString(),\n padding0: this.padding0.toString(),\n withdrawFee: this.withdrawFee.toString(),\n feesFee: this.feesFee.toString(),\n reward0Fee: this.reward0Fee.toString(),\n reward1Fee: this.reward1Fee.toString(),\n reward2Fee: this.reward2Fee.toString(),\n positionTimestamp: this.positionTimestamp.toString(),\n kaminoRewards: this.kaminoRewards.map((item) => item.toJSON()),\n strategyDex: this.strategyDex.toString(),\n raydiumProtocolPositionOrBaseVaultAuthority:\n this.raydiumProtocolPositionOrBaseVaultAuthority.toString(),\n allowDepositWithoutInvest: this.allowDepositWithoutInvest.toString(),\n raydiumPoolConfigOrBaseVaultAuthority:\n this.raydiumPoolConfigOrBaseVaultAuthority.toString(),\n depositBlocked: this.depositBlocked,\n creationStatus: this.creationStatus,\n investBlocked: this.investBlocked,\n shareCalculationMethod: this.shareCalculationMethod,\n withdrawBlocked: this.withdrawBlocked,\n reservedFlag2: this.reservedFlag2,\n localAdminBlocked: this.localAdminBlocked,\n flashVaultSwapAllowed: this.flashVaultSwapAllowed,\n referenceSwapPriceA: this.referenceSwapPriceA.toJSON(),\n referenceSwapPriceB: this.referenceSwapPriceB.toJSON(),\n isCommunity: this.isCommunity,\n rebalanceType: this.rebalanceType,\n padding1: this.padding1,\n rebalanceRaw: this.rebalanceRaw.toJSON(),\n padding2: this.padding2,\n tokenAFeesFromRewardsCumulative:\n this.tokenAFeesFromRewardsCumulative.toString(),\n tokenBFeesFromRewardsCumulative:\n this.tokenBFeesFromRewardsCumulative.toString(),\n strategyLookupTable: this.strategyLookupTable.toString(),\n lastSwapUnevenStepTimestamp: this.lastSwapUnevenStepTimestamp.toString(),\n farm: this.farm.toString(),\n rebalancesCap: this.rebalancesCap.toJSON(),\n swapUnevenAuthority: this.swapUnevenAuthority.toString(),\n tokenATokenProgram: this.tokenATokenProgram.toString(),\n tokenBTokenProgram: this.tokenBTokenProgram.toString(),\n pendingAdmin: this.pendingAdmin.toString(),\n padding3: this.padding3.toString(),\n padding4: this.padding4.map((item) => item.toString()),\n padding5: this.padding5.map((item) => item.toString()),\n padding6: this.padding6.map((item) => item.toString()),\n padding7: this.padding7.map((item) => item.toString()),\n }\n }\n\n static fromJSON(obj: WhirlpoolStrategyJSON): WhirlpoolStrategy {\n return new WhirlpoolStrategy({\n adminAuthority: new PublicKey(obj.adminAuthority),\n globalConfig: new PublicKey(obj.globalConfig),\n baseVaultAuthority: new PublicKey(obj.baseVaultAuthority),\n baseVaultAuthorityBump: new BN(obj.baseVaultAuthorityBump),\n pool: new PublicKey(obj.pool),\n poolTokenVaultA: new PublicKey(obj.poolTokenVaultA),\n poolTokenVaultB: new PublicKey(obj.poolTokenVaultB),\n tickArrayLower: new PublicKey(obj.tickArrayLower),\n tickArrayUpper: new PublicKey(obj.tickArrayUpper),\n position: new PublicKey(obj.position),\n positionMint: new PublicKey(obj.positionMint),\n positionMetadata: new PublicKey(obj.positionMetadata),\n positionTokenAccount: new PublicKey(obj.positionTokenAccount),\n tokenAVault: new PublicKey(obj.tokenAVault),\n tokenBVault: new PublicKey(obj.tokenBVault),\n deprecated0: obj.deprecated0.map((item) => new PublicKey(item)),\n deprecated1: obj.deprecated1.map((item) => new BN(item)),\n tokenAMint: new PublicKey(obj.tokenAMint),\n tokenBMint: new PublicKey(obj.tokenBMint),\n tokenAMintDecimals: new BN(obj.tokenAMintDecimals),\n tokenBMintDecimals: new BN(obj.tokenBMintDecimals),\n tokenAAmounts: new BN(obj.tokenAAmounts),\n tokenBAmounts: new BN(obj.tokenBAmounts),\n tokenACollateralId: new BN(obj.tokenACollateralId),\n tokenBCollateralId: new BN(obj.tokenBCollateralId),\n scopePrices: new PublicKey(obj.scopePrices),\n deprecated2: new PublicKey(obj.deprecated2),\n sharesMint: new PublicKey(obj.sharesMint),\n sharesMintDecimals: new BN(obj.sharesMintDecimals),\n sharesMintAuthority: new PublicKey(obj.sharesMintAuthority),\n sharesMintAuthorityBump: new BN(obj.sharesMintAuthorityBump),\n sharesIssued: new BN(obj.sharesIssued),\n status: new BN(obj.status),\n reward0Amount: new BN(obj.reward0Amount),\n reward0Vault: new PublicKey(obj.reward0Vault),\n reward0CollateralId: new BN(obj.reward0CollateralId),\n reward0Decimals: new BN(obj.reward0Decimals),\n reward1Amount: new BN(obj.reward1Amount),\n reward1Vault: new PublicKey(obj.reward1Vault),\n reward1CollateralId: new BN(obj.reward1CollateralId),\n reward1Decimals: new BN(obj.reward1Decimals),\n reward2Amount: new BN(obj.reward2Amount),\n reward2Vault: new PublicKey(obj.reward2Vault),\n reward2CollateralId: new BN(obj.reward2CollateralId),\n reward2Decimals: new BN(obj.reward2Decimals),\n depositCapUsd: new BN(obj.depositCapUsd),\n feesACumulative: new BN(obj.feesACumulative),\n feesBCumulative: new BN(obj.feesBCumulative),\n reward0AmountCumulative: new BN(obj.reward0AmountCumulative),\n reward1AmountCumulative: new BN(obj.reward1AmountCumulative),\n reward2AmountCumulative: new BN(obj.reward2AmountCumulative),\n depositCapUsdPerIxn: new BN(obj.depositCapUsdPerIxn),\n withdrawalCapA: types.WithdrawalCaps.fromJSON(obj.withdrawalCapA),\n withdrawalCapB: types.WithdrawalCaps.fromJSON(obj.withdrawalCapB),\n maxPriceDeviationBps: new BN(obj.maxPriceDeviationBps),\n swapVaultMaxSlippageBps: obj.swapVaultMaxSlippageBps,\n swapVaultMaxSlippageFromReferenceBps:\n obj.swapVaultMaxSlippageFromReferenceBps,\n strategyType: new BN(obj.strategyType),\n padding0: new BN(obj.padding0),\n withdrawFee: new BN(obj.withdrawFee),\n feesFee: new BN(obj.feesFee),\n reward0Fee: new BN(obj.reward0Fee),\n reward1Fee: new BN(obj.reward1Fee),\n reward2Fee: new BN(obj.reward2Fee),\n positionTimestamp: new BN(obj.positionTimestamp),\n kaminoRewards: obj.kaminoRewards.map((item) =>\n types.KaminoRewardInfo.fromJSON(item)\n ),\n strategyDex: new BN(obj.strategyDex),\n raydiumProtocolPositionOrBaseVaultAuthority: new PublicKey(\n obj.raydiumProtocolPositionOrBaseVaultAuthority\n ),\n allowDepositWithoutInvest: new BN(obj.allowDepositWithoutInvest),\n raydiumPoolConfigOrBaseVaultAuthority: new PublicKey(\n obj.raydiumPoolConfigOrBaseVaultAuthority\n ),\n depositBlocked: obj.depositBlocked,\n creationStatus: obj.creationStatus,\n investBlocked: obj.investBlocked,\n shareCalculationMethod: obj.shareCalculationMethod,\n withdrawBlocked: obj.withdrawBlocked,\n reservedFlag2: obj.reservedFlag2,\n localAdminBlocked: obj.localAdminBlocked,\n flashVaultSwapAllowed: obj.flashVaultSwapAllowed,\n referenceSwapPriceA: types.Price.fromJSON(obj.referenceSwapPriceA),\n referenceSwapPriceB: types.Price.fromJSON(obj.referenceSwapPriceB),\n isCommunity: obj.isCommunity,\n rebalanceType: obj.rebalanceType,\n padding1: obj.padding1,\n rebalanceRaw: types.RebalanceRaw.fromJSON(obj.rebalanceRaw),\n padding2: obj.padding2,\n tokenAFeesFromRewardsCumulative: new BN(\n obj.tokenAFeesFromRewardsCumulative\n ),\n tokenBFeesFromRewardsCumulative: new BN(\n obj.tokenBFeesFromRewardsCumulative\n ),\n strategyLookupTable: new PublicKey(obj.strategyLookupTable),\n lastSwapUnevenStepTimestamp: new BN(obj.lastSwapUnevenStepTimestamp),\n farm: new PublicKey(obj.farm),\n rebalancesCap: types.WithdrawalCaps.fromJSON(obj.rebalancesCap),\n swapUnevenAuthority: new PublicKey(obj.swapUnevenAuthority),\n tokenATokenProgram: new PublicKey(obj.tokenATokenProgram),\n tokenBTokenProgram: new PublicKey(obj.tokenBTokenProgram),\n pendingAdmin: new PublicKey(obj.pendingAdmin),\n padding3: new BN(obj.padding3),\n padding4: obj.padding4.map((item) => new BN(item)),\n padding5: obj.padding5.map((item) => new BN(item)),\n padding6: obj.padding6.map((item) => new BN(item)),\n padding7: obj.padding7.map((item) => new BN(item)),\n })\n }\n}\n"]}
|
|
@@ -3385,6 +3385,22 @@
|
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
3387
|
]
|
|
3388
|
+
},
|
|
3389
|
+
{
|
|
3390
|
+
"name": "updateStrategyAdmin",
|
|
3391
|
+
"accounts": [
|
|
3392
|
+
{
|
|
3393
|
+
"name": "pendingAdmin",
|
|
3394
|
+
"isMut": true,
|
|
3395
|
+
"isSigner": true
|
|
3396
|
+
},
|
|
3397
|
+
{
|
|
3398
|
+
"name": "strategy",
|
|
3399
|
+
"isMut": true,
|
|
3400
|
+
"isSigner": false
|
|
3401
|
+
}
|
|
3402
|
+
],
|
|
3403
|
+
"args": []
|
|
3388
3404
|
}
|
|
3389
3405
|
],
|
|
3390
3406
|
"accounts": [
|
|
@@ -4403,6 +4419,10 @@
|
|
|
4403
4419
|
"name": "tokenBTokenProgram",
|
|
4404
4420
|
"type": "publicKey"
|
|
4405
4421
|
},
|
|
4422
|
+
{
|
|
4423
|
+
"name": "pendingAdmin",
|
|
4424
|
+
"type": "publicKey"
|
|
4425
|
+
},
|
|
4406
4426
|
{
|
|
4407
4427
|
"name": "padding3",
|
|
4408
4428
|
"type": "u64"
|
|
@@ -4412,7 +4432,7 @@
|
|
|
4412
4432
|
"type": {
|
|
4413
4433
|
"array": [
|
|
4414
4434
|
"u128",
|
|
4415
|
-
|
|
4435
|
+
13
|
|
4416
4436
|
]
|
|
4417
4437
|
}
|
|
4418
4438
|
},
|
|
@@ -5730,6 +5750,9 @@
|
|
|
5730
5750
|
},
|
|
5731
5751
|
{
|
|
5732
5752
|
"name": "UpdateSwapUnevenAuthority"
|
|
5753
|
+
},
|
|
5754
|
+
{
|
|
5755
|
+
"name": "UpdatePendingStrategyAdmin"
|
|
5733
5756
|
}
|
|
5734
5757
|
]
|
|
5735
5758
|
}
|
|
@@ -70,3 +70,5 @@ export { orcaSwap } from "./orcaSwap";
|
|
|
70
70
|
export type { OrcaSwapArgs, OrcaSwapAccounts } from "./orcaSwap";
|
|
71
71
|
export { signTerms } from "./signTerms";
|
|
72
72
|
export type { SignTermsArgs, SignTermsAccounts } from "./signTerms";
|
|
73
|
+
export { updateStrategyAdmin } from "./updateStrategyAdmin";
|
|
74
|
+
export type { UpdateStrategyAdminAccounts } from "./updateStrategyAdmin";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.signTerms = exports.orcaSwap = exports.closeProgramAccount = exports.changePool = exports.withdrawFromTopup = exports.permisionlessWithdrawFromTreasury = exports.withdrawFromTreasury = exports.emergencySwap = exports.flashSwapUnevenVaultsEnd = exports.flashSwapUnevenVaultsStart = exports.singleTokenDepositWithMin = exports.singleTokenDepositAndInvestWithMin = exports.checkExpectedVaultsBalances = exports.swapUnevenVaults = exports.swapRewards = exports.collectFeesAndRewards = exports.executiveWithdraw = exports.withdraw = exports.depositAndInvest = exports.invest = exports.deposit = exports.closeStrategy = exports.openLiquidityPosition = exports.updateRewardMapping = exports.updateStrategyConfig = exports.updateTreasuryFeeVault = exports.updateGlobalConfig = exports.updateSharesMetadata = exports.initializeSharesMetadata = exports.insertCollateralInfo = exports.updateCollateralInfo = exports.initializeCollateralInfo = exports.initializeGlobalConfig = exports.addKaminoRewards = exports.initializeKaminoReward = exports.initializeStrategy = void 0;
|
|
3
|
+
exports.updateStrategyAdmin = exports.signTerms = exports.orcaSwap = exports.closeProgramAccount = exports.changePool = exports.withdrawFromTopup = exports.permisionlessWithdrawFromTreasury = exports.withdrawFromTreasury = exports.emergencySwap = exports.flashSwapUnevenVaultsEnd = exports.flashSwapUnevenVaultsStart = exports.singleTokenDepositWithMin = exports.singleTokenDepositAndInvestWithMin = exports.checkExpectedVaultsBalances = exports.swapUnevenVaults = exports.swapRewards = exports.collectFeesAndRewards = exports.executiveWithdraw = exports.withdraw = exports.depositAndInvest = exports.invest = exports.deposit = exports.closeStrategy = exports.openLiquidityPosition = exports.updateRewardMapping = exports.updateStrategyConfig = exports.updateTreasuryFeeVault = exports.updateGlobalConfig = exports.updateSharesMetadata = exports.initializeSharesMetadata = exports.insertCollateralInfo = exports.updateCollateralInfo = exports.initializeCollateralInfo = exports.initializeGlobalConfig = exports.addKaminoRewards = exports.initializeKaminoReward = exports.initializeStrategy = void 0;
|
|
4
4
|
var initializeStrategy_1 = require("./initializeStrategy");
|
|
5
5
|
Object.defineProperty(exports, "initializeStrategy", { enumerable: true, get: function () { return initializeStrategy_1.initializeStrategy; } });
|
|
6
6
|
var initializeKaminoReward_1 = require("./initializeKaminoReward");
|
|
@@ -73,4 +73,6 @@ var orcaSwap_1 = require("./orcaSwap");
|
|
|
73
73
|
Object.defineProperty(exports, "orcaSwap", { enumerable: true, get: function () { return orcaSwap_1.orcaSwap; } });
|
|
74
74
|
var signTerms_1 = require("./signTerms");
|
|
75
75
|
Object.defineProperty(exports, "signTerms", { enumerable: true, get: function () { return signTerms_1.signTerms; } });
|
|
76
|
+
var updateStrategyAdmin_1 = require("./updateStrategyAdmin");
|
|
77
|
+
Object.defineProperty(exports, "updateStrategyAdmin", { enumerable: true, get: function () { return updateStrategyAdmin_1.updateStrategyAdmin; } });
|
|
76
78
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/kamino-client/instructions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAK3B,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAK/B,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AAKzB,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAE/B,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AAEjC,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAK7B,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAK7B,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AAKjC,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAK7B,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAK3B,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAK/B,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAK7B,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA;AAK5B,iEAA+D;AAAtD,8HAAA,qBAAqB,OAAA;AAK9B,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AAEtB,qCAAmC;AAA1B,kGAAA,OAAO,OAAA;AAEhB,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AAEf,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AAKzB,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AAEjB,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAK1B,iEAA+D;AAAtD,8HAAA,qBAAqB,OAAA;AAE9B,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AAEpB,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AAKzB,6EAA2E;AAAlE,0IAAA,2BAA2B,OAAA;AAKpC,2FAAyF;AAAhF,wJAAA,kCAAkC,OAAA;AAK3C,yEAAuE;AAA9D,sIAAA,yBAAyB,OAAA;AAKlC,2EAAyE;AAAhE,wIAAA,0BAA0B,OAAA;AAKnC,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AAKjC,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AAEtB,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAK7B,yFAAuF;AAA9E,sJAAA,iCAAiC,OAAA;AAE1C,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAK1B,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AAEnB,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA;AAE5B,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA;AAEjB,yCAAuC;AAA9B,sGAAA,SAAS,OAAA","sourcesContent":["export { initializeStrategy } from \"./initializeStrategy\"\nexport type {\n InitializeStrategyArgs,\n InitializeStrategyAccounts,\n} from \"./initializeStrategy\"\nexport { initializeKaminoReward } from \"./initializeKaminoReward\"\nexport type {\n InitializeKaminoRewardArgs,\n InitializeKaminoRewardAccounts,\n} from \"./initializeKaminoReward\"\nexport { addKaminoRewards } from \"./addKaminoRewards\"\nexport type {\n AddKaminoRewardsArgs,\n AddKaminoRewardsAccounts,\n} from \"./addKaminoRewards\"\nexport { initializeGlobalConfig } from \"./initializeGlobalConfig\"\nexport type { InitializeGlobalConfigAccounts } from \"./initializeGlobalConfig\"\nexport { initializeCollateralInfo } from \"./initializeCollateralInfo\"\nexport type { InitializeCollateralInfoAccounts } from \"./initializeCollateralInfo\"\nexport { updateCollateralInfo } from \"./updateCollateralInfo\"\nexport type {\n UpdateCollateralInfoArgs,\n UpdateCollateralInfoAccounts,\n} from \"./updateCollateralInfo\"\nexport { insertCollateralInfo } from \"./insertCollateralInfo\"\nexport type {\n InsertCollateralInfoArgs,\n InsertCollateralInfoAccounts,\n} from \"./insertCollateralInfo\"\nexport { initializeSharesMetadata } from \"./initializeSharesMetadata\"\nexport type {\n InitializeSharesMetadataArgs,\n InitializeSharesMetadataAccounts,\n} from \"./initializeSharesMetadata\"\nexport { updateSharesMetadata } from \"./updateSharesMetadata\"\nexport type {\n UpdateSharesMetadataArgs,\n UpdateSharesMetadataAccounts,\n} from \"./updateSharesMetadata\"\nexport { updateGlobalConfig } from \"./updateGlobalConfig\"\nexport type {\n UpdateGlobalConfigArgs,\n UpdateGlobalConfigAccounts,\n} from \"./updateGlobalConfig\"\nexport { updateTreasuryFeeVault } from \"./updateTreasuryFeeVault\"\nexport type {\n UpdateTreasuryFeeVaultArgs,\n UpdateTreasuryFeeVaultAccounts,\n} from \"./updateTreasuryFeeVault\"\nexport { updateStrategyConfig } from \"./updateStrategyConfig\"\nexport type {\n UpdateStrategyConfigArgs,\n UpdateStrategyConfigAccounts,\n} from \"./updateStrategyConfig\"\nexport { updateRewardMapping } from \"./updateRewardMapping\"\nexport type {\n UpdateRewardMappingArgs,\n UpdateRewardMappingAccounts,\n} from \"./updateRewardMapping\"\nexport { openLiquidityPosition } from \"./openLiquidityPosition\"\nexport type {\n OpenLiquidityPositionArgs,\n OpenLiquidityPositionAccounts,\n} from \"./openLiquidityPosition\"\nexport { closeStrategy } from \"./closeStrategy\"\nexport type { CloseStrategyAccounts } from \"./closeStrategy\"\nexport { deposit } from \"./deposit\"\nexport type { DepositArgs, DepositAccounts } from \"./deposit\"\nexport { invest } from \"./invest\"\nexport type { InvestAccounts } from \"./invest\"\nexport { depositAndInvest } from \"./depositAndInvest\"\nexport type {\n DepositAndInvestArgs,\n DepositAndInvestAccounts,\n} from \"./depositAndInvest\"\nexport { withdraw } from \"./withdraw\"\nexport type { WithdrawArgs, WithdrawAccounts } from \"./withdraw\"\nexport { executiveWithdraw } from \"./executiveWithdraw\"\nexport type {\n ExecutiveWithdrawArgs,\n ExecutiveWithdrawAccounts,\n} from \"./executiveWithdraw\"\nexport { collectFeesAndRewards } from \"./collectFeesAndRewards\"\nexport type { CollectFeesAndRewardsAccounts } from \"./collectFeesAndRewards\"\nexport { swapRewards } from \"./swapRewards\"\nexport type { SwapRewardsArgs, SwapRewardsAccounts } from \"./swapRewards\"\nexport { swapUnevenVaults } from \"./swapUnevenVaults\"\nexport type {\n SwapUnevenVaultsArgs,\n SwapUnevenVaultsAccounts,\n} from \"./swapUnevenVaults\"\nexport { checkExpectedVaultsBalances } from \"./checkExpectedVaultsBalances\"\nexport type {\n CheckExpectedVaultsBalancesArgs,\n CheckExpectedVaultsBalancesAccounts,\n} from \"./checkExpectedVaultsBalances\"\nexport { singleTokenDepositAndInvestWithMin } from \"./singleTokenDepositAndInvestWithMin\"\nexport type {\n SingleTokenDepositAndInvestWithMinArgs,\n SingleTokenDepositAndInvestWithMinAccounts,\n} from \"./singleTokenDepositAndInvestWithMin\"\nexport { singleTokenDepositWithMin } from \"./singleTokenDepositWithMin\"\nexport type {\n SingleTokenDepositWithMinArgs,\n SingleTokenDepositWithMinAccounts,\n} from \"./singleTokenDepositWithMin\"\nexport { flashSwapUnevenVaultsStart } from \"./flashSwapUnevenVaultsStart\"\nexport type {\n FlashSwapUnevenVaultsStartArgs,\n FlashSwapUnevenVaultsStartAccounts,\n} from \"./flashSwapUnevenVaultsStart\"\nexport { flashSwapUnevenVaultsEnd } from \"./flashSwapUnevenVaultsEnd\"\nexport type {\n FlashSwapUnevenVaultsEndArgs,\n FlashSwapUnevenVaultsEndAccounts,\n} from \"./flashSwapUnevenVaultsEnd\"\nexport { emergencySwap } from \"./emergencySwap\"\nexport type { EmergencySwapArgs, EmergencySwapAccounts } from \"./emergencySwap\"\nexport { withdrawFromTreasury } from \"./withdrawFromTreasury\"\nexport type {\n WithdrawFromTreasuryArgs,\n WithdrawFromTreasuryAccounts,\n} from \"./withdrawFromTreasury\"\nexport { permisionlessWithdrawFromTreasury } from \"./permisionlessWithdrawFromTreasury\"\nexport type { PermisionlessWithdrawFromTreasuryAccounts } from \"./permisionlessWithdrawFromTreasury\"\nexport { withdrawFromTopup } from \"./withdrawFromTopup\"\nexport type {\n WithdrawFromTopupArgs,\n WithdrawFromTopupAccounts,\n} from \"./withdrawFromTopup\"\nexport { changePool } from \"./changePool\"\nexport type { ChangePoolAccounts } from \"./changePool\"\nexport { closeProgramAccount } from \"./closeProgramAccount\"\nexport type { CloseProgramAccountAccounts } from \"./closeProgramAccount\"\nexport { orcaSwap } from \"./orcaSwap\"\nexport type { OrcaSwapArgs, OrcaSwapAccounts } from \"./orcaSwap\"\nexport { signTerms } from \"./signTerms\"\nexport type { SignTermsArgs, SignTermsAccounts } from \"./signTerms\"\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/kamino-client/instructions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAK3B,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAK/B,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AAKzB,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAE/B,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AAEjC,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAK7B,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA;AAK7B,uEAAqE;AAA5D,oIAAA,wBA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;AAElB,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA","sourcesContent":["export { initializeStrategy } from \"./initializeStrategy\"\nexport type {\n InitializeStrategyArgs,\n InitializeStrategyAccounts,\n} from \"./initializeStrategy\"\nexport { initializeKaminoReward } from \"./initializeKaminoReward\"\nexport type {\n InitializeKaminoRewardArgs,\n InitializeKaminoRewardAccounts,\n} from \"./initializeKaminoReward\"\nexport { addKaminoRewards } from \"./addKaminoRewards\"\nexport type {\n AddKaminoRewardsArgs,\n AddKaminoRewardsAccounts,\n} from \"./addKaminoRewards\"\nexport { initializeGlobalConfig } from \"./initializeGlobalConfig\"\nexport type { InitializeGlobalConfigAccounts } from \"./initializeGlobalConfig\"\nexport { initializeCollateralInfo } from \"./initializeCollateralInfo\"\nexport type { InitializeCollateralInfoAccounts } from \"./initializeCollateralInfo\"\nexport { updateCollateralInfo } from \"./updateCollateralInfo\"\nexport type {\n UpdateCollateralInfoArgs,\n UpdateCollateralInfoAccounts,\n} from \"./updateCollateralInfo\"\nexport { insertCollateralInfo } from \"./insertCollateralInfo\"\nexport type {\n InsertCollateralInfoArgs,\n InsertCollateralInfoAccounts,\n} from \"./insertCollateralInfo\"\nexport { initializeSharesMetadata } from \"./initializeSharesMetadata\"\nexport type {\n InitializeSharesMetadataArgs,\n InitializeSharesMetadataAccounts,\n} from \"./initializeSharesMetadata\"\nexport { updateSharesMetadata } from \"./updateSharesMetadata\"\nexport type {\n UpdateSharesMetadataArgs,\n UpdateSharesMetadataAccounts,\n} from \"./updateSharesMetadata\"\nexport { updateGlobalConfig } from \"./updateGlobalConfig\"\nexport type {\n UpdateGlobalConfigArgs,\n UpdateGlobalConfigAccounts,\n} from \"./updateGlobalConfig\"\nexport { updateTreasuryFeeVault } from \"./updateTreasuryFeeVault\"\nexport type {\n UpdateTreasuryFeeVaultArgs,\n UpdateTreasuryFeeVaultAccounts,\n} from \"./updateTreasuryFeeVault\"\nexport { updateStrategyConfig } from \"./updateStrategyConfig\"\nexport type {\n UpdateStrategyConfigArgs,\n UpdateStrategyConfigAccounts,\n} from \"./updateStrategyConfig\"\nexport { updateRewardMapping } from \"./updateRewardMapping\"\nexport type {\n UpdateRewardMappingArgs,\n UpdateRewardMappingAccounts,\n} from \"./updateRewardMapping\"\nexport { openLiquidityPosition } from \"./openLiquidityPosition\"\nexport type {\n OpenLiquidityPositionArgs,\n OpenLiquidityPositionAccounts,\n} from \"./openLiquidityPosition\"\nexport { closeStrategy } from \"./closeStrategy\"\nexport type { CloseStrategyAccounts } from \"./closeStrategy\"\nexport { deposit } from \"./deposit\"\nexport type { DepositArgs, DepositAccounts } from \"./deposit\"\nexport { invest } from \"./invest\"\nexport type { InvestAccounts } from \"./invest\"\nexport { depositAndInvest } from \"./depositAndInvest\"\nexport type {\n DepositAndInvestArgs,\n DepositAndInvestAccounts,\n} from \"./depositAndInvest\"\nexport { withdraw } from \"./withdraw\"\nexport type { WithdrawArgs, WithdrawAccounts } from \"./withdraw\"\nexport { executiveWithdraw } from \"./executiveWithdraw\"\nexport type {\n ExecutiveWithdrawArgs,\n ExecutiveWithdrawAccounts,\n} from \"./executiveWithdraw\"\nexport { collectFeesAndRewards } from \"./collectFeesAndRewards\"\nexport type { CollectFeesAndRewardsAccounts } from \"./collectFeesAndRewards\"\nexport { swapRewards } from \"./swapRewards\"\nexport type { SwapRewardsArgs, SwapRewardsAccounts } from \"./swapRewards\"\nexport { swapUnevenVaults } from \"./swapUnevenVaults\"\nexport type {\n SwapUnevenVaultsArgs,\n SwapUnevenVaultsAccounts,\n} from \"./swapUnevenVaults\"\nexport { checkExpectedVaultsBalances } from \"./checkExpectedVaultsBalances\"\nexport type {\n CheckExpectedVaultsBalancesArgs,\n CheckExpectedVaultsBalancesAccounts,\n} from \"./checkExpectedVaultsBalances\"\nexport { singleTokenDepositAndInvestWithMin } from \"./singleTokenDepositAndInvestWithMin\"\nexport type {\n SingleTokenDepositAndInvestWithMinArgs,\n SingleTokenDepositAndInvestWithMinAccounts,\n} from \"./singleTokenDepositAndInvestWithMin\"\nexport { singleTokenDepositWithMin } from \"./singleTokenDepositWithMin\"\nexport type {\n SingleTokenDepositWithMinArgs,\n SingleTokenDepositWithMinAccounts,\n} from \"./singleTokenDepositWithMin\"\nexport { flashSwapUnevenVaultsStart } from \"./flashSwapUnevenVaultsStart\"\nexport type {\n FlashSwapUnevenVaultsStartArgs,\n FlashSwapUnevenVaultsStartAccounts,\n} from \"./flashSwapUnevenVaultsStart\"\nexport { flashSwapUnevenVaultsEnd } from \"./flashSwapUnevenVaultsEnd\"\nexport type {\n FlashSwapUnevenVaultsEndArgs,\n FlashSwapUnevenVaultsEndAccounts,\n} from \"./flashSwapUnevenVaultsEnd\"\nexport { emergencySwap } from \"./emergencySwap\"\nexport type { EmergencySwapArgs, EmergencySwapAccounts } from \"./emergencySwap\"\nexport { withdrawFromTreasury } from \"./withdrawFromTreasury\"\nexport type {\n WithdrawFromTreasuryArgs,\n WithdrawFromTreasuryAccounts,\n} from \"./withdrawFromTreasury\"\nexport { permisionlessWithdrawFromTreasury } from \"./permisionlessWithdrawFromTreasury\"\nexport type { PermisionlessWithdrawFromTreasuryAccounts } from \"./permisionlessWithdrawFromTreasury\"\nexport { withdrawFromTopup } from \"./withdrawFromTopup\"\nexport type {\n WithdrawFromTopupArgs,\n WithdrawFromTopupAccounts,\n} from \"./withdrawFromTopup\"\nexport { changePool } from \"./changePool\"\nexport type { ChangePoolAccounts } from \"./changePool\"\nexport { closeProgramAccount } from \"./closeProgramAccount\"\nexport type { CloseProgramAccountAccounts } from \"./closeProgramAccount\"\nexport { orcaSwap } from \"./orcaSwap\"\nexport type { OrcaSwapArgs, OrcaSwapAccounts } from \"./orcaSwap\"\nexport { signTerms } from \"./signTerms\"\nexport type { SignTermsArgs, SignTermsAccounts } from \"./signTerms\"\nexport { updateStrategyAdmin } from \"./updateStrategyAdmin\"\nexport type { UpdateStrategyAdminAccounts } from \"./updateStrategyAdmin\"\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransactionInstruction, PublicKey } from "@solana/web3.js";
|
|
2
|
+
export interface UpdateStrategyAdminAccounts {
|
|
3
|
+
pendingAdmin: PublicKey;
|
|
4
|
+
strategy: PublicKey;
|
|
5
|
+
}
|
|
6
|
+
export declare function updateStrategyAdmin(accounts: UpdateStrategyAdminAccounts, programId?: PublicKey): TransactionInstruction;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateStrategyAdmin = updateStrategyAdmin;
|
|
4
|
+
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
+
const programId_1 = require("../programId");
|
|
6
|
+
function updateStrategyAdmin(accounts, programId = programId_1.PROGRAM_ID) {
|
|
7
|
+
const keys = [
|
|
8
|
+
{ pubkey: accounts.pendingAdmin, isSigner: true, isWritable: true },
|
|
9
|
+
{ pubkey: accounts.strategy, isSigner: false, isWritable: true },
|
|
10
|
+
];
|
|
11
|
+
const identifier = Buffer.from([13, 227, 164, 236, 32, 39, 6, 255]);
|
|
12
|
+
const data = identifier;
|
|
13
|
+
const ix = new web3_js_1.TransactionInstruction({ keys, programId, data });
|
|
14
|
+
return ix;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=updateStrategyAdmin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateStrategyAdmin.js","sourceRoot":"","sources":["../../../src/kamino-client/instructions/updateStrategyAdmin.ts"],"names":[],"mappings":";;AAWA,kDAYC;AAvBD,6CAAgF,CAAC,wDAAwD;AAIzI,4CAAyC;AAOzC,SAAgB,mBAAmB,CACjC,QAAqC,EACrC,YAAuB,sBAAU;IAEjC,MAAM,IAAI,GAAuB;QAC/B,EAAE,MAAM,EAAE,QAAQ,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;QACnE,EAAE,MAAM,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE;KACjE,CAAA;IACD,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAA;IACnE,MAAM,IAAI,GAAG,UAAU,CAAA;IACvB,MAAM,EAAE,GAAG,IAAI,gCAAsB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAChE,OAAO,EAAE,CAAA;AACX,CAAC","sourcesContent":["import { TransactionInstruction, PublicKey, AccountMeta } from \"@solana/web3.js\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport BN from \"bn.js\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as borsh from \"@coral-xyz/borsh\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as types from \"../types\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport { PROGRAM_ID } from \"../programId\"\n\nexport interface UpdateStrategyAdminAccounts {\n pendingAdmin: PublicKey\n strategy: PublicKey\n}\n\nexport function updateStrategyAdmin(\n accounts: UpdateStrategyAdminAccounts,\n programId: PublicKey = PROGRAM_ID\n) {\n const keys: Array<AccountMeta> = [\n { pubkey: accounts.pendingAdmin, isSigner: true, isWritable: true },\n { pubkey: accounts.strategy, isSigner: false, isWritable: true },\n ]\n const identifier = Buffer.from([13, 227, 164, 236, 32, 39, 6, 255])\n const data = identifier\n const ix = new TransactionInstruction({ keys, programId, data })\n return ix\n}\n"]}
|
|
@@ -663,6 +663,19 @@ export declare class UpdateSwapUnevenAuthority {
|
|
|
663
663
|
UpdateSwapUnevenAuthority: {};
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
|
+
export interface UpdatePendingStrategyAdminJSON {
|
|
667
|
+
kind: "UpdatePendingStrategyAdmin";
|
|
668
|
+
}
|
|
669
|
+
export declare class UpdatePendingStrategyAdmin {
|
|
670
|
+
static readonly discriminator = 51;
|
|
671
|
+
static readonly kind = "UpdatePendingStrategyAdmin";
|
|
672
|
+
readonly discriminator = 51;
|
|
673
|
+
readonly kind = "UpdatePendingStrategyAdmin";
|
|
674
|
+
toJSON(): UpdatePendingStrategyAdminJSON;
|
|
675
|
+
toEncodable(): {
|
|
676
|
+
UpdatePendingStrategyAdmin: {};
|
|
677
|
+
};
|
|
678
|
+
}
|
|
666
679
|
export declare function fromDecoded(obj: any): types.StrategyConfigOptionKind;
|
|
667
680
|
export declare function fromJSON(obj: types.StrategyConfigOptionJSON): types.StrategyConfigOptionKind;
|
|
668
681
|
export declare function layout(property?: string): borsh.EnumLayout<unknown>;
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.UpdateRebalancesCapCurrentTotal = exports.UpdateRebalancesCapInterval = exports.UpdateRebalancesCapCapacity = exports.UpdateFarm = exports.UpdateReward2Amount = exports.UpdateReward1Amount = exports.UpdateReward0Amount = exports.UpdateReferencePriceType = exports.UpdateLookupTable = exports.UpdateDepositMintingMethod = exports.UpdateRebalanceParams = exports.UpdateRebalanceType = exports.UpdateIsCommunity = exports.UpdateStrategyCreationState = exports.ResetReferencePrices = exports.UpdateSwapVaultMaxSlippageFromRef = exports.AllowDepositWithoutInvest = exports.UpdateFlashVaultSwap = exports.DeprecatedUpdateCollateralIdB = exports.DeprecatedUpdateCollateralIdA = exports.UpdateLocalAdminBlocked = exports.UpdateWithdrawBlocked = exports.UpdateInvestBlocked = exports.UpdateRaydiumPoolConfigOrBaseVaultAuthority = exports.UpdateRaydiumProtocolPositionOrBaseVaultAuthority = exports.UpdateDepositBlocked = exports.KaminoRewardIndex2RewardPerSecond = exports.KaminoRewardIndex1RewardPerSecond = exports.KaminoRewardIndex0RewardPerSecond = exports.KaminoRewardIndex2TS = exports.KaminoRewardIndex1TS = exports.KaminoRewardIndex0TS = exports.UpdateAdminAuthority = exports.UpdateReward2Fee = exports.UpdateReward1Fee = exports.UpdateReward0Fee = exports.UpdateCollectFeesFee = exports.UpdateWithdrawFee = exports.UpdateDepositFee = exports.UpdateStrategyType = exports.UpdateSwapVaultMaxSlippage = exports.UpdateMaxDeviationBps = exports.UpdateWithdrawalCapBCurrentTotal = exports.UpdateWithdrawalCapBInterval = exports.UpdateWithdrawalCapBCapacity = exports.UpdateWithdrawalCapACurrentTotal = exports.UpdateWithdrawalCapAInterval = exports.UpdateWithdrawalCapACapacity = exports.UpdateDepositCapIxn = exports.UpdateDepositCap = void 0;
|
|
27
|
-
exports.UpdateSwapUnevenAuthority = void 0;
|
|
27
|
+
exports.UpdatePendingStrategyAdmin = exports.UpdateSwapUnevenAuthority = void 0;
|
|
28
28
|
exports.fromDecoded = fromDecoded;
|
|
29
29
|
exports.fromJSON = fromJSON;
|
|
30
30
|
exports.layout = layout;
|
|
@@ -998,6 +998,25 @@ class UpdateSwapUnevenAuthority {
|
|
|
998
998
|
exports.UpdateSwapUnevenAuthority = UpdateSwapUnevenAuthority;
|
|
999
999
|
UpdateSwapUnevenAuthority.discriminator = 50;
|
|
1000
1000
|
UpdateSwapUnevenAuthority.kind = "UpdateSwapUnevenAuthority";
|
|
1001
|
+
class UpdatePendingStrategyAdmin {
|
|
1002
|
+
constructor() {
|
|
1003
|
+
this.discriminator = 51;
|
|
1004
|
+
this.kind = "UpdatePendingStrategyAdmin";
|
|
1005
|
+
}
|
|
1006
|
+
toJSON() {
|
|
1007
|
+
return {
|
|
1008
|
+
kind: "UpdatePendingStrategyAdmin",
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
toEncodable() {
|
|
1012
|
+
return {
|
|
1013
|
+
UpdatePendingStrategyAdmin: {},
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
exports.UpdatePendingStrategyAdmin = UpdatePendingStrategyAdmin;
|
|
1018
|
+
UpdatePendingStrategyAdmin.discriminator = 51;
|
|
1019
|
+
UpdatePendingStrategyAdmin.kind = "UpdatePendingStrategyAdmin";
|
|
1001
1020
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1002
1021
|
function fromDecoded(obj) {
|
|
1003
1022
|
if (typeof obj !== "object") {
|
|
@@ -1156,6 +1175,9 @@ function fromDecoded(obj) {
|
|
|
1156
1175
|
if ("UpdateSwapUnevenAuthority" in obj) {
|
|
1157
1176
|
return new UpdateSwapUnevenAuthority();
|
|
1158
1177
|
}
|
|
1178
|
+
if ("UpdatePendingStrategyAdmin" in obj) {
|
|
1179
|
+
return new UpdatePendingStrategyAdmin();
|
|
1180
|
+
}
|
|
1159
1181
|
throw new Error("Invalid enum object");
|
|
1160
1182
|
}
|
|
1161
1183
|
function fromJSON(obj) {
|
|
@@ -1313,6 +1335,9 @@ function fromJSON(obj) {
|
|
|
1313
1335
|
case "UpdateSwapUnevenAuthority": {
|
|
1314
1336
|
return new UpdateSwapUnevenAuthority();
|
|
1315
1337
|
}
|
|
1338
|
+
case "UpdatePendingStrategyAdmin": {
|
|
1339
|
+
return new UpdatePendingStrategyAdmin();
|
|
1340
|
+
}
|
|
1316
1341
|
}
|
|
1317
1342
|
}
|
|
1318
1343
|
function layout(property) {
|
|
@@ -1368,6 +1393,7 @@ function layout(property) {
|
|
|
1368
1393
|
borsh.struct([], "UpdateRebalancesCapInterval"),
|
|
1369
1394
|
borsh.struct([], "UpdateRebalancesCapCurrentTotal"),
|
|
1370
1395
|
borsh.struct([], "UpdateSwapUnevenAuthority"),
|
|
1396
|
+
borsh.struct([], "UpdatePendingStrategyAdmin"),
|
|
1371
1397
|
]);
|
|
1372
1398
|
if (property !== undefined) {
|
|
1373
1399
|
return ret.replicate(property);
|