@pyron-finance/pyron-client 2.8.2 → 2.9.0

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.
@@ -16,7 +16,7 @@ type Lendr = {
16
16
  address: "";
17
17
  metadata: {
18
18
  name: "lendr";
19
- version: "0.1.6";
19
+ version: "0.1.7";
20
20
  spec: "0.1.0";
21
21
  description: "Borrow Lending Prime Broker";
22
22
  };
@@ -2620,6 +2620,187 @@ type Lendr = {
2620
2620
  }
2621
2621
  ];
2622
2622
  },
2623
+ {
2624
+ name: "lendingPoolAddBankPermissionlessFogoStakePool";
2625
+ docs: [
2626
+ "Permissionlessly add a bank for Fogo Stake Pool LST tokens.",
2627
+ "Similar to lending_pool_add_bank_permissionless but for fogo-stake-pool program LSTs."
2628
+ ];
2629
+ discriminator: [70, 105, 223, 175, 19, 138, 253, 208];
2630
+ accounts: [
2631
+ {
2632
+ name: "lendrGroup";
2633
+ writable: true;
2634
+ relations: ["stakedSettings"];
2635
+ },
2636
+ {
2637
+ name: "stakedSettings";
2638
+ },
2639
+ {
2640
+ name: "feePayer";
2641
+ writable: true;
2642
+ signer: true;
2643
+ },
2644
+ {
2645
+ name: "feeState";
2646
+ pda: {
2647
+ seeds: [
2648
+ {
2649
+ kind: "const";
2650
+ value: [102, 101, 101, 115, 116, 97, 116, 101];
2651
+ }
2652
+ ];
2653
+ };
2654
+ },
2655
+ {
2656
+ name: "globalFeeWallet";
2657
+ writable: true;
2658
+ relations: ["feeState"];
2659
+ },
2660
+ {
2661
+ name: "bankMint";
2662
+ docs: [
2663
+ "Mint of the Fogo Stake Pool LST",
2664
+ "NOTE: Unlike single-pool, this mint is NOT a PDA. Validation happens by",
2665
+ "checking that stake_pool.pool_mint == bank_mint.key()"
2666
+ ];
2667
+ },
2668
+ {
2669
+ name: "stakePool";
2670
+ docs: [
2671
+ "1. Owner must be FOGO_STAKE_POOL_ID",
2672
+ "2. Deserialized state.pool_mint must match bank_mint",
2673
+ "3. Account type must be StakePool (value 1, not 0=Uninitialized or 2=ValidatorList)"
2674
+ ];
2675
+ },
2676
+ {
2677
+ name: "bank";
2678
+ writable: true;
2679
+ pda: {
2680
+ seeds: [
2681
+ {
2682
+ kind: "account";
2683
+ path: "lendrGroup";
2684
+ },
2685
+ {
2686
+ kind: "account";
2687
+ path: "bankMint";
2688
+ },
2689
+ {
2690
+ kind: "arg";
2691
+ path: "bankSeed";
2692
+ }
2693
+ ];
2694
+ };
2695
+ },
2696
+ {
2697
+ name: "liquidityVaultAuthority";
2698
+ pda: {
2699
+ seeds: [
2700
+ {
2701
+ kind: "const";
2702
+ value: [108, 105, 113, 117, 105, 100, 105, 116, 121, 95, 118, 97, 117, 108, 116, 95, 97, 117, 116, 104];
2703
+ },
2704
+ {
2705
+ kind: "account";
2706
+ path: "bank";
2707
+ }
2708
+ ];
2709
+ };
2710
+ },
2711
+ {
2712
+ name: "liquidityVault";
2713
+ writable: true;
2714
+ pda: {
2715
+ seeds: [
2716
+ {
2717
+ kind: "const";
2718
+ value: [108, 105, 113, 117, 105, 100, 105, 116, 121, 95, 118, 97, 117, 108, 116];
2719
+ },
2720
+ {
2721
+ kind: "account";
2722
+ path: "bank";
2723
+ }
2724
+ ];
2725
+ };
2726
+ },
2727
+ {
2728
+ name: "insuranceVaultAuthority";
2729
+ pda: {
2730
+ seeds: [
2731
+ {
2732
+ kind: "const";
2733
+ value: [105, 110, 115, 117, 114, 97, 110, 99, 101, 95, 118, 97, 117, 108, 116, 95, 97, 117, 116, 104];
2734
+ },
2735
+ {
2736
+ kind: "account";
2737
+ path: "bank";
2738
+ }
2739
+ ];
2740
+ };
2741
+ },
2742
+ {
2743
+ name: "insuranceVault";
2744
+ writable: true;
2745
+ pda: {
2746
+ seeds: [
2747
+ {
2748
+ kind: "const";
2749
+ value: [105, 110, 115, 117, 114, 97, 110, 99, 101, 95, 118, 97, 117, 108, 116];
2750
+ },
2751
+ {
2752
+ kind: "account";
2753
+ path: "bank";
2754
+ }
2755
+ ];
2756
+ };
2757
+ },
2758
+ {
2759
+ name: "feeVaultAuthority";
2760
+ pda: {
2761
+ seeds: [
2762
+ {
2763
+ kind: "const";
2764
+ value: [102, 101, 101, 95, 118, 97, 117, 108, 116, 95, 97, 117, 116, 104];
2765
+ },
2766
+ {
2767
+ kind: "account";
2768
+ path: "bank";
2769
+ }
2770
+ ];
2771
+ };
2772
+ },
2773
+ {
2774
+ name: "feeVault";
2775
+ writable: true;
2776
+ pda: {
2777
+ seeds: [
2778
+ {
2779
+ kind: "const";
2780
+ value: [102, 101, 101, 95, 118, 97, 117, 108, 116];
2781
+ },
2782
+ {
2783
+ kind: "account";
2784
+ path: "bank";
2785
+ }
2786
+ ];
2787
+ };
2788
+ },
2789
+ {
2790
+ name: "tokenProgram";
2791
+ },
2792
+ {
2793
+ name: "systemProgram";
2794
+ address: "11111111111111111111111111111111";
2795
+ }
2796
+ ];
2797
+ args: [
2798
+ {
2799
+ name: "bankSeed";
2800
+ type: "u64";
2801
+ }
2802
+ ];
2803
+ },
2623
2804
  {
2624
2805
  name: "lendingPoolAddBankWithSeed";
2625
2806
  docs: [
@@ -8818,6 +8999,9 @@ type Lendr = {
8818
8999
  },
8819
9000
  {
8820
9001
  name: "fixed";
9002
+ },
9003
+ {
9004
+ name: "fogoStakePoolWithPythPush";
8821
9005
  }
8822
9006
  ];
8823
9007
  };
