@glamsystems/glam-sdk 1.0.12-alpha.2 → 1.0.12-alpha.3
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/index.cjs.js +881 -2046
- package/index.esm.js +881 -2046
- package/package.json +1 -1
- package/src/client/fees.d.ts +0 -3
- package/src/client/stake.d.ts +1 -1
- package/src/client/state.d.ts +0 -2
- package/src/glamExports.d.ts +29 -0
- package/src/models/state.d.ts +0 -4
- package/target/idl/ext_cctp.json +0 -6
- package/target/idl/ext_drift-staging.json +0 -6
- package/target/idl/ext_drift.json +0 -6
- package/target/idl/ext_kamino-staging.json +205 -6
- package/target/idl/ext_kamino.json +205 -6
- package/target/idl/ext_marinade.json +0 -6
- package/target/idl/ext_spl-staging.json +0 -6
- package/target/idl/ext_spl.json +0 -6
- package/target/idl/ext_stake_pool-staging.json +0 -6
- package/target/idl/ext_stake_pool.json +0 -6
- package/target/idl/glam_mint-staging.json +0 -6
- package/target/idl/glam_mint.json +0 -229
- package/target/idl/glam_protocol-staging.json +0 -271
- package/target/idl/glam_protocol.json +129 -1086
- package/target/types/ext_cctp.d.ts +0 -6
- package/target/types/ext_cctp.ts +0 -6
- package/target/types/ext_drift-staging.ts +0 -6
- package/target/types/ext_drift.d.ts +0 -6
- package/target/types/ext_drift.ts +0 -6
- package/target/types/ext_kamino-staging.ts +205 -6
- package/target/types/ext_kamino.d.ts +205 -6
- package/target/types/ext_kamino.ts +205 -6
- package/target/types/ext_marinade.d.ts +0 -6
- package/target/types/ext_marinade.ts +0 -6
- package/target/types/ext_offchain.d.ts +0 -6
- package/target/types/ext_spl-staging.ts +0 -6
- package/target/types/ext_spl.d.ts +0 -6
- package/target/types/ext_spl.ts +0 -6
- package/target/types/ext_stake_pool-staging.ts +0 -6
- package/target/types/ext_stake_pool.d.ts +0 -6
- package/target/types/ext_stake_pool.ts +0 -6
- package/target/types/glam_mint-staging.ts +0 -6
- package/target/types/glam_mint.d.ts +0 -229
- package/target/types/glam_mint.ts +0 -229
- package/target/types/glam_protocol-staging.ts +0 -271
- package/target/types/glam_protocol.d.ts +129 -1086
- package/target/types/glam_protocol.ts +128 -1085
package/package.json
CHANGED
package/src/client/fees.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ declare class TxBuilder extends BaseTxBuilder<FeesClient> {
|
|
|
6
6
|
crystallizeFeesTx(txOptions?: TxOptions): Promise<VersionedTransaction>;
|
|
7
7
|
claimFeesIxs(glamSigner: PublicKey): Promise<TransactionInstruction[]>;
|
|
8
8
|
claimFeesTx(txOptions?: TxOptions): Promise<VersionedTransaction>;
|
|
9
|
-
chargeProtocolFeeIxs(glamSigner: PublicKey): Promise<TransactionInstruction[]>;
|
|
10
|
-
chargeProtocolFeeTx(txOptions?: TxOptions): Promise<VersionedTransaction>;
|
|
11
9
|
setProtocolFeesIx(baseFeeBps: number, flowFeeBps: number, signer?: PublicKey): Promise<TransactionInstruction>;
|
|
12
10
|
setProtocolFeesTx(baseFeeBps: number, flowFeeBps: number, txOptions?: TxOptions): Promise<VersionedTransaction>;
|
|
13
11
|
}
|
|
@@ -26,7 +24,6 @@ export declare class FeesClient {
|
|
|
26
24
|
getClaimedFees(): Promise<any>;
|
|
27
25
|
crystallizeFees(txOptions?: TxOptions): Promise<TransactionSignature>;
|
|
28
26
|
claimFees(txOptions?: TxOptions): Promise<TransactionSignature>;
|
|
29
|
-
chargeProtocolFee(txOptions?: TxOptions): Promise<TransactionSignature>;
|
|
30
27
|
setProtocolFees(baseFeeBps: number, flowFeeBps: number, txOptions?: TxOptions): Promise<TransactionSignature>;
|
|
31
28
|
}
|
|
32
29
|
export {};
|
package/src/client/stake.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare class TxBuilder extends BaseTxBuilder<StakeClient> {
|
|
|
12
12
|
mergeStakeTx(destinationStake: PublicKey, sourceStake: PublicKey, txOptions?: TxOptions): Promise<VersionedTransaction>;
|
|
13
13
|
splitStakeIxs(existingStake: PublicKey, lamports: BN, glamSigner: PublicKey): Promise<[TransactionInstruction[], PublicKey]>;
|
|
14
14
|
splitStakeTx(existingStake: PublicKey, lamports: BN, txOptions?: TxOptions): Promise<[VersionedTransaction, PublicKey]>;
|
|
15
|
-
moveStakeIx(sourceStake: PublicKey, destinationStake: PublicKey, amount: BN, glamSigner: PublicKey): Promise<
|
|
15
|
+
moveStakeIx(sourceStake: PublicKey, destinationStake: PublicKey, amount: BN, glamSigner: PublicKey): Promise<any>;
|
|
16
16
|
moveStakeTx(sourceStake: PublicKey, destinationStake: PublicKey, amount: BN, txOptions?: TxOptions): Promise<VersionedTransaction>;
|
|
17
17
|
}
|
|
18
18
|
export declare class StakeClient {
|
package/src/client/state.d.ts
CHANGED
|
@@ -16,8 +16,6 @@ export type UpdateStateParams = {
|
|
|
16
16
|
timelockDuration?: number;
|
|
17
17
|
assets?: PublicKey[];
|
|
18
18
|
borrowable?: PublicKey[];
|
|
19
|
-
reduceOnly?: boolean;
|
|
20
|
-
anyLst?: boolean;
|
|
21
19
|
};
|
|
22
20
|
declare class TxBuilder extends BaseTxBuilder<StateClient> {
|
|
23
21
|
initializeIx(params: InitStateParams, glamSigner: PublicKey): Promise<[TransactionInstruction, PublicKey]>;
|
package/src/glamExports.d.ts
CHANGED
|
@@ -1810,6 +1810,35 @@ export declare function getGlamMintIdl(staging: boolean): {
|
|
|
1810
1810
|
};
|
|
1811
1811
|
}[];
|
|
1812
1812
|
docs?: undefined;
|
|
1813
|
+
} | {
|
|
1814
|
+
name: string;
|
|
1815
|
+
discriminator: number[];
|
|
1816
|
+
accounts: ({
|
|
1817
|
+
name: string;
|
|
1818
|
+
writable: boolean;
|
|
1819
|
+
signer?: undefined;
|
|
1820
|
+
address?: undefined;
|
|
1821
|
+
} | {
|
|
1822
|
+
name: string;
|
|
1823
|
+
writable: boolean;
|
|
1824
|
+
signer: boolean;
|
|
1825
|
+
address?: undefined;
|
|
1826
|
+
} | {
|
|
1827
|
+
name: string;
|
|
1828
|
+
address: string;
|
|
1829
|
+
writable?: undefined;
|
|
1830
|
+
signer?: undefined;
|
|
1831
|
+
})[];
|
|
1832
|
+
args: ({
|
|
1833
|
+
name: string;
|
|
1834
|
+
type: string;
|
|
1835
|
+
} | {
|
|
1836
|
+
name: string;
|
|
1837
|
+
type: {
|
|
1838
|
+
option: string;
|
|
1839
|
+
};
|
|
1840
|
+
})[];
|
|
1841
|
+
docs?: undefined;
|
|
1813
1842
|
} | {
|
|
1814
1843
|
name: string;
|
|
1815
1844
|
discriminator: number[];
|
package/src/models/state.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { PublicKey } from "@solana/web3.js";
|
|
|
4
4
|
import { Mint } from "@solana/spl-token";
|
|
5
5
|
import { BN } from "@coral-xyz/anchor";
|
|
6
6
|
import { MintModel } from "./mint";
|
|
7
|
-
import type { FeeStructure } from "./mint";
|
|
8
7
|
import type { RequestQueue } from "./types";
|
|
9
8
|
import type { IntegrationAcl, DelegateAcl } from "./acl";
|
|
10
9
|
export type StateAccount = IdlAccounts<GlamProtocol>["stateAccount"];
|
|
@@ -22,12 +21,9 @@ export declare class StateIdlModel implements StateModelType {
|
|
|
22
21
|
owner: PublicKey | null;
|
|
23
22
|
portfolioManagerName: number[] | null;
|
|
24
23
|
borrowable: PublicKey[] | null;
|
|
25
|
-
reduceOnly: boolean | null;
|
|
26
|
-
anyLst: boolean | null;
|
|
27
24
|
timelockDuration: number | null;
|
|
28
25
|
integrationAcls: IntegrationAcl[] | null;
|
|
29
26
|
delegateAcls: DelegateAcl[] | null;
|
|
30
|
-
feeStructure: FeeStructure | null;
|
|
31
27
|
constructor(data: Partial<StateModelType>);
|
|
32
28
|
}
|
|
33
29
|
/**
|
package/target/idl/ext_cctp.json
CHANGED
|
@@ -1307,6 +1307,206 @@
|
|
|
1307
1307
|
}
|
|
1308
1308
|
]
|
|
1309
1309
|
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "lending_liquidate_obligation_and_redeem_reserve_collateral_v2",
|
|
1312
|
+
"discriminator": [
|
|
1313
|
+
179,
|
|
1314
|
+
45,
|
|
1315
|
+
146,
|
|
1316
|
+
167,
|
|
1317
|
+
246,
|
|
1318
|
+
239,
|
|
1319
|
+
18,
|
|
1320
|
+
242
|
|
1321
|
+
],
|
|
1322
|
+
"accounts": [
|
|
1323
|
+
{
|
|
1324
|
+
"name": "glam_state",
|
|
1325
|
+
"writable": true
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "glam_vault",
|
|
1329
|
+
"writable": true,
|
|
1330
|
+
"pda": {
|
|
1331
|
+
"seeds": [
|
|
1332
|
+
{
|
|
1333
|
+
"kind": "const",
|
|
1334
|
+
"value": [
|
|
1335
|
+
118,
|
|
1336
|
+
97,
|
|
1337
|
+
117,
|
|
1338
|
+
108,
|
|
1339
|
+
116
|
|
1340
|
+
]
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"kind": "account",
|
|
1344
|
+
"path": "glam_state"
|
|
1345
|
+
}
|
|
1346
|
+
],
|
|
1347
|
+
"program": {
|
|
1348
|
+
"kind": "account",
|
|
1349
|
+
"path": "glam_protocol_program"
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"name": "glam_signer",
|
|
1355
|
+
"writable": true,
|
|
1356
|
+
"signer": true
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"name": "integration_authority",
|
|
1360
|
+
"pda": {
|
|
1361
|
+
"seeds": [
|
|
1362
|
+
{
|
|
1363
|
+
"kind": "const",
|
|
1364
|
+
"value": [
|
|
1365
|
+
105,
|
|
1366
|
+
110,
|
|
1367
|
+
116,
|
|
1368
|
+
101,
|
|
1369
|
+
103,
|
|
1370
|
+
114,
|
|
1371
|
+
97,
|
|
1372
|
+
116,
|
|
1373
|
+
105,
|
|
1374
|
+
111,
|
|
1375
|
+
110,
|
|
1376
|
+
45,
|
|
1377
|
+
97,
|
|
1378
|
+
117,
|
|
1379
|
+
116,
|
|
1380
|
+
104,
|
|
1381
|
+
111,
|
|
1382
|
+
114,
|
|
1383
|
+
105,
|
|
1384
|
+
116,
|
|
1385
|
+
121
|
|
1386
|
+
]
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "cpi_program",
|
|
1393
|
+
"address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"name": "glam_protocol_program",
|
|
1397
|
+
"address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "system_program",
|
|
1401
|
+
"address": "11111111111111111111111111111111"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "obligation",
|
|
1405
|
+
"writable": true
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"name": "lending_market"
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"name": "lending_market_authority"
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
"name": "repay_reserve",
|
|
1415
|
+
"writable": true
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"name": "repay_reserve_liquidity_mint"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
"name": "repay_reserve_liquidity_supply",
|
|
1422
|
+
"writable": true
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"name": "withdraw_reserve",
|
|
1426
|
+
"writable": true
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "withdraw_reserve_liquidity_mint"
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"name": "withdraw_reserve_collateral_mint",
|
|
1433
|
+
"writable": true
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"name": "withdraw_reserve_collateral_supply",
|
|
1437
|
+
"writable": true
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"name": "withdraw_reserve_liquidity_supply",
|
|
1441
|
+
"writable": true
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"name": "withdraw_reserve_liquidity_fee_receiver",
|
|
1445
|
+
"writable": true
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"name": "user_source_liquidity",
|
|
1449
|
+
"writable": true
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
"name": "user_destination_collateral",
|
|
1453
|
+
"writable": true
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"name": "user_destination_liquidity",
|
|
1457
|
+
"writable": true
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"name": "collateral_token_program"
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"name": "repay_liquidity_token_program"
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"name": "withdraw_liquidity_token_program"
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
"name": "instruction_sysvar_account"
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"name": "collateral_obligation_farm_user_state",
|
|
1473
|
+
"writable": true,
|
|
1474
|
+
"optional": true
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"name": "collateral_reserve_farm_state",
|
|
1478
|
+
"writable": true,
|
|
1479
|
+
"optional": true
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"name": "debt_obligation_farm_user_state",
|
|
1483
|
+
"writable": true,
|
|
1484
|
+
"optional": true
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
"name": "debt_reserve_farm_state",
|
|
1488
|
+
"writable": true,
|
|
1489
|
+
"optional": true
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"name": "farms_program"
|
|
1493
|
+
}
|
|
1494
|
+
],
|
|
1495
|
+
"args": [
|
|
1496
|
+
{
|
|
1497
|
+
"name": "liquidity_amount",
|
|
1498
|
+
"type": "u64"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"name": "min_acceptable_received_liquidity_amount",
|
|
1502
|
+
"type": "u64"
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "max_allowed_ltv_override_percent",
|
|
1506
|
+
"type": "u64"
|
|
1507
|
+
}
|
|
1508
|
+
]
|
|
1509
|
+
},
|
|
1310
1510
|
{
|
|
1311
1511
|
"name": "lending_repay_obligation_liquidity_v2",
|
|
1312
1512
|
"discriminator": [
|
|
@@ -2329,12 +2529,6 @@
|
|
|
2329
2529
|
},
|
|
2330
2530
|
{
|
|
2331
2531
|
"name": "OracleConfigs"
|
|
2332
|
-
},
|
|
2333
|
-
{
|
|
2334
|
-
"name": "ReduceOnly"
|
|
2335
|
-
},
|
|
2336
|
-
{
|
|
2337
|
-
"name": "AnyLst"
|
|
2338
2532
|
}
|
|
2339
2533
|
]
|
|
2340
2534
|
}
|
|
@@ -3199,6 +3393,11 @@
|
|
|
3199
3393
|
"type": "u64",
|
|
3200
3394
|
"value": "1"
|
|
3201
3395
|
},
|
|
3396
|
+
{
|
|
3397
|
+
"name": "PROTO_KAMINO_LENDING_PERM_LIQUIDATE",
|
|
3398
|
+
"type": "u64",
|
|
3399
|
+
"value": "32"
|
|
3400
|
+
},
|
|
3202
3401
|
{
|
|
3203
3402
|
"name": "PROTO_KAMINO_LENDING_PERM_REPAY",
|
|
3204
3403
|
"type": "u64",
|
|
@@ -1307,6 +1307,206 @@
|
|
|
1307
1307
|
}
|
|
1308
1308
|
]
|
|
1309
1309
|
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "lending_liquidate_obligation_and_redeem_reserve_collateral_v2",
|
|
1312
|
+
"discriminator": [
|
|
1313
|
+
179,
|
|
1314
|
+
45,
|
|
1315
|
+
146,
|
|
1316
|
+
167,
|
|
1317
|
+
246,
|
|
1318
|
+
239,
|
|
1319
|
+
18,
|
|
1320
|
+
242
|
|
1321
|
+
],
|
|
1322
|
+
"accounts": [
|
|
1323
|
+
{
|
|
1324
|
+
"name": "glam_state",
|
|
1325
|
+
"writable": true
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "glam_vault",
|
|
1329
|
+
"writable": true,
|
|
1330
|
+
"pda": {
|
|
1331
|
+
"seeds": [
|
|
1332
|
+
{
|
|
1333
|
+
"kind": "const",
|
|
1334
|
+
"value": [
|
|
1335
|
+
118,
|
|
1336
|
+
97,
|
|
1337
|
+
117,
|
|
1338
|
+
108,
|
|
1339
|
+
116
|
|
1340
|
+
]
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"kind": "account",
|
|
1344
|
+
"path": "glam_state"
|
|
1345
|
+
}
|
|
1346
|
+
],
|
|
1347
|
+
"program": {
|
|
1348
|
+
"kind": "account",
|
|
1349
|
+
"path": "glam_protocol_program"
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"name": "glam_signer",
|
|
1355
|
+
"writable": true,
|
|
1356
|
+
"signer": true
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"name": "integration_authority",
|
|
1360
|
+
"pda": {
|
|
1361
|
+
"seeds": [
|
|
1362
|
+
{
|
|
1363
|
+
"kind": "const",
|
|
1364
|
+
"value": [
|
|
1365
|
+
105,
|
|
1366
|
+
110,
|
|
1367
|
+
116,
|
|
1368
|
+
101,
|
|
1369
|
+
103,
|
|
1370
|
+
114,
|
|
1371
|
+
97,
|
|
1372
|
+
116,
|
|
1373
|
+
105,
|
|
1374
|
+
111,
|
|
1375
|
+
110,
|
|
1376
|
+
45,
|
|
1377
|
+
97,
|
|
1378
|
+
117,
|
|
1379
|
+
116,
|
|
1380
|
+
104,
|
|
1381
|
+
111,
|
|
1382
|
+
114,
|
|
1383
|
+
105,
|
|
1384
|
+
116,
|
|
1385
|
+
121
|
|
1386
|
+
]
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "cpi_program",
|
|
1393
|
+
"address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"name": "glam_protocol_program",
|
|
1397
|
+
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "system_program",
|
|
1401
|
+
"address": "11111111111111111111111111111111"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "obligation",
|
|
1405
|
+
"writable": true
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"name": "lending_market"
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"name": "lending_market_authority"
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
"name": "repay_reserve",
|
|
1415
|
+
"writable": true
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"name": "repay_reserve_liquidity_mint"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
"name": "repay_reserve_liquidity_supply",
|
|
1422
|
+
"writable": true
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"name": "withdraw_reserve",
|
|
1426
|
+
"writable": true
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "withdraw_reserve_liquidity_mint"
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"name": "withdraw_reserve_collateral_mint",
|
|
1433
|
+
"writable": true
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"name": "withdraw_reserve_collateral_supply",
|
|
1437
|
+
"writable": true
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"name": "withdraw_reserve_liquidity_supply",
|
|
1441
|
+
"writable": true
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"name": "withdraw_reserve_liquidity_fee_receiver",
|
|
1445
|
+
"writable": true
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"name": "user_source_liquidity",
|
|
1449
|
+
"writable": true
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
"name": "user_destination_collateral",
|
|
1453
|
+
"writable": true
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"name": "user_destination_liquidity",
|
|
1457
|
+
"writable": true
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"name": "collateral_token_program"
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"name": "repay_liquidity_token_program"
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"name": "withdraw_liquidity_token_program"
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
"name": "instruction_sysvar_account"
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"name": "collateral_obligation_farm_user_state",
|
|
1473
|
+
"writable": true,
|
|
1474
|
+
"optional": true
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"name": "collateral_reserve_farm_state",
|
|
1478
|
+
"writable": true,
|
|
1479
|
+
"optional": true
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"name": "debt_obligation_farm_user_state",
|
|
1483
|
+
"writable": true,
|
|
1484
|
+
"optional": true
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
"name": "debt_reserve_farm_state",
|
|
1488
|
+
"writable": true,
|
|
1489
|
+
"optional": true
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"name": "farms_program"
|
|
1493
|
+
}
|
|
1494
|
+
],
|
|
1495
|
+
"args": [
|
|
1496
|
+
{
|
|
1497
|
+
"name": "liquidity_amount",
|
|
1498
|
+
"type": "u64"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"name": "min_acceptable_received_liquidity_amount",
|
|
1502
|
+
"type": "u64"
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "max_allowed_ltv_override_percent",
|
|
1506
|
+
"type": "u64"
|
|
1507
|
+
}
|
|
1508
|
+
]
|
|
1509
|
+
},
|
|
1310
1510
|
{
|
|
1311
1511
|
"name": "lending_repay_obligation_liquidity_v2",
|
|
1312
1512
|
"discriminator": [
|
|
@@ -2221,12 +2421,6 @@
|
|
|
2221
2421
|
},
|
|
2222
2422
|
{
|
|
2223
2423
|
"name": "OracleConfigs"
|
|
2224
|
-
},
|
|
2225
|
-
{
|
|
2226
|
-
"name": "ReduceOnly"
|
|
2227
|
-
},
|
|
2228
|
-
{
|
|
2229
|
-
"name": "AnyLst"
|
|
2230
2424
|
}
|
|
2231
2425
|
]
|
|
2232
2426
|
}
|
|
@@ -3091,6 +3285,11 @@
|
|
|
3091
3285
|
"type": "u64",
|
|
3092
3286
|
"value": "1"
|
|
3093
3287
|
},
|
|
3288
|
+
{
|
|
3289
|
+
"name": "PROTO_KAMINO_LENDING_PERM_LIQUIDATE",
|
|
3290
|
+
"type": "u64",
|
|
3291
|
+
"value": "32"
|
|
3292
|
+
},
|
|
3094
3293
|
{
|
|
3095
3294
|
"name": "PROTO_KAMINO_LENDING_PERM_REPAY",
|
|
3096
3295
|
"type": "u64",
|
package/target/idl/ext_spl.json
CHANGED