@symmetry-hq/temp-v3-sdk 0.0.1 → 0.0.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/src/index.d.ts +2 -2
- package/dist/src/index.js +2 -2
- package/dist/src/states/oracles/pythOracle.d.ts +3 -3
- package/dist/src/txUtils.d.ts +13 -2
- package/dist/src/txUtils.js +5 -7
- package/package.json +3 -3
- package/src/index.ts +4 -4
- package/src/states/oracles/pythOracle.ts +3 -4
- package/src/txUtils.ts +18 -11
- package/dist/idl/idl.d.ts +0 -8
- package/dist/idl/idl.js +0 -4958
- package/dist/idl/types.d.ts +0 -4955
- package/dist/idl/types.js +0 -2
- package/dist/index.d.ts +0 -24
- package/dist/index.js +0 -60
- package/dist/layouts/basket.d.ts +0 -42
- package/dist/layouts/basket.js +0 -43
- package/dist/layouts/config.d.ts +0 -97
- package/dist/layouts/config.js +0 -102
- package/dist/layouts/fraction.d.ts +0 -6
- package/dist/layouts/fraction.js +0 -9
- package/dist/layouts/oracle.d.ts +0 -36
- package/dist/layouts/oracle.js +0 -37
- package/dist/src/idl/idl.d.ts +0 -8
- package/dist/src/idl/idl.js +0 -4958
- package/dist/src/idl/types.d.ts +0 -4955
- package/dist/src/idl/types.js +0 -2
- package/dist/src/instructions/accounts.d.ts +0 -27
- package/dist/src/instructions/accounts.js +0 -110
- package/dist/src/instructions/auction.d.ts +0 -7
- package/dist/src/instructions/auction.js +0 -43
- package/dist/src/instructions/basket.d.ts +0 -120
- package/dist/src/instructions/basket.js +0 -622
- package/dist/src/instructions/bounty.d.ts +0 -18
- package/dist/src/instructions/bounty.js +0 -81
- package/dist/src/instructions/fee.d.ts +0 -8
- package/dist/src/instructions/fee.js +0 -46
- package/dist/src/instructions/globalConfig.d.ts +0 -11
- package/dist/src/instructions/globalConfig.js +0 -43
- package/dist/src/instructions/luts.d.ts +0 -33
- package/dist/src/instructions/luts.js +0 -91
- package/dist/src/instructions/price.d.ts +0 -17
- package/dist/src/instructions/price.js +0 -47
- package/dist/src/states/oracles/clmm_oracle.d.ts +0 -178
- package/dist/src/states/oracles/clmm_oracle.js +0 -546
- package/dist/src/states/oracles/pyth_oracle.d.ts +0 -39
- package/dist/src/states/oracles/pyth_oracle.js +0 -202
- package/dist/src/states/oracles/raydium_cpmm_oracle.d.ts +0 -139
- package/dist/src/states/oracles/raydium_cpmm_oracle.js +0 -420
- package/dist/src/states/oracles/switchboard_oracle.d.ts +0 -0
- package/dist/src/states/oracles/switchboard_oracle.js +0 -1
- package/dist/states/basket.d.ts +0 -8
- package/dist/states/basket.js +0 -57
package/dist/src/idl/types.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { PublicKey } from "@solana/web3.js";
|
|
2
|
-
export declare const BASKETS_V3_PROGRAM_ID: PublicKey;
|
|
3
|
-
export declare const GLOBAL_CONFIG_SEED: Buffer;
|
|
4
|
-
export declare const BASKET_FEES_SEED: Buffer;
|
|
5
|
-
export declare const MINT_SEED: Buffer;
|
|
6
|
-
export declare const RENT_PAYER_SEED: Buffer;
|
|
7
|
-
export declare const BOUNTY_VAULT_SEED: Buffer;
|
|
8
|
-
export declare const REBALANCE_INTENT_SEED: Buffer;
|
|
9
|
-
export declare const WSOL_MINT: PublicKey;
|
|
10
|
-
export declare const USDC_MINT: PublicKey;
|
|
11
|
-
export declare const PYTHNET_CUSTODY_PRICE_USDC_ACCOUNT: PublicKey;
|
|
12
|
-
export declare const PYTHNET_CUSTODY_PRICE_WSOL_ACCOUNT: PublicKey;
|
|
13
|
-
export declare const METADATA_PROGRAM_ID: PublicKey;
|
|
14
|
-
export declare function serializeString(input: string): Uint8Array;
|
|
15
|
-
export declare function getRandomSeed(): number[];
|
|
16
|
-
export declare function getBasketState(seeds: number[]): PublicKey;
|
|
17
|
-
export declare function getBountyVaultPda(): PublicKey;
|
|
18
|
-
export declare function getBasketTokenMintPda(basket: PublicKey): PublicKey;
|
|
19
|
-
export declare function getBasketFeesPda(basket: PublicKey): PublicKey;
|
|
20
|
-
export declare function getGlobalConfigPda(): PublicKey;
|
|
21
|
-
export declare function getIntentPda(basket: PublicKey, manager: PublicKey, editType: number): PublicKey;
|
|
22
|
-
export declare function getRebalanceIntentPda(basket: PublicKey, buyer: PublicKey): PublicKey;
|
|
23
|
-
export declare function getMetadataAccount(tokenMint: PublicKey): PublicKey;
|
|
24
|
-
export declare function getLookupTableAccount(creator: PublicKey, slot: number): PublicKey;
|
|
25
|
-
export declare function getLookupTableInfoAccount(lookupTable: PublicKey): PublicKey;
|
|
26
|
-
export declare function getAta(wallet: PublicKey, tokenMint: PublicKey): PublicKey;
|
|
27
|
-
export declare function getRentPayerPda(): PublicKey;
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.METADATA_PROGRAM_ID = exports.PYTHNET_CUSTODY_PRICE_WSOL_ACCOUNT = exports.PYTHNET_CUSTODY_PRICE_USDC_ACCOUNT = exports.USDC_MINT = exports.WSOL_MINT = exports.REBALANCE_INTENT_SEED = exports.BOUNTY_VAULT_SEED = exports.RENT_PAYER_SEED = exports.MINT_SEED = exports.BASKET_FEES_SEED = exports.GLOBAL_CONFIG_SEED = exports.BASKETS_V3_PROGRAM_ID = void 0;
|
|
4
|
-
exports.serializeString = serializeString;
|
|
5
|
-
exports.getRandomSeed = getRandomSeed;
|
|
6
|
-
exports.getBasketState = getBasketState;
|
|
7
|
-
exports.getBountyVaultPda = getBountyVaultPda;
|
|
8
|
-
exports.getBasketTokenMintPda = getBasketTokenMintPda;
|
|
9
|
-
exports.getBasketFeesPda = getBasketFeesPda;
|
|
10
|
-
exports.getGlobalConfigPda = getGlobalConfigPda;
|
|
11
|
-
exports.getIntentPda = getIntentPda;
|
|
12
|
-
exports.getRebalanceIntentPda = getRebalanceIntentPda;
|
|
13
|
-
exports.getMetadataAccount = getMetadataAccount;
|
|
14
|
-
exports.getLookupTableAccount = getLookupTableAccount;
|
|
15
|
-
exports.getLookupTableInfoAccount = getLookupTableInfoAccount;
|
|
16
|
-
exports.getAta = getAta;
|
|
17
|
-
exports.getRentPayerPda = getRentPayerPda;
|
|
18
|
-
const web3_js_1 = require("@solana/web3.js");
|
|
19
|
-
const js_1 = require("@metaplex-foundation/js");
|
|
20
|
-
const spl_token_1 = require("@solana/spl-token");
|
|
21
|
-
const uuid_1 = require("uuid");
|
|
22
|
-
exports.BASKETS_V3_PROGRAM_ID = new web3_js_1.PublicKey("BASKT7aKd8n7ibpUbwLP3Wiyxyi3yoiXsxBk4Hpumate");
|
|
23
|
-
exports.GLOBAL_CONFIG_SEED = Buffer.from("global_config");
|
|
24
|
-
exports.BASKET_FEES_SEED = Buffer.from("basket_fees");
|
|
25
|
-
exports.MINT_SEED = Buffer.from("mint");
|
|
26
|
-
exports.RENT_PAYER_SEED = Buffer.from("rent_payer");
|
|
27
|
-
exports.BOUNTY_VAULT_SEED = Buffer.from("bounty_vault");
|
|
28
|
-
exports.REBALANCE_INTENT_SEED = Buffer.from("rebalance_intent");
|
|
29
|
-
exports.WSOL_MINT = new web3_js_1.PublicKey("So11111111111111111111111111111111111111112");
|
|
30
|
-
/// TODO: Devnet
|
|
31
|
-
exports.USDC_MINT = new web3_js_1.PublicKey("USDCoctVLVnvTXBEuP9s8hntucdJokbo17RwHuNXemT");
|
|
32
|
-
exports.PYTHNET_CUSTODY_PRICE_USDC_ACCOUNT = new web3_js_1.PublicKey("Dpw1EAVrSB1ibxiDQyTAW6Zip3J4Btk2x4SgApQCeFbX");
|
|
33
|
-
exports.PYTHNET_CUSTODY_PRICE_WSOL_ACCOUNT = new web3_js_1.PublicKey("7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE");
|
|
34
|
-
exports.METADATA_PROGRAM_ID = new web3_js_1.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s");
|
|
35
|
-
function serializeString(input) {
|
|
36
|
-
const utf8 = new TextEncoder().encode(input);
|
|
37
|
-
const length = utf8.length;
|
|
38
|
-
const out = new Uint8Array(4 + length);
|
|
39
|
-
// encode length as little-endian u32
|
|
40
|
-
out[0] = length & 0xff;
|
|
41
|
-
out[1] = (length >> 8) & 0xff;
|
|
42
|
-
out[2] = (length >> 16) & 0xff;
|
|
43
|
-
out[3] = (length >> 24) & 0xff;
|
|
44
|
-
// copy utf8 bytes after the 4-byte length
|
|
45
|
-
out.set(utf8, 4);
|
|
46
|
-
return out;
|
|
47
|
-
}
|
|
48
|
-
function getRandomSeed() {
|
|
49
|
-
return Array.from((0, uuid_1.parse)((0, uuid_1.v4)()));
|
|
50
|
-
}
|
|
51
|
-
function getBasketState(seeds) {
|
|
52
|
-
return web3_js_1.PublicKey.findProgramAddressSync([Uint8Array.from(seeds)], exports.BASKETS_V3_PROGRAM_ID)[0];
|
|
53
|
-
}
|
|
54
|
-
function getBountyVaultPda() {
|
|
55
|
-
return web3_js_1.PublicKey.findProgramAddressSync([
|
|
56
|
-
exports.BOUNTY_VAULT_SEED,
|
|
57
|
-
], exports.BASKETS_V3_PROGRAM_ID)[0];
|
|
58
|
-
}
|
|
59
|
-
function getBasketTokenMintPda(basket) {
|
|
60
|
-
return web3_js_1.PublicKey.findProgramAddressSync([
|
|
61
|
-
exports.MINT_SEED,
|
|
62
|
-
basket.toBuffer()
|
|
63
|
-
], exports.BASKETS_V3_PROGRAM_ID)[0];
|
|
64
|
-
}
|
|
65
|
-
function getBasketFeesPda(basket) {
|
|
66
|
-
return web3_js_1.PublicKey.findProgramAddressSync([
|
|
67
|
-
exports.BASKET_FEES_SEED,
|
|
68
|
-
basket.toBuffer()
|
|
69
|
-
], exports.BASKETS_V3_PROGRAM_ID)[0];
|
|
70
|
-
}
|
|
71
|
-
function getGlobalConfigPda() {
|
|
72
|
-
return web3_js_1.PublicKey.findProgramAddressSync([
|
|
73
|
-
exports.GLOBAL_CONFIG_SEED
|
|
74
|
-
], exports.BASKETS_V3_PROGRAM_ID)[0];
|
|
75
|
-
}
|
|
76
|
-
function getIntentPda(basket, manager, editType) {
|
|
77
|
-
return web3_js_1.PublicKey.findProgramAddressSync([
|
|
78
|
-
basket.toBuffer(),
|
|
79
|
-
manager.toBuffer(),
|
|
80
|
-
Uint8Array.from([editType]),
|
|
81
|
-
], exports.BASKETS_V3_PROGRAM_ID)[0];
|
|
82
|
-
}
|
|
83
|
-
function getRebalanceIntentPda(basket, buyer) {
|
|
84
|
-
return web3_js_1.PublicKey.findProgramAddressSync([
|
|
85
|
-
exports.REBALANCE_INTENT_SEED,
|
|
86
|
-
basket.toBuffer(),
|
|
87
|
-
buyer.toBuffer(),
|
|
88
|
-
], exports.BASKETS_V3_PROGRAM_ID)[0];
|
|
89
|
-
}
|
|
90
|
-
function getMetadataAccount(tokenMint) {
|
|
91
|
-
const metaplex = js_1.Metaplex.make(new web3_js_1.Connection("https://api.devnet.solana.com"));
|
|
92
|
-
return metaplex.nfts().pdas().metadata({ mint: tokenMint });
|
|
93
|
-
}
|
|
94
|
-
function getLookupTableAccount(creator, slot) {
|
|
95
|
-
const ixAndPubkey = web3_js_1.AddressLookupTableProgram.createLookupTable({
|
|
96
|
-
authority: creator,
|
|
97
|
-
recentSlot: slot,
|
|
98
|
-
payer: creator,
|
|
99
|
-
});
|
|
100
|
-
return ixAndPubkey[1];
|
|
101
|
-
}
|
|
102
|
-
function getLookupTableInfoAccount(lookupTable) {
|
|
103
|
-
return web3_js_1.PublicKey.findProgramAddressSync([lookupTable.toBuffer()], exports.BASKETS_V3_PROGRAM_ID)[0];
|
|
104
|
-
}
|
|
105
|
-
function getAta(wallet, tokenMint) {
|
|
106
|
-
return (0, spl_token_1.getAssociatedTokenAddressSync)(tokenMint, wallet, true);
|
|
107
|
-
}
|
|
108
|
-
function getRentPayerPda() {
|
|
109
|
-
return web3_js_1.PublicKey.findProgramAddressSync([exports.RENT_PAYER_SEED], exports.BASKETS_V3_PROGRAM_ID)[0];
|
|
110
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PublicKey, TransactionInstruction } from '@solana/web3.js';
|
|
2
|
-
export declare const CREATE_AUCTION_DISCRIMINATOR: Buffer;
|
|
3
|
-
export declare function createAuctionIx(params: {
|
|
4
|
-
keeper: PublicKey;
|
|
5
|
-
basket: PublicKey;
|
|
6
|
-
bountyMint: PublicKey;
|
|
7
|
-
}): TransactionInstruction;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CREATE_AUCTION_DISCRIMINATOR = void 0;
|
|
4
|
-
exports.createAuctionIx = createAuctionIx;
|
|
5
|
-
const spl_token_1 = require("@solana/spl-token");
|
|
6
|
-
const web3_js_1 = require("@solana/web3.js");
|
|
7
|
-
const constants_1 = require("../constants");
|
|
8
|
-
const web3_js_2 = require("@solana/web3.js");
|
|
9
|
-
exports.CREATE_AUCTION_DISCRIMINATOR = Buffer.from([50, 37, 7, 103, 80, 100, 162, 13]);
|
|
10
|
-
function createAuctionIx(params) {
|
|
11
|
-
const [bountyVault] = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("bounty_vault")], constants_1.BASKETS_V3_PROGRAM_ID);
|
|
12
|
-
const bountyVaultAta = (0, spl_token_1.getAssociatedTokenAddressSync)(params.bountyMint, bountyVault, true, spl_token_1.TOKEN_PROGRAM_ID);
|
|
13
|
-
const [rebalanceIntent] = web3_js_1.PublicKey.findProgramAddressSync([
|
|
14
|
-
Buffer.from("rebalance_intent"),
|
|
15
|
-
params.basket.toBuffer(),
|
|
16
|
-
params.basket.toBuffer(),
|
|
17
|
-
], constants_1.BASKETS_V3_PROGRAM_ID);
|
|
18
|
-
const [rentPayerPda] = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("rent_payer")], constants_1.BASKETS_V3_PROGRAM_ID);
|
|
19
|
-
const [globalConfig] = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from("global_config")], constants_1.BASKETS_V3_PROGRAM_ID);
|
|
20
|
-
const keeperBountyATA = (0, spl_token_1.getAssociatedTokenAddressSync)(params.bountyMint, params.keeper);
|
|
21
|
-
const data = exports.CREATE_AUCTION_DISCRIMINATOR;
|
|
22
|
-
const keys = [
|
|
23
|
-
{ pubkey: params.keeper, isWritable: true, isSigner: true },
|
|
24
|
-
{ pubkey: params.basket, isWritable: true, isSigner: false },
|
|
25
|
-
{ pubkey: rebalanceIntent, isWritable: true, isSigner: false },
|
|
26
|
-
{ pubkey: rentPayerPda, isWritable: true, isSigner: false },
|
|
27
|
-
{ pubkey: globalConfig, isWritable: false, isSigner: false },
|
|
28
|
-
{ pubkey: params.bountyMint, isWritable: false, isSigner: false },
|
|
29
|
-
{ pubkey: keeperBountyATA, isWritable: true, isSigner: false },
|
|
30
|
-
{ pubkey: bountyVault, isWritable: true, isSigner: false },
|
|
31
|
-
{ pubkey: bountyVaultAta, isWritable: true, isSigner: false },
|
|
32
|
-
{ pubkey: web3_js_2.SystemProgram.programId, isWritable: false, isSigner: false },
|
|
33
|
-
{ pubkey: spl_token_1.TOKEN_PROGRAM_ID, isWritable: false, isSigner: false },
|
|
34
|
-
{ pubkey: spl_token_1.TOKEN_2022_PROGRAM_ID, isWritable: false, isSigner: false },
|
|
35
|
-
{ pubkey: spl_token_1.ASSOCIATED_TOKEN_PROGRAM_ID, isWritable: false, isSigner: false },
|
|
36
|
-
{ pubkey: rebalanceIntent, isWritable: true, isSigner: false }
|
|
37
|
-
];
|
|
38
|
-
return new web3_js_1.TransactionInstruction({
|
|
39
|
-
keys,
|
|
40
|
-
programId: constants_1.BASKETS_V3_PROGRAM_ID,
|
|
41
|
-
data,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { BN } from '@coral-xyz/anchor';
|
|
2
|
-
import { PublicKey, TransactionInstruction } from '@solana/web3.js';
|
|
3
|
-
import { AuthorityBitmasks, EditData, HostFees, MetadataParams, TaskType } from '../layouts/intents/intent';
|
|
4
|
-
import { AutomationSettings, FeeSettings, LpSettings, ManagerSettings, ScheduleSettings } from '../layouts/config';
|
|
5
|
-
export declare const CREATE_BASKET_DISCRIMINATOR: Buffer;
|
|
6
|
-
export declare function createBasketIx(params: {
|
|
7
|
-
creator: PublicKey;
|
|
8
|
-
basketSeeds: Uint8Array;
|
|
9
|
-
metadataAccount: PublicKey;
|
|
10
|
-
lookupTable0: PublicKey;
|
|
11
|
-
lookupTable1: PublicKey;
|
|
12
|
-
slot: BN;
|
|
13
|
-
host: PublicKey;
|
|
14
|
-
startPrice: {
|
|
15
|
-
numerator: BN;
|
|
16
|
-
exponent: BN;
|
|
17
|
-
};
|
|
18
|
-
hostFees: HostFees;
|
|
19
|
-
metadataParams: MetadataParams;
|
|
20
|
-
metadataModificationDelay: BN;
|
|
21
|
-
}): TransactionInstruction;
|
|
22
|
-
export declare const CREATE_BASKET_STATE_ACCOUNT_DISCRIMINATOR: Buffer;
|
|
23
|
-
export declare function createBasketStateAccountIx(params: {
|
|
24
|
-
creator: PublicKey;
|
|
25
|
-
basketSeeds: Uint8Array;
|
|
26
|
-
}): TransactionInstruction;
|
|
27
|
-
export declare function depositStateIx(params: {
|
|
28
|
-
buyer: PublicKey;
|
|
29
|
-
basket: PublicKey;
|
|
30
|
-
bountyMint: PublicKey;
|
|
31
|
-
rebalanceIntentRentPayer: PublicKey;
|
|
32
|
-
rebalanceSlippageBps: number;
|
|
33
|
-
executionStartTime: BN;
|
|
34
|
-
}): TransactionInstruction;
|
|
35
|
-
export declare const EDIT_BASKET_INTENT_DISCRIMINATOR: Buffer;
|
|
36
|
-
export declare function createEditBasketIntentIx(params: {
|
|
37
|
-
manager: PublicKey;
|
|
38
|
-
basket: PublicKey;
|
|
39
|
-
bountyMint: PublicKey;
|
|
40
|
-
editType: TaskType;
|
|
41
|
-
editData: EditData;
|
|
42
|
-
useBounty: number;
|
|
43
|
-
}): TransactionInstruction;
|
|
44
|
-
export declare const CREATE_WITHDRAW_STATE_DISCRIMINATOR: Buffer;
|
|
45
|
-
export declare function createWithdrawStateIx(params: {
|
|
46
|
-
seller: PublicKey;
|
|
47
|
-
basket: PublicKey;
|
|
48
|
-
withdrawAmount: BN;
|
|
49
|
-
rebalanceSlippageBps: number;
|
|
50
|
-
executionStartTime: BN;
|
|
51
|
-
bountyMint: PublicKey;
|
|
52
|
-
}): TransactionInstruction;
|
|
53
|
-
export declare const DEPOSIT_TOKENS_DISCRIMINATOR: Buffer;
|
|
54
|
-
export declare function depositTokensIx(params: {
|
|
55
|
-
owner: PublicKey;
|
|
56
|
-
basket: PublicKey;
|
|
57
|
-
contributionAmounts: BN[];
|
|
58
|
-
tokenMints: PublicKey[];
|
|
59
|
-
}): TransactionInstruction;
|
|
60
|
-
export declare const EDIT_BASKET_DISCRIMINATOR: Buffer;
|
|
61
|
-
export declare function editBasketIx(params: {
|
|
62
|
-
keeper: PublicKey;
|
|
63
|
-
basket: PublicKey;
|
|
64
|
-
intent: PublicKey;
|
|
65
|
-
bountyMint: PublicKey;
|
|
66
|
-
manager: PublicKey;
|
|
67
|
-
editType: TaskType;
|
|
68
|
-
metadataAccount: PublicKey;
|
|
69
|
-
}): TransactionInstruction;
|
|
70
|
-
export declare const EDIT_PRIVATE_BASKET_SETTINGS_DISCRIMINATOR: Buffer;
|
|
71
|
-
export declare function editPrivateBasketSettingsIx(params: {
|
|
72
|
-
creator: PublicKey;
|
|
73
|
-
basket: PublicKey;
|
|
74
|
-
basketType: number;
|
|
75
|
-
scheduleBytes: ScheduleSettings;
|
|
76
|
-
feeSettingsBytes: FeeSettings;
|
|
77
|
-
managerSettingsBytes: ManagerSettings;
|
|
78
|
-
automationSettingsBytes: AutomationSettings;
|
|
79
|
-
lpSettingsBytes: LpSettings;
|
|
80
|
-
authorityBitmasks: AuthorityBitmasks;
|
|
81
|
-
metadataParams: MetadataParams;
|
|
82
|
-
metadataModificationDelay: BN;
|
|
83
|
-
}): TransactionInstruction;
|
|
84
|
-
export declare const LOCK_DEPOSITS_DISCRIMINATOR: Buffer;
|
|
85
|
-
export declare function lockDepositsIx(params: {
|
|
86
|
-
owner: PublicKey;
|
|
87
|
-
}): TransactionInstruction;
|
|
88
|
-
export declare const MINT_BASKET_DISCRIMINATOR: Buffer;
|
|
89
|
-
export declare function mintBasketIx(params: {
|
|
90
|
-
keeper: PublicKey;
|
|
91
|
-
basket: PublicKey;
|
|
92
|
-
buyer: PublicKey;
|
|
93
|
-
}): TransactionInstruction;
|
|
94
|
-
export declare const REBALANCE_SWAP_DISCRIMINATOR: Buffer;
|
|
95
|
-
export declare function rebalanceSwapIx(params: {
|
|
96
|
-
keeper: PublicKey;
|
|
97
|
-
basket: PublicKey;
|
|
98
|
-
mintFrom: PublicKey;
|
|
99
|
-
mintTo: PublicKey;
|
|
100
|
-
amount: BN;
|
|
101
|
-
side: number;
|
|
102
|
-
}): TransactionInstruction;
|
|
103
|
-
export declare const REDEEM_TOKENS_DISCRIMINATOR: Buffer;
|
|
104
|
-
export declare function redeemTokensIx(params: {
|
|
105
|
-
keeper: PublicKey;
|
|
106
|
-
basket: PublicKey;
|
|
107
|
-
owner: PublicKey;
|
|
108
|
-
tokenMints: PublicKey[];
|
|
109
|
-
}): TransactionInstruction;
|
|
110
|
-
export declare const RESIZE_BASKET_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
111
|
-
export declare function resizeBasketStateIx(params: {
|
|
112
|
-
basketSeeds: Uint8Array;
|
|
113
|
-
}): TransactionInstruction;
|
|
114
|
-
export declare const CREATE_USER_REBALANCE_INTENT_ACCOUNT: Buffer;
|
|
115
|
-
export declare function createUserRebalanceIntentIx(params: {
|
|
116
|
-
user: PublicKey;
|
|
117
|
-
basket: PublicKey;
|
|
118
|
-
}): TransactionInstruction;
|
|
119
|
-
export declare const RESIZE_REBALANCE_INTENT_HANDLER: Buffer;
|
|
120
|
-
export declare function resizeRebalanceIntentIx(rebalanceIntent: PublicKey): TransactionInstruction;
|