@exponent-labs/meteora-idl 0.9.1 → 0.9.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/build/index.d.ts +7 -235
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IdlAccounts, IdlTypes, web3 } from "@coral-xyz/anchor";
|
|
2
2
|
import { Amm } from "./meteora_amm";
|
|
3
3
|
import { Vault } from "./meteora_vault";
|
|
4
4
|
export declare const POOLS_IDL: {
|
|
@@ -234,7 +234,7 @@ export declare const POOLS_IDL: {
|
|
|
234
234
|
msg: string;
|
|
235
235
|
}[];
|
|
236
236
|
};
|
|
237
|
-
export declare const POOLS_IDL_CODER:
|
|
237
|
+
export declare const POOLS_IDL_CODER: any;
|
|
238
238
|
export declare const VAULT_IDL: {
|
|
239
239
|
version: string;
|
|
240
240
|
name: string;
|
|
@@ -353,242 +353,14 @@ export declare const VAULT_IDL: {
|
|
|
353
353
|
msg: string;
|
|
354
354
|
}[];
|
|
355
355
|
};
|
|
356
|
-
export declare const VAULT_IDL_CODER:
|
|
356
|
+
export declare const VAULT_IDL_CODER: any;
|
|
357
357
|
export declare const POOLS_PROGRAM: string;
|
|
358
358
|
export declare const VAULT_PROGRAM: string;
|
|
359
359
|
export type PoolState = IdlAccounts<Amm>["pool"];
|
|
360
360
|
export type VaultState = IdlAccounts<Vault>["vault"];
|
|
361
361
|
export type CurveType = IdlTypes<Amm>["CurveType"];
|
|
362
362
|
export type LockedProfitTracker = IdlTypes<Vault>["LockedProfitTracker"];
|
|
363
|
-
export declare const decodePool: (data: Buffer) =>
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
aVault: web3.PublicKey;
|
|
368
|
-
bVault: web3.PublicKey;
|
|
369
|
-
aVaultLp: web3.PublicKey;
|
|
370
|
-
bVaultLp: web3.PublicKey;
|
|
371
|
-
aVaultLpBump: number;
|
|
372
|
-
enabled: boolean;
|
|
373
|
-
protocolTokenAFee: web3.PublicKey;
|
|
374
|
-
protocolTokenBFee: web3.PublicKey;
|
|
375
|
-
feeLastUpdatedAt: import("bn.js");
|
|
376
|
-
padding0: number[];
|
|
377
|
-
fees: {
|
|
378
|
-
tradeFeeNumerator: import("bn.js");
|
|
379
|
-
tradeFeeDenominator: import("bn.js");
|
|
380
|
-
protocolTradeFeeNumerator: import("bn.js");
|
|
381
|
-
protocolTradeFeeDenominator: import("bn.js");
|
|
382
|
-
};
|
|
383
|
-
poolType: ({
|
|
384
|
-
permissionless?: never;
|
|
385
|
-
} & {
|
|
386
|
-
permissioned: Record<string, never>;
|
|
387
|
-
}) | ({
|
|
388
|
-
permissioned?: never;
|
|
389
|
-
} & {
|
|
390
|
-
permissionless: Record<string, never>;
|
|
391
|
-
});
|
|
392
|
-
stake: web3.PublicKey;
|
|
393
|
-
totalLockedLp: import("bn.js");
|
|
394
|
-
bootstrapping: {
|
|
395
|
-
activationPoint: import("bn.js");
|
|
396
|
-
whitelistedVault: web3.PublicKey;
|
|
397
|
-
poolCreator: web3.PublicKey;
|
|
398
|
-
activationType: number;
|
|
399
|
-
};
|
|
400
|
-
partnerInfo: {
|
|
401
|
-
feeNumerator: import("bn.js");
|
|
402
|
-
partnerAuthority: web3.PublicKey;
|
|
403
|
-
pendingFeeA: import("bn.js");
|
|
404
|
-
pendingFeeB: import("bn.js");
|
|
405
|
-
};
|
|
406
|
-
padding: {
|
|
407
|
-
padding0: number[];
|
|
408
|
-
padding1: import("bn.js")[];
|
|
409
|
-
padding2: import("bn.js")[];
|
|
410
|
-
};
|
|
411
|
-
curveType: ({
|
|
412
|
-
stable?: never;
|
|
413
|
-
} & {
|
|
414
|
-
constantProduct: Record<string, never>;
|
|
415
|
-
}) | ({
|
|
416
|
-
constantProduct?: never;
|
|
417
|
-
} & {
|
|
418
|
-
stable: {
|
|
419
|
-
amp: import("bn.js");
|
|
420
|
-
tokenMultiplier: {
|
|
421
|
-
tokenAMultiplier: import("bn.js");
|
|
422
|
-
tokenBMultiplier: import("bn.js");
|
|
423
|
-
precisionFactor: number;
|
|
424
|
-
};
|
|
425
|
-
depeg: {
|
|
426
|
-
baseVirtualPrice: import("bn.js");
|
|
427
|
-
baseCacheUpdated: import("bn.js");
|
|
428
|
-
depegType: ({
|
|
429
|
-
marinade?: never;
|
|
430
|
-
lido?: never;
|
|
431
|
-
splStake?: never;
|
|
432
|
-
} & {
|
|
433
|
-
none: Record<string, never>;
|
|
434
|
-
}) | ({
|
|
435
|
-
none?: never;
|
|
436
|
-
lido?: never;
|
|
437
|
-
splStake?: never;
|
|
438
|
-
} & {
|
|
439
|
-
marinade: Record<string, never>;
|
|
440
|
-
}) | ({
|
|
441
|
-
none?: never;
|
|
442
|
-
marinade?: never;
|
|
443
|
-
splStake?: never;
|
|
444
|
-
} & {
|
|
445
|
-
lido: Record<string, never>;
|
|
446
|
-
}) | ({
|
|
447
|
-
none?: never;
|
|
448
|
-
marinade?: never;
|
|
449
|
-
lido?: never;
|
|
450
|
-
} & {
|
|
451
|
-
splStake: Record<string, never>;
|
|
452
|
-
});
|
|
453
|
-
};
|
|
454
|
-
lastAmpUpdatedTimestamp: import("bn.js");
|
|
455
|
-
};
|
|
456
|
-
});
|
|
457
|
-
};
|
|
458
|
-
export declare const fetchPoolAccount: (connection: web3.Connection, accountPubkey: web3.PublicKey) => Promise<{
|
|
459
|
-
lpMint: web3.PublicKey;
|
|
460
|
-
tokenAMint: web3.PublicKey;
|
|
461
|
-
tokenBMint: web3.PublicKey;
|
|
462
|
-
aVault: web3.PublicKey;
|
|
463
|
-
bVault: web3.PublicKey;
|
|
464
|
-
aVaultLp: web3.PublicKey;
|
|
465
|
-
bVaultLp: web3.PublicKey;
|
|
466
|
-
aVaultLpBump: number;
|
|
467
|
-
enabled: boolean;
|
|
468
|
-
protocolTokenAFee: web3.PublicKey;
|
|
469
|
-
protocolTokenBFee: web3.PublicKey;
|
|
470
|
-
feeLastUpdatedAt: import("bn.js");
|
|
471
|
-
padding0: number[];
|
|
472
|
-
fees: {
|
|
473
|
-
tradeFeeNumerator: import("bn.js");
|
|
474
|
-
tradeFeeDenominator: import("bn.js");
|
|
475
|
-
protocolTradeFeeNumerator: import("bn.js");
|
|
476
|
-
protocolTradeFeeDenominator: import("bn.js");
|
|
477
|
-
};
|
|
478
|
-
poolType: ({
|
|
479
|
-
permissionless?: never;
|
|
480
|
-
} & {
|
|
481
|
-
permissioned: Record<string, never>;
|
|
482
|
-
}) | ({
|
|
483
|
-
permissioned?: never;
|
|
484
|
-
} & {
|
|
485
|
-
permissionless: Record<string, never>;
|
|
486
|
-
});
|
|
487
|
-
stake: web3.PublicKey;
|
|
488
|
-
totalLockedLp: import("bn.js");
|
|
489
|
-
bootstrapping: {
|
|
490
|
-
activationPoint: import("bn.js");
|
|
491
|
-
whitelistedVault: web3.PublicKey;
|
|
492
|
-
poolCreator: web3.PublicKey;
|
|
493
|
-
activationType: number;
|
|
494
|
-
};
|
|
495
|
-
partnerInfo: {
|
|
496
|
-
feeNumerator: import("bn.js");
|
|
497
|
-
partnerAuthority: web3.PublicKey;
|
|
498
|
-
pendingFeeA: import("bn.js");
|
|
499
|
-
pendingFeeB: import("bn.js");
|
|
500
|
-
};
|
|
501
|
-
padding: {
|
|
502
|
-
padding0: number[];
|
|
503
|
-
padding1: import("bn.js")[];
|
|
504
|
-
padding2: import("bn.js")[];
|
|
505
|
-
};
|
|
506
|
-
curveType: ({
|
|
507
|
-
stable?: never;
|
|
508
|
-
} & {
|
|
509
|
-
constantProduct: Record<string, never>;
|
|
510
|
-
}) | ({
|
|
511
|
-
constantProduct?: never;
|
|
512
|
-
} & {
|
|
513
|
-
stable: {
|
|
514
|
-
amp: import("bn.js");
|
|
515
|
-
tokenMultiplier: {
|
|
516
|
-
tokenAMultiplier: import("bn.js");
|
|
517
|
-
tokenBMultiplier: import("bn.js");
|
|
518
|
-
precisionFactor: number;
|
|
519
|
-
};
|
|
520
|
-
depeg: {
|
|
521
|
-
baseVirtualPrice: import("bn.js");
|
|
522
|
-
baseCacheUpdated: import("bn.js");
|
|
523
|
-
depegType: ({
|
|
524
|
-
marinade?: never;
|
|
525
|
-
lido?: never;
|
|
526
|
-
splStake?: never;
|
|
527
|
-
} & {
|
|
528
|
-
none: Record<string, never>;
|
|
529
|
-
}) | ({
|
|
530
|
-
none?: never;
|
|
531
|
-
lido?: never;
|
|
532
|
-
splStake?: never;
|
|
533
|
-
} & {
|
|
534
|
-
marinade: Record<string, never>;
|
|
535
|
-
}) | ({
|
|
536
|
-
none?: never;
|
|
537
|
-
marinade?: never;
|
|
538
|
-
splStake?: never;
|
|
539
|
-
} & {
|
|
540
|
-
lido: Record<string, never>;
|
|
541
|
-
}) | ({
|
|
542
|
-
none?: never;
|
|
543
|
-
marinade?: never;
|
|
544
|
-
lido?: never;
|
|
545
|
-
} & {
|
|
546
|
-
splStake: Record<string, never>;
|
|
547
|
-
});
|
|
548
|
-
};
|
|
549
|
-
lastAmpUpdatedTimestamp: import("bn.js");
|
|
550
|
-
};
|
|
551
|
-
});
|
|
552
|
-
}>;
|
|
553
|
-
export declare const decodeVault: (data: Buffer) => {
|
|
554
|
-
enabled: number;
|
|
555
|
-
bumps: {
|
|
556
|
-
vaultBump: number;
|
|
557
|
-
tokenVaultBump: number;
|
|
558
|
-
};
|
|
559
|
-
totalAmount: import("bn.js");
|
|
560
|
-
tokenVault: web3.PublicKey;
|
|
561
|
-
feeVault: web3.PublicKey;
|
|
562
|
-
tokenMint: web3.PublicKey;
|
|
563
|
-
lpMint: web3.PublicKey;
|
|
564
|
-
strategies: web3.PublicKey[];
|
|
565
|
-
base: web3.PublicKey;
|
|
566
|
-
admin: web3.PublicKey;
|
|
567
|
-
operator: web3.PublicKey;
|
|
568
|
-
lockedProfitTracker: {
|
|
569
|
-
lastUpdatedLockedProfit: import("bn.js");
|
|
570
|
-
lastReport: import("bn.js");
|
|
571
|
-
lockedProfitDegradation: import("bn.js");
|
|
572
|
-
};
|
|
573
|
-
};
|
|
574
|
-
export declare const fetchVaultAccount: (connection: web3.Connection, accountPubkey: web3.PublicKey) => Promise<{
|
|
575
|
-
enabled: number;
|
|
576
|
-
bumps: {
|
|
577
|
-
vaultBump: number;
|
|
578
|
-
tokenVaultBump: number;
|
|
579
|
-
};
|
|
580
|
-
totalAmount: import("bn.js");
|
|
581
|
-
tokenVault: web3.PublicKey;
|
|
582
|
-
feeVault: web3.PublicKey;
|
|
583
|
-
tokenMint: web3.PublicKey;
|
|
584
|
-
lpMint: web3.PublicKey;
|
|
585
|
-
strategies: web3.PublicKey[];
|
|
586
|
-
base: web3.PublicKey;
|
|
587
|
-
admin: web3.PublicKey;
|
|
588
|
-
operator: web3.PublicKey;
|
|
589
|
-
lockedProfitTracker: {
|
|
590
|
-
lastUpdatedLockedProfit: import("bn.js");
|
|
591
|
-
lastReport: import("bn.js");
|
|
592
|
-
lockedProfitDegradation: import("bn.js");
|
|
593
|
-
};
|
|
594
|
-
}>;
|
|
363
|
+
export declare const decodePool: (data: Buffer) => any;
|
|
364
|
+
export declare const fetchPoolAccount: (connection: web3.Connection, accountPubkey: web3.PublicKey) => Promise<any>;
|
|
365
|
+
export declare const decodeVault: (data: Buffer) => any;
|
|
366
|
+
export declare const fetchVaultAccount: (connection: web3.Connection, accountPubkey: web3.PublicKey) => Promise<any>;
|