wasabi-solana-ts 1.2.8 → 1.2.10-regular-interest

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wasabi-solana-ts",
3
- "version": "1.2.8",
3
+ "version": "1.2.10-regular-interest",
4
4
  "description": "Typescript library for the Wasabi program",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -7693,16 +7693,16 @@
7693
7693
  ]
7694
7694
  },
7695
7695
  {
7696
- "name": "record_interest_for_long_position",
7696
+ "name": "record_long_interest",
7697
7697
  "discriminator": [
7698
- 46,
7699
- 3,
7700
- 12,
7701
- 151,
7702
- 56,
7703
- 105,
7704
- 134,
7705
- 60
7698
+ 101,
7699
+ 57,
7700
+ 251,
7701
+ 97,
7702
+ 19,
7703
+ 118,
7704
+ 203,
7705
+ 222
7706
7706
  ],
7707
7707
  "accounts": [
7708
7708
  {
@@ -7716,25 +7716,16 @@
7716
7716
  "name": "permission"
7717
7717
  },
7718
7718
  {
7719
- "name": "lp_vault",
7720
- "writable": true,
7721
- "relations": [
7722
- "position"
7723
- ]
7724
- },
7725
- {
7726
- "name": "vault",
7727
- "writable": true,
7728
- "relations": [
7729
- "lp_vault"
7730
- ]
7719
+ "name": "pool",
7720
+ "writable": true
7731
7721
  },
7732
7722
  {
7733
7723
  "name": "position",
7734
7724
  "writable": true
7735
7725
  },
7736
7726
  {
7737
- "name": "currency",
7727
+ "name": "lp_vault",
7728
+ "writable": true,
7738
7729
  "relations": [
7739
7730
  "position"
7740
7731
  ]
@@ -7792,9 +7783,6 @@
7792
7783
  }
7793
7784
  ]
7794
7785
  }
7795
- },
7796
- {
7797
- "name": "token_program"
7798
7786
  }
7799
7787
  ],
7800
7788
  "args": [
@@ -7805,16 +7793,16 @@
7805
7793
  ]
7806
7794
  },
7807
7795
  {
7808
- "name": "record_interest_for_short_position",
7796
+ "name": "record_short_interest",
7809
7797
  "discriminator": [
7810
- 0,
7811
- 204,
7812
- 6,
7813
- 181,
7798
+ 54,
7799
+ 196,
7800
+ 121,
7801
+ 111,
7814
7802
  120,
7815
- 76,
7816
- 118,
7817
- 43
7803
+ 233,
7804
+ 41,
7805
+ 104
7818
7806
  ],
7819
7807
  "accounts": [
7820
7808
  {
@@ -7828,26 +7816,19 @@
7828
7816
  "name": "permission"
7829
7817
  },
7830
7818
  {
7831
- "name": "lp_vault",
7832
- "writable": true,
7833
- "relations": [
7834
- "position"
7835
- ]
7836
- },
7837
- {
7838
- "name": "vault",
7839
- "writable": true,
7840
- "relations": [
7841
- "lp_vault"
7842
- ]
7819
+ "name": "pool",
7820
+ "writable": true
7843
7821
  },
7844
7822
  {
7845
7823
  "name": "position",
7846
7824
  "writable": true
7847
7825
  },
7848
7826
  {
7849
- "name": "pool",
7850
- "writable": true
7827
+ "name": "lp_vault",
7828
+ "writable": true,
7829
+ "relations": [
7830
+ "position"
7831
+ ]
7851
7832
  },
7852
7833
  {
7853
7834
  "name": "currency_vault",
@@ -7860,20 +7841,22 @@
7860
7841
  "name": "collateral_vault",
7861
7842
  "writable": true,
7862
7843
  "relations": [
7863
- "pool"
7844
+ "pool",
7845
+ "position"
7864
7846
  ]
7865
7847
  },
7866
7848
  {
7867
- "name": "currency",
7849
+ "name": "vault",
7850
+ "writable": true,
7868
7851
  "relations": [
7869
- "position"
7852
+ "lp_vault"
7870
7853
  ]
7871
7854
  },
7872
7855
  {
7873
- "name": "collateral",
7874
- "relations": [
7875
- "position"
7876
- ]
7856
+ "name": "currency"
7857
+ },
7858
+ {
7859
+ "name": "collateral"
7877
7860
  },
7878
7861
  {
7879
7862
  "name": "debt_controller",
@@ -12177,11 +12160,6 @@
12177
12160
  },
12178
12161
  {
12179
12162
  "code": 6041,
12180
- "name": "InvalidInterestAmount",
12181
- "msg": "Invalid interest amount"
12182
- },
12183
- {
12184
- "code": 6042,
12185
12163
  "name": "MaxInterestExceeded",
12186
12164
  "msg": "Interest payment exceeds maximum interest"
12187
12165
  }
@@ -12601,6 +12579,10 @@
12601
12579
  "name": "id",
12602
12580
  "type": "pubkey"
12603
12581
  },
12582
+ {
12583
+ "name": "trader",
12584
+ "type": "pubkey"
12585
+ },
12604
12586
  {
12605
12587
  "name": "interest_paid",
12606
12588
  "type": "u64"
@@ -12616,6 +12598,10 @@
12616
12598
  {
12617
12599
  "name": "down_payment_reduced",
12618
12600
  "type": "u64"
12601
+ },
12602
+ {
12603
+ "name": "is_long",
12604
+ "type": "bool"
12619
12605
  }
12620
12606
  ]
12621
12607
  }