@@ -16,7 +16,7 @@ type Lendr = {
16
16
  address: "";
17
17
  metadata: {
18
18
  name: "lendr";
19
- version: "0.1.6";
19
+ version: "0.1.7";
20
20
  spec: "0.1.0";
21
21
  description: "Borrow Lending Prime Broker";
22
22
  };
@@ -2620,6 +2620,187 @@ type Lendr = {
2620
2620
  }
2621
2621
  ];
2622
2622
  },
2623
+ {
2624
+ name: "lendingPoolAddBankPermissionlessFogoStakePool";
2625
+ docs: [
2626
+ "Permissionlessly add a bank for Fogo Stake Pool LST tokens.",
2627
+ "Similar to lending_pool_add_bank_permissionless but for fogo-stake-pool program LSTs."
2628
+ ];
2629
+ discriminator: [70, 105, 223, 175, 19, 138, 253, 208];
2630
+ accounts: [
2631
+ {
2632
+ name: "lendrGroup";
2633
+ writable: true;
2634
+ relations: ["stakedSettings"];
2635
+ },
2636
+ {
2637
+ name: "stakedSettings";
2638
+ },
2639
+ {
2640
+ name: "feePayer";
2641
+ writable: true;
2642
+ signer: true;
2643
+ },
2644
+ {
2645
+ name: "feeState";
2646
+ pda: {
2647
+ seeds: [
2648
+ {
2649
+ kind: "const";
2650
+ value: [102, 101, 101, 115, 116, 97, 116, 101];
2651
+ }
2652
+ ];
2653
+ };
2654
+ },
2655
+ {
2656
+ name: "globalFeeWallet";
2657
+ writable: true;
2658
+ relations: ["feeState"];
2659
+ },
2660
+ {
2661
+ name: "bankMint";
2662
+ docs: [
2663
+ "Mint of the Fogo Stake Pool LST",
2664
+ "NOTE: Unlike single-pool, this mint is NOT a PDA. Validation happens by",
2665
+ "checking that stake_pool.pool_mint == bank_mint.key()"
2666
+ ];
2667
+ },
2668
+ {
2669
+ name: "stakePool";
2670
+ docs: [
2671
+ "1. Owner must be FOGO_STAKE_POOL_ID",
2672
+ "2. Deserialized state.pool_mint must match bank_mint",
2673
+ "3. Account type must be StakePool (value 1, not 0=Uninitialized or 2=ValidatorList)"
2674
+ ];
2675
+ },
2676
+ {
2677
+ name: "bank";
2678
+ writable: true;
2679
+ pda: {
2680
+ seeds: [
2681
+ {
2682
+ kind: "account";
2683
+ path: "lendrGroup";
2684
+ },
2685
+ {
2686
+ kind: "account";
2687
+ path: "bankMint";
2688
+ },
2689
+ {
2690
+ kind: "arg";
2691
+ path: "bankSeed";
2692
+ }
2693
+ ];
2694
+ };
2695
+ },
2696
+ {
2697
+ name: "liquidityVaultAuthority";
2698
+ pda: {
2699
+ seeds: [
2700
+ {
2701
+ kind: "const";
2702
+ value: [108, 105, 113, 117, 105, 100, 105, 116, 121, 95, 118, 97, 117, 108, 116, 95, 97, 117, 116, 104];
2703
+ },
2704
+ {
2705
+ kind: "account";
2706
+ path: "bank";
2707
+ }
2708
+ ];
2709
+ };
2710
+ },
2711
+ {
2712
+ name: "liquidityVault";
2713
+ writable: true;
2714
+ pda: {
2715
+ seeds: [
2716
+ {
2717
+ kind: "const";
2718
+ value: [108, 105, 113, 117, 105, 100, 105, 116, 121, 95, 118, 97, 117, 108, 116];
2719
+ },
2720
+ {
2721
+ kind: "account";
2722
+ path: "bank";
2723
+ }
2724
+ ];
2725
+ };
2726
+ },
2727
+ {
2728
+ name: "insuranceVaultAuthority";
2729
+ pda: {
2730
+ seeds: [
2731
+ {
2732
+ kind: "const";
2733
+ value: [105, 110, 115, 117, 114, 97, 110, 99, 101, 95, 118, 97, 117, 108, 116, 95, 97, 117, 116, 104];
2734
+ },
2735
+ {
2736
+ kind: "account";
2737
+ path: "bank";
2738
+ }
2739
+ ];
2740
+ };
2741
+ },
2742
+ {
2743
+ name: "insuranceVault";
2744
+ writable: true;
2745
+ pda: {
2746
+ seeds: [
2747
+ {
2748
+ kind: "const";
2749
+ value: [105, 110, 115, 117, 114, 97, 110, 99, 101, 95, 118, 97, 117, 108, 116];
2750
+ },
2751
+ {
2752
+ kind: "account";
2753
+ path: "bank";
2754
+ }
2755
+ ];
2756
+ };
2757
+ },
2758
+ {
2759
+ name: "feeVaultAuthority";
2760
+ pda: {
2761
+ seeds: [
2762
+ {
2763
+ kind: "const";
2764
+ value: [102, 101, 101, 95, 118, 97, 117, 108, 116, 95, 97, 117, 116, 104];
2765
+ },
2766
+ {
2767
+ kind: "account";
2768
+ path: "bank";
2769
+ }
2770
+ ];
2771
+ };
2772
+ },
2773
+ {
2774
+ name: "feeVault";
2775
+ writable: true;
2776
+ pda: {
2777
+ seeds: [
2778
+ {
2779
+ kind: "const";
2780
+ value: [102, 101, 101, 95, 118, 97, 117, 108, 116];
2781
+ },
2782
+ {
2783
+ kind: "account";
2784
+ path: "bank";
2785
+ }
2786
+ ];
2787
+ };
2788
+ },
2789
+ {
2790
+ name: "tokenProgram";
2791
+ },
2792
+ {
2793
+ name: "systemProgram";
2794
+ address: "11111111111111111111111111111111";
2795
+ }
2796
+ ];
2797
+ args: [
2798
+ {
2799
+ name: "bankSeed";
2800
+ type: "u64";
2801
+ }
2802
+ ];
2803
+ },
2623
2804
  {
2624
2805
  name: "lendingPoolAddBankWithSeed";
2625
2806
  docs: [
@@ -8818,6 +8999,9 @@ type Lendr = {
8818
8999
  },
8819
9000
  {
8820
9001
  name: "fixed";
9002
+ },
9003
+ {
9004
+ name: "fogoStakePoolWithPythPush";
8821
9005
  }
8822
9006
  ];
8823
9007
  };
