@liquid-af/sdk 0.11.1 → 0.11.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.
@@ -2094,12 +2094,12 @@
2094
2094
  {
2095
2095
  "name": "create",
2096
2096
  "docs": [
2097
- "Creates a pool for the given token pair and the initial price.",
2097
+ "Creates an AMM pool for the given token pair with an initial deposit.",
2098
2098
  "",
2099
2099
  "# Arguments",
2100
- "* `init_amount_base` - the initial amount_0 to deposit",
2101
- "* `init_amount_quote` - the initial amount_1 to deposit",
2102
- "* `creator` - the creator of the pool"
2100
+ "* `init_amount_base` - Initial base token amount to deposit into the pool.",
2101
+ "* `init_amount_quote` - Initial quote token amount to deposit into the pool.",
2102
+ "* `creator` - Optional creator pubkey (for program-initiated migration pools)."
2103
2103
  ],
2104
2104
  "discriminator": [
2105
2105
  24,
@@ -2826,12 +2826,12 @@
2826
2826
  {
2827
2827
  "name": "deposit",
2828
2828
  "docs": [
2829
- "Deposit lp token to the pool.",
2829
+ "Deposits liquidity into the pool, minting LP tokens to the owner.",
2830
2830
  "",
2831
2831
  "# Arguments",
2832
- "* `lp_token_amount` - Increased number of LPs",
2833
- "* `maximum_base_token_amount` - Maximum base token amount to deposit, prevents excessive slippage",
2834
- "* `maximum_quote_token_amount` - Maximum quote token amount to deposit, prevents excessive slippage"
2832
+ "* `lp_token_amount` - Number of LP tokens to mint.",
2833
+ "* `maximum_base_token_amount` - Maximum base tokens willing to deposit (slippage protection).",
2834
+ "* `maximum_quote_token_amount` - Maximum quote tokens willing to deposit (slippage protection)."
2835
2835
  ],
2836
2836
  "discriminator": [
2837
2837
  242,
@@ -2847,12 +2847,15 @@
2847
2847
  {
2848
2848
  "name": "owner",
2849
2849
  "docs": [
2850
- "Pays to mint the position."
2850
+ "The owner depositing liquidity into the pool."
2851
2851
  ],
2852
2852
  "signer": true
2853
2853
  },
2854
2854
  {
2855
2855
  "name": "pool_state",
2856
+ "docs": [
2857
+ "Pool state account validated against base/quote vaults and LP mint."
2858
+ ],
2856
2859
  "writable": true
2857
2860
  },
2858
2861
  {
@@ -4120,10 +4123,16 @@
4120
4123
  "accounts": [
4121
4124
  {
4122
4125
  "name": "admin",
4126
+ "docs": [
4127
+ "The admin authorized to pause the protocol."
4128
+ ],
4123
4129
  "signer": true
4124
4130
  },
4125
4131
  {
4126
4132
  "name": "global_config",
4133
+ "docs": [
4134
+ "Global configuration account to be updated."
4135
+ ],
4127
4136
  "writable": true,
4128
4137
  "pda": {
4129
4138
  "seeds": [
@@ -6343,10 +6352,16 @@
6343
6352
  "accounts": [
6344
6353
  {
6345
6354
  "name": "admin",
6355
+ "docs": [
6356
+ "The admin authorized to unpause the protocol."
6357
+ ],
6346
6358
  "signer": true
6347
6359
  },
6348
6360
  {
6349
6361
  "name": "global_config",
6362
+ "docs": [
6363
+ "Global configuration account to be updated."
6364
+ ],
6350
6365
  "writable": true,
6351
6366
  "pda": {
6352
6367
  "seeds": [
@@ -6500,12 +6515,12 @@
6500
6515
  {
6501
6516
  "name": "withdraw",
6502
6517
  "docs": [
6503
- "Withdraw lp for base token and quote token.",
6518
+ "Withdraws liquidity from the pool, burning LP tokens and returning base and quote tokens.",
6504
6519
  "",
6505
6520
  "# Arguments",
6506
- "* `lp_token_amount` - Amount of pool tokens to burn. User receives an output of token a and b based on the percentage of the pool tokens that are returned.",
6507
- "* `minimum_base_amount` - Minimum amount of base token to receive, prevents excessive slippage",
6508
- "* `minimum_quote_amount` - Minimum amount of quote token to receive, prevents excessive slippage"
6521
+ "* `lp_token_amount` - Number of LP tokens to burn.",
6522
+ "* `minimum_base_amount` - Minimum base tokens expected to receive (slippage protection).",
6523
+ "* `minimum_quote_amount` - Minimum quote tokens expected to receive (slippage protection)."
6509
6524
  ],
6510
6525
  "discriminator": [
6511
6526
  183,
@@ -6521,14 +6536,14 @@
6521
6536
  {
6522
6537
  "name": "owner",
6523
6538
  "docs": [
6524
- "Pays to mint the position."
6539
+ "The owner withdrawing liquidity from the pool."
6525
6540
  ],
6526
6541
  "signer": true
6527
6542
  },
6528
6543
  {
6529
6544
  "name": "pool_state",
6530
6545
  "docs": [
6531
- "Pool state account."
6546
+ "Pool state account validated against base/quote vaults and LP mint."
6532
6547
  ],
6533
6548
  "writable": true
6534
6549
  },
@@ -7179,6 +7194,9 @@
7179
7194
  },
7180
7195
  {
7181
7196
  "name": "FeeMode",
7197
+ "docs": [
7198
+ "The fee distribution mode for a token's fee configuration."
7199
+ ],
7182
7200
  "repr": {
7183
7201
  "kind": "rust"
7184
7202
  },
@@ -7196,6 +7214,9 @@
7196
7214
  },
7197
7215
  {
7198
7216
  "name": "FeeRecipient",
7217
+ "docs": [
7218
+ "A fee recipient with their allocation and vault PDA bump."
7219
+ ],
7199
7220
  "repr": {
7200
7221
  "kind": "c"
7201
7222
  },
@@ -7204,18 +7225,30 @@
7204
7225
  "fields": [
7205
7226
  {
7206
7227
  "name": "pubkey",
7228
+ "docs": [
7229
+ "The public key of the fee recipient."
7230
+ ],
7207
7231
  "type": "pubkey"
7208
7232
  },
7209
7233
  {
7210
7234
  "name": "basis_points",
7235
+ "docs": [
7236
+ "The recipient's share of fees in basis points (out of 10,000)."
7237
+ ],
7211
7238
  "type": "u16"
7212
7239
  },
7213
7240
  {
7214
7241
  "name": "vault_bump",
7242
+ "docs": [
7243
+ "The bump seed for the recipient's vault PDA."
7244
+ ],
7215
7245
  "type": "u8"
7216
7246
  },
7217
7247
  {
7218
7248
  "name": "_padding",
7249
+ "docs": [
7250
+ "Padding to align to 8-byte boundary (32 + 2 + 1 + 5 = 40 bytes)."
7251
+ ],
7219
7252
  "type": {
7220
7253
  "array": [
7221
7254
  "u8",
@@ -7573,6 +7606,11 @@
7573
7606
  },
7574
7607
  {
7575
7608
  "name": "UnifiedFeeConfiguration",
7609
+ "docs": [
7610
+ "Unified fee configuration for a token, supporting both Recipients and Revoked modes.",
7611
+ "",
7612
+ "Stored as a zero-copy account for efficient access in hot paths."
7613
+ ],
7576
7614
  "serialization": "bytemuckunsafe",
7577
7615
  "repr": {
7578
7616
  "kind": "c",
package/dist/lut.d.ts CHANGED
@@ -22,17 +22,4 @@ export declare function getLutAccounts(config: LiquidConfig, connection: Connect
22
22
  * @returns The AddressLookupTableAccount, or null if not found
23
23
  */
24
24
  export declare function fetchLut(connection: Connection, lutAddress: PublicKey): Promise<AddressLookupTableAccount | null>;
25
- /**
26
- * Creates instructions to create and extend an Address Lookup Table.
27
- *
28
- * @param authority - The LUT authority (usually admin keypair)
29
- * @param payer - The rent payer
30
- * @param accounts - The accounts to add to the LUT
31
- * @param recentSlot - A recent slot for LUT derivation
32
- * @returns The LUT address and the create + extend instructions
33
- */
34
- export declare function buildCreateLutInstructions(authority: PublicKey, payer: PublicKey, accounts: PublicKey[], recentSlot: number): {
35
- lutAddress: PublicKey;
36
- instructions: import("@solana/web3.js").TransactionInstruction[];
37
- };
38
25
  //# sourceMappingURL=lut.d.ts.map
package/dist/lut.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lut.d.ts","sourceRoot":"","sources":["../src/lut.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,SAAS,EAET,KAAK,UAAU,EACf,KAAK,yBAAyB,EAC9B,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,aAAa,CAAC;AA0B3D;;;;;;;;;;;;GAYG;AACH,wBAAsB,cAAc,CACnC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,GACpB,OAAO,CAAC,SAAS,EAAE,CAAC,CAsDtB;AAED;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAC7B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,SAAS,GACnB,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAG3C;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACzC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,SAAS,EAAE,EACrB,UAAU,EAAE,MAAM;;;EAgBlB"}
1
+ {"version":3,"file":"lut.d.ts","sourceRoot":"","sources":["../src/lut.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,SAAS,EAET,KAAK,UAAU,EACf,KAAK,yBAAyB,EAC9B,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,aAAa,CAAC;AA0B3D;;;;;;;;;;;;GAYG;AACH,wBAAsB,cAAc,CACnC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,GACpB,OAAO,CAAC,SAAS,EAAE,CAAC,CAsDtB;AAED;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAC7B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,SAAS,GACnB,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAG3C"}
package/dist/lut.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AddressLookupTableProgram, ComputeBudgetProgram, PublicKey, SystemProgram, } from "@solana/web3.js";
1
+ import { ComputeBudgetProgram, PublicKey, SystemProgram, } from "@solana/web3.js";
2
2
  import { ASSOCIATED_TOKEN_PROGRAM_ID, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, } from "@solana/spl-token";
3
3
  import { WSOL_MINT } from "./config.js";
4
4
  import { getSwapAuthorityPDA, getSwapGlobalConfigPDA, } from "./pda/liquid-swap.js";
@@ -80,27 +80,4 @@ export async function fetchLut(connection, lutAddress) {
80
80
  const result = await connection.getAddressLookupTable(lutAddress);
81
81
  return result.value;
82
82
  }
83
- /**
84
- * Creates instructions to create and extend an Address Lookup Table.
85
- *
86
- * @param authority - The LUT authority (usually admin keypair)
87
- * @param payer - The rent payer
88
- * @param accounts - The accounts to add to the LUT
89
- * @param recentSlot - A recent slot for LUT derivation
90
- * @returns The LUT address and the create + extend instructions
91
- */
92
- export function buildCreateLutInstructions(authority, payer, accounts, recentSlot) {
93
- const [createIx, lutAddress] = AddressLookupTableProgram.createLookupTable({
94
- authority,
95
- payer,
96
- recentSlot,
97
- });
98
- const extendIx = AddressLookupTableProgram.extendLookupTable({
99
- payer,
100
- authority,
101
- lookupTable: lutAddress,
102
- addresses: accounts,
103
- });
104
- return { lutAddress, instructions: [createIx, extendIx] };
105
- }
106
83
  //# sourceMappingURL=lut.js.map
package/dist/lut.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"lut.js","sourceRoot":"","sources":["../src/lut.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,yBAAyB,EACzB,oBAAoB,EACpB,SAAS,EACT,aAAa,GAGb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,2BAA2B,EAC3B,qBAAqB,EACrB,gBAAgB,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAqB,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACN,mBAAmB,EACnB,sBAAsB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AAExD;;GAEG;AACH,SAAS,kBAAkB,CAAC,SAAoB;IAC/C,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,sBAAsB,CAC7C,CAAC,kBAAkB,CAAC,EACpB,SAAS,CACT,CAAC;IACF,OAAO,GAAG,CAAC;AACZ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CACnC,MAAoB,EACpB,UAAsB;IAEtB,MAAM,SAAS,GAAG,MAAM,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC3D,MAAM,eAAe,GAAG,SAAS,CAAC,eAA4B,CAAC;IAE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ChB,qBAAqB;QACrB,2BAA2B;QAC3B,oBAAoB,CAAC,SAAS;QAC9B,MAAM,CAAC,oBAAoB;QAC3B,MAAM,CAAC,qBAAqB;QAC5B,MAAM,CAAC,mBAAmB;QAC1B,MAAM,CAAC,mBAAmB;QAC1B,qBAAqB;QACrB,kBAAkB;QAClB,kBAAkB;QAClB,mBAAmB;QACnB,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,oBAAoB;QACpB,eAAe;QACf,iBAAiB;QACjB,cAAc;QACd,iBAAiB;QACjB,YAAY;QACZ,SAAS;QACT,eAAe;KACf,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC7B,UAAsB,EACtB,UAAqB;IAErB,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAClE,OAAO,MAAM,CAAC,KAAK,CAAC;AACrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liquid-af/sdk",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "TypeScript SDK for the Liquid DeFi protocol on Solana",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -12521,7 +12521,7 @@
12521
12521
  "* `trader_referral_reward_basis_points` - Optional new value for trader referral reward",
12522
12522
  "* `protocol_fee_basis_points` - Optional new value for protocol fee basis points",
12523
12523
  "* `quote_mints` - Optional new list of valid quote mints",
12524
- "* `sol_usd_price_feed` - Optional new Pyth SOL/USD price feed account"
12524
+ "* `sol_usd_price_feed` - Optional new Pyth SOL/USD price feed account."
12525
12525
  ],
12526
12526
  "discriminator": [
12527
12527
  219,
@@ -13379,6 +13379,9 @@
13379
13379
  },
13380
13380
  {
13381
13381
  "name": "FeeMode",
13382
+ "docs": [
13383
+ "The fee distribution mode for a token's fee configuration."
13384
+ ],
13382
13385
  "repr": {
13383
13386
  "kind": "rust"
13384
13387
  },
@@ -13396,6 +13399,9 @@
13396
13399
  },
13397
13400
  {
13398
13401
  "name": "FeeRecipient",
13402
+ "docs": [
13403
+ "A fee recipient with their allocation and vault PDA bump."
13404
+ ],
13399
13405
  "repr": {
13400
13406
  "kind": "c"
13401
13407
  },
@@ -13404,18 +13410,30 @@
13404
13410
  "fields": [
13405
13411
  {
13406
13412
  "name": "pubkey",
13413
+ "docs": [
13414
+ "The public key of the fee recipient."
13415
+ ],
13407
13416
  "type": "pubkey"
13408
13417
  },
13409
13418
  {
13410
13419
  "name": "basis_points",
13420
+ "docs": [
13421
+ "The recipient's share of fees in basis points (out of 10,000)."
13422
+ ],
13411
13423
  "type": "u16"
13412
13424
  },
13413
13425
  {
13414
13426
  "name": "vault_bump",
13427
+ "docs": [
13428
+ "The bump seed for the recipient's vault PDA."
13429
+ ],
13415
13430
  "type": "u8"
13416
13431
  },
13417
13432
  {
13418
13433
  "name": "_padding",
13434
+ "docs": [
13435
+ "Padding to align to 8-byte boundary (32 + 2 + 1 + 5 = 40 bytes)."
13436
+ ],
13419
13437
  "type": {
13420
13438
  "array": [
13421
13439
  "u8",
@@ -13834,6 +13852,11 @@
13834
13852
  },
13835
13853
  {
13836
13854
  "name": "UnifiedFeeConfiguration",
13855
+ "docs": [
13856
+ "Unified fee configuration for a token, supporting both Recipients and Revoked modes.",
13857
+ "",
13858
+ "Stored as a zero-copy account for efficient access in hot paths."
13859
+ ],
13837
13860
  "serialization": "bytemuckunsafe",
13838
13861
  "repr": {
13839
13862
  "kind": "c",
package/src/idl/liquid.ts CHANGED
@@ -12527,7 +12527,7 @@ export type Liquid = {
12527
12527
  "* `trader_referral_reward_basis_points` - Optional new value for trader referral reward",
12528
12528
  "* `protocol_fee_basis_points` - Optional new value for protocol fee basis points",
12529
12529
  "* `quote_mints` - Optional new list of valid quote mints",
12530
- "* `sol_usd_price_feed` - Optional new Pyth SOL/USD price feed account"
12530
+ "* `sol_usd_price_feed` - Optional new Pyth SOL/USD price feed account."
12531
12531
  ],
12532
12532
  "discriminator": [
12533
12533
  219,
@@ -13385,6 +13385,9 @@ export type Liquid = {
13385
13385
  },
13386
13386
  {
13387
13387
  "name": "feeMode",
13388
+ "docs": [
13389
+ "The fee distribution mode for a token's fee configuration."
13390
+ ],
13388
13391
  "repr": {
13389
13392
  "kind": "rust"
13390
13393
  },
@@ -13402,6 +13405,9 @@ export type Liquid = {
13402
13405
  },
13403
13406
  {
13404
13407
  "name": "feeRecipient",
13408
+ "docs": [
13409
+ "A fee recipient with their allocation and vault PDA bump."
13410
+ ],
13405
13411
  "repr": {
13406
13412
  "kind": "c"
13407
13413
  },
@@ -13410,18 +13416,30 @@ export type Liquid = {
13410
13416
  "fields": [
13411
13417
  {
13412
13418
  "name": "pubkey",
13419
+ "docs": [
13420
+ "The public key of the fee recipient."
13421
+ ],
13413
13422
  "type": "pubkey"
13414
13423
  },
13415
13424
  {
13416
13425
  "name": "basisPoints",
13426
+ "docs": [
13427
+ "The recipient's share of fees in basis points (out of 10,000)."
13428
+ ],
13417
13429
  "type": "u16"
13418
13430
  },
13419
13431
  {
13420
13432
  "name": "vaultBump",
13433
+ "docs": [
13434
+ "The bump seed for the recipient's vault PDA."
13435
+ ],
13421
13436
  "type": "u8"
13422
13437
  },
13423
13438
  {
13424
13439
  "name": "padding",
13440
+ "docs": [
13441
+ "Padding to align to 8-byte boundary (32 + 2 + 1 + 5 = 40 bytes)."
13442
+ ],
13425
13443
  "type": {
13426
13444
  "array": [
13427
13445
  "u8",
@@ -13840,6 +13858,11 @@ export type Liquid = {
13840
13858
  },
13841
13859
  {
13842
13860
  "name": "unifiedFeeConfiguration",
13861
+ "docs": [
13862
+ "Unified fee configuration for a token, supporting both Recipients and Revoked modes.",
13863
+ "",
13864
+ "Stored as a zero-copy account for efficient access in hot paths."
13865
+ ],
13843
13866
  "serialization": "bytemuckunsafe",
13844
13867
  "repr": {
13845
13868
  "kind": "c",
@@ -1085,6 +1085,9 @@
1085
1085
  },
1086
1086
  {
1087
1087
  "name": "BuyAmounts",
1088
+ "docs": [
1089
+ "Amounts for a buy trade (quote in, tokens out)."
1090
+ ],
1088
1091
  "type": {
1089
1092
  "kind": "struct",
1090
1093
  "fields": [
@@ -2209,6 +2212,9 @@
2209
2212
  },
2210
2213
  {
2211
2214
  "name": "SellAmounts",
2215
+ "docs": [
2216
+ "Amounts for a sell trade (tokens in, quote out)."
2217
+ ],
2212
2218
  "type": {
2213
2219
  "kind": "struct",
2214
2220
  "fields": [
@@ -1091,6 +1091,9 @@ export type LiquidEvents = {
1091
1091
  },
1092
1092
  {
1093
1093
  "name": "buyAmounts",
1094
+ "docs": [
1095
+ "Amounts for a buy trade (quote in, tokens out)."
1096
+ ],
1094
1097
  "type": {
1095
1098
  "kind": "struct",
1096
1099
  "fields": [
@@ -2215,6 +2218,9 @@ export type LiquidEvents = {
2215
2218
  },
2216
2219
  {
2217
2220
  "name": "sellAmounts",
2221
+ "docs": [
2222
+ "Amounts for a sell trade (tokens in, quote out)."
2223
+ ],
2218
2224
  "type": {
2219
2225
  "kind": "struct",
2220
2226
  "fields": [