@raydium-io/raydium-sdk-v2 0.0.28-alpha → 0.0.29-alpha
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/lib/api/api.d.ts +1 -1
- package/lib/api/index.d.ts +1 -1
- package/lib/api/type.d.ts +1 -1
- package/lib/common/accountInfo.d.ts +1 -1
- package/lib/common/bignumber.d.ts +1 -1
- package/lib/common/fractionUtil.d.ts +1 -1
- package/lib/common/index.d.ts +1 -1
- package/lib/common/transfer.d.ts +1 -1
- package/lib/common/txTool/txTool.d.ts +1 -1
- package/lib/common/txTool/txUtils.d.ts +1 -1
- package/lib/common/utility.d.ts +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/module/amount.d.ts +1 -1
- package/lib/module/fraction.d.ts +1 -1
- package/lib/module/index.d.ts +1 -1
- package/lib/module/percent.d.ts +1 -1
- package/lib/module/price.d.ts +1 -1
- package/lib/raydium/account/account.d.ts +3 -3
- package/lib/raydium/account/account.js +1 -1
- package/lib/raydium/account/account.js.map +1 -1
- package/lib/raydium/account/account.mjs +1 -1
- package/lib/raydium/account/account.mjs.map +1 -1
- package/lib/raydium/account/index.d.ts +1 -1
- package/lib/raydium/account/instruction.d.ts +1 -1
- package/lib/raydium/account/types.d.ts +1 -1
- package/lib/raydium/account/util.d.ts +1 -1
- package/lib/raydium/clmm/clmm.d.ts +3 -3
- package/lib/raydium/clmm/index.d.ts +3 -3
- package/lib/raydium/clmm/instrument.d.ts +2 -2
- package/lib/raydium/clmm/layout.d.ts +5 -5
- package/lib/raydium/clmm/type.d.ts +2 -2
- package/lib/raydium/clmm/utils/math.d.ts +2 -2
- package/lib/raydium/clmm/utils/pool.d.ts +2 -2
- package/lib/raydium/clmm/utils/position.d.ts +2 -2
- package/lib/raydium/clmm/utils/tick.d.ts +2 -2
- package/lib/raydium/clmm/utils/tickQuery.d.ts +2 -2
- package/lib/raydium/clmm/utils/tickarrayBitmap.d.ts +2 -2
- package/lib/raydium/cpmm/cpmm.d.ts +3 -3
- package/lib/raydium/cpmm/index.d.ts +1 -1
- package/lib/raydium/cpmm/type.d.ts +1 -1
- package/lib/raydium/farm/config.d.ts +1 -1
- package/lib/raydium/farm/farm.d.ts +3 -3
- package/lib/raydium/farm/index.d.ts +1 -1
- package/lib/raydium/farm/instruction.d.ts +1 -1
- package/lib/raydium/farm/layout.d.ts +1 -1
- package/lib/raydium/farm/type.d.ts +1 -1
- package/lib/raydium/farm/util.d.ts +1 -1
- package/lib/raydium/ido/ido.d.ts +3 -3
- package/lib/raydium/ido/index.d.ts +3 -3
- package/lib/raydium/ido/instruction.d.ts +1 -1
- package/lib/raydium/ido/type.d.ts +1 -1
- package/lib/raydium/index.d.ts +3 -3
- package/lib/raydium/index.js +1 -1
- package/lib/raydium/index.js.map +1 -1
- package/lib/raydium/index.mjs +1 -1
- package/lib/raydium/index.mjs.map +1 -1
- package/lib/raydium/liquidity/index.d.ts +1 -1
- package/lib/raydium/liquidity/instruction.d.ts +1 -1
- package/lib/raydium/liquidity/liquidity.d.ts +3 -3
- package/lib/raydium/liquidity/type.d.ts +1 -1
- package/lib/raydium/liquidity/utils.d.ts +1 -1
- package/lib/raydium/marketV2/createMarket.d.ts +3 -3
- package/lib/raydium/marketV2/index.d.ts +3 -3
- package/lib/raydium/moduleBase.d.ts +3 -3
- package/lib/raydium/raydium.d.ts +3 -3
- package/lib/raydium/raydium.js +1 -1
- package/lib/raydium/raydium.js.map +1 -1
- package/lib/raydium/raydium.mjs +1 -1
- package/lib/raydium/raydium.mjs.map +1 -1
- package/lib/raydium/token/constant.d.ts +1 -1
- package/lib/raydium/token/index.d.ts +1 -1
- package/lib/raydium/token/token.d.ts +3 -3
- package/lib/raydium/token/type.d.ts +1 -1
- package/lib/raydium/token/utils.d.ts +1 -1
- package/lib/raydium/tradeV2/index.d.ts +2 -2
- package/lib/raydium/tradeV2/instrument.d.ts +2 -2
- package/lib/raydium/tradeV2/trade.d.ts +3 -3
- package/lib/raydium/tradeV2/type.d.ts +2 -2
- package/lib/raydium/type.d.ts +1 -1
- package/lib/raydium/utils1216/index.d.ts +3 -3
- package/lib/raydium/utils1216/utils1216.d.ts +3 -3
- package/lib/{raydium-a8b6c65a.d.ts → raydium-4ac54b85.d.ts} +3 -3
- package/lib/raydium-d75706f4.d.ts +530 -0
- package/lib/{type-502bbda1.d.ts → type-5c2ec3f0.d.ts} +1 -1
- package/lib/type-6fd96950.d.ts +608 -0
- package/lib/type-83523f5f.d.ts +1415 -0
- package/package.json +1 -1
- package/src/raydium/account/account.ts +1 -2
- package/lib/{type-3b373344.d.ts → type-322fdce2.d.ts} +5 -5
package/package.json
CHANGED
|
@@ -138,8 +138,7 @@ export default class Account extends ModuleBase {
|
|
|
138
138
|
for (const tokenAccount of tokenAccounts) {
|
|
139
139
|
const { publicKey } = tokenAccount;
|
|
140
140
|
if (publicKey) {
|
|
141
|
-
if (associatedOnly && ata.equals(publicKey)) return publicKey;
|
|
142
|
-
return publicKey;
|
|
141
|
+
if (!associatedOnly || (associatedOnly && ata.equals(publicKey))) return publicKey;
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
144
|
}
|
|
@@ -843,37 +843,37 @@ declare type FarmStateV6 = GetStructureSchema<FarmStateLayoutV6>;
|
|
|
843
843
|
declare type FarmState = FarmStateV3 | FarmStateV5 | FarmStateV6;
|
|
844
844
|
declare type FarmStateLayout = FarmStateLayoutV3 | FarmStateLayoutV5 | FarmStateLayoutV6;
|
|
845
845
|
declare const farmLedgerLayoutV3_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
846
|
-
state: BN__default;
|
|
847
846
|
id: PublicKey;
|
|
847
|
+
state: BN__default;
|
|
848
848
|
owner: PublicKey;
|
|
849
849
|
deposited: BN__default;
|
|
850
850
|
rewardDebts: BN__default[];
|
|
851
851
|
}>;
|
|
852
852
|
declare const farmLedgerLayoutV3_2: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
853
|
-
state: BN__default;
|
|
854
853
|
id: PublicKey;
|
|
854
|
+
state: BN__default;
|
|
855
855
|
owner: PublicKey;
|
|
856
856
|
deposited: BN__default;
|
|
857
857
|
rewardDebts: BN__default[];
|
|
858
858
|
voteLockedBalance: BN__default;
|
|
859
859
|
}>;
|
|
860
860
|
declare const farmLedgerLayoutV5_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
861
|
-
state: BN__default;
|
|
862
861
|
id: PublicKey;
|
|
862
|
+
state: BN__default;
|
|
863
863
|
owner: PublicKey;
|
|
864
864
|
deposited: BN__default;
|
|
865
865
|
rewardDebts: BN__default[];
|
|
866
866
|
}>;
|
|
867
867
|
declare const farmLedgerLayoutV5_2: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
868
|
-
state: BN__default;
|
|
869
868
|
id: PublicKey;
|
|
869
|
+
state: BN__default;
|
|
870
870
|
owner: PublicKey;
|
|
871
871
|
deposited: BN__default;
|
|
872
872
|
rewardDebts: BN__default[];
|
|
873
873
|
}>;
|
|
874
874
|
declare const farmLedgerLayoutV6_1: Structure<PublicKey | BN__default | BN__default[], "", {
|
|
875
|
-
state: BN__default;
|
|
876
875
|
id: PublicKey;
|
|
876
|
+
state: BN__default;
|
|
877
877
|
owner: PublicKey;
|
|
878
878
|
deposited: BN__default;
|
|
879
879
|
rewardDebts: BN__default[];
|