@@ -495,6 +495,7 @@ var SYSVAR_RENT_ID = new import_web34.PublicKey("SysvarRent111111111111111111111
495
495
  var SYSVAR_CLOCK_ID = new import_web34.PublicKey("SysvarC1ock11111111111111111111111111111111");
496
496
  var SYSVAR_STAKE_HISTORY_ID = new import_web34.PublicKey("SysvarStakeHistory1111111111111111111111111");
497
497
  var STAKE_CONFIG_ID = new import_web34.PublicKey("StakeConfig11111111111111111111111111111111");
498
+ var FOGO_STAKE_POOL_PROGRAM_ID = new import_web34.PublicKey("SP1s4uFeTAX9jsXXmwyDs1gxYYf7cdDZ8qHUHVxE1yr");
498
499
 
499
500
  // src/constants/tokens.ts
500
501
  var import_web35 = require("@solana/web3.js");
@@ -1,6 +1,6 @@
1
1
  import { Keypair, Transaction, VersionedTransaction, PublicKey, Connection, AccountInfo, AddressLookupTableAccount, TransactionMessage, TransactionInstruction } from '@solana/web3.js';
2
- import { j as Wallet, e as ExtendedTransactionProperties, S as SolanaTransaction, W as WrappedI80F48, A as Amount } from '../bank-metadata-C06TNYXi.cjs';
3
- export { a as BankExtendedMetadata, m as BankExtendedMetadataMap, X as BankExtendedMetadataOverride, h as BankMetadata, b as BankMetadataMap, l as BanksExtendedMetadataOverrideMap, E as ExtendedTransaction, f as ExtendedV0Transaction, I as InstructionsWrapper, D as MaxCapType, G as PriotitizationFeeLevels, P as Program, R as ProgramReadonly, z as TransactionArenaKeyMap, g as TransactionBroadcastType, y as TransactionConfigMap, d as TransactionOptions, C as TransactionPriorityType, F as TransactionSettings, x as TransactionType, U as WalletToken, V as bankExtendedMetadataOverrideSchema, Z as fetchBanksExtendedMetadata, H as getCalculatedPrioritizationFeeByPercentile, K as getMaxPrioritizationFeeByPercentile, N as getMeanPrioritizationFeeByPercentile, O as getMedianPrioritizationFeeByPercentile, J as getMinPrioritizationFeeByPercentile, Q as getRecentPrioritizationFeesByPercentile, Y as parseBanksMetadataOverride } from '../bank-metadata-C06TNYXi.cjs';
2
+ import { j as Wallet, e as ExtendedTransactionProperties, S as SolanaTransaction, W as WrappedI80F48, A as Amount } from '../bank-metadata-DXKlJh78.cjs';
3
+ export { a as BankExtendedMetadata, m as BankExtendedMetadataMap, X as BankExtendedMetadataOverride, h as BankMetadata, b as BankMetadataMap, l as BanksExtendedMetadataOverrideMap, E as ExtendedTransaction, f as ExtendedV0Transaction, I as InstructionsWrapper, D as MaxCapType, G as PriotitizationFeeLevels, P as Program, R as ProgramReadonly, z as TransactionArenaKeyMap, g as TransactionBroadcastType, y as TransactionConfigMap, d as TransactionOptions, C as TransactionPriorityType, F as TransactionSettings, x as TransactionType, U as WalletToken, V as bankExtendedMetadataOverrideSchema, Z as fetchBanksExtendedMetadata, H as getCalculatedPrioritizationFeeByPercentile, K as getMaxPrioritizationFeeByPercentile, N as getMeanPrioritizationFeeByPercentile, O as getMedianPrioritizationFeeByPercentile, J as getMinPrioritizationFeeByPercentile, Q as getRecentPrioritizationFeesByPercentile, Y as parseBanksMetadataOverride } from '../bank-metadata-DXKlJh78.cjs';
4
4
  import { Idl, Instruction, Address } from '@coral-xyz/anchor';
5
5
  import BigNumber from 'bignumber.js';
6
6
  import BN from 'bn.js';
@@ -1,6 +1,6 @@
1
1
  import { Keypair, Transaction, VersionedTransaction, PublicKey, Connection, AccountInfo, AddressLookupTableAccount, TransactionMessage, TransactionInstruction } from '@solana/web3.js';
2
- import { j as Wallet, e as ExtendedTransactionProperties, S as SolanaTransaction, W as WrappedI80F48, A as Amount } from '../bank-metadata-C06TNYXi.js';
3
- export { a as BankExtendedMetadata, m as BankExtendedMetadataMap, X as BankExtendedMetadataOverride, h as BankMetadata, b as BankMetadataMap, l as BanksExtendedMetadataOverrideMap, E as ExtendedTransaction, f as ExtendedV0Transaction, I as InstructionsWrapper, D as MaxCapType, G as PriotitizationFeeLevels, P as Program, R as ProgramReadonly, z as TransactionArenaKeyMap, g as TransactionBroadcastType, y as TransactionConfigMap, d as TransactionOptions, C as TransactionPriorityType, F as TransactionSettings, x as TransactionType, U as WalletToken, V as bankExtendedMetadataOverrideSchema, Z as fetchBanksExtendedMetadata, H as getCalculatedPrioritizationFeeByPercentile, K as getMaxPrioritizationFeeByPercentile, N as getMeanPrioritizationFeeByPercentile, O as getMedianPrioritizationFeeByPercentile, J as getMinPrioritizationFeeByPercentile, Q as getRecentPrioritizationFeesByPercentile, Y as parseBanksMetadataOverride } from '../bank-metadata-C06TNYXi.js';
2
+ import { j as Wallet, e as ExtendedTransactionProperties, S as SolanaTransaction, W as WrappedI80F48, A as Amount } from '../bank-metadata-DXKlJh78.js';
3
+ export { a as BankExtendedMetadata, m as BankExtendedMetadataMap, X as BankExtendedMetadataOverride, h as BankMetadata, b as BankMetadataMap, l as BanksExtendedMetadataOverrideMap, E as ExtendedTransaction, f as ExtendedV0Transaction, I as InstructionsWrapper, D as MaxCapType, G as PriotitizationFeeLevels, P as Program, R as ProgramReadonly, z as TransactionArenaKeyMap, g as TransactionBroadcastType, y as TransactionConfigMap, d as TransactionOptions, C as TransactionPriorityType, F as TransactionSettings, x as TransactionType, U as WalletToken, V as bankExtendedMetadataOverrideSchema, Z as fetchBanksExtendedMetadata, H as getCalculatedPrioritizationFeeByPercentile, K as getMaxPrioritizationFeeByPercentile, N as getMeanPrioritizationFeeByPercentile, O as getMedianPrioritizationFeeByPercentile, J as getMinPrioritizationFeeByPercentile, Q as getRecentPrioritizationFeesByPercentile, Y as parseBanksMetadataOverride } from '../bank-metadata-DXKlJh78.js';
4
4
  import { Idl, Instruction, Address } from '@coral-xyz/anchor';
5
5
  import BigNumber from 'bignumber.js';
6
6
  import BN from 'bn.js';
@@ -401,6 +401,7 @@ var SYSVAR_RENT_ID = new PublicKey4("SysvarRent111111111111111111111111111111111
401
401
  var SYSVAR_CLOCK_ID = new PublicKey4("SysvarC1ock11111111111111111111111111111111");
402
402
  var SYSVAR_STAKE_HISTORY_ID = new PublicKey4("SysvarStakeHistory1111111111111111111111111");
403
403
  var STAKE_CONFIG_ID = new PublicKey4("StakeConfig11111111111111111111111111111111");
404
+ var FOGO_STAKE_POOL_PROGRAM_ID = new PublicKey4("SP1s4uFeTAX9jsXXmwyDs1gxYYf7cdDZ8qHUHVxE1yr");
404
405
 
405
406
  // src/constants/tokens.ts
406
407
  import { PublicKey as PublicKey5 } from "@solana/web3.js";