100x-sdk 1.0.1 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "100x-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Solana 100x.fun SDK",
5
5
  "main": "dist/100x-sdk.cjs.js",
6
6
  "module": "dist/100x-sdk.esm.js",
@@ -252,6 +252,40 @@
252
252
  ]
253
253
  }
254
254
  },
255
+ {
256
+ "name": "pool_borrow_token_account",
257
+ "writable": true,
258
+ "pda": {
259
+ "seeds": [
260
+ {
261
+ "kind": "const",
262
+ "value": [
263
+ 112,
264
+ 111,
265
+ 111,
266
+ 108,
267
+ 95,
268
+ 98,
269
+ 111,
270
+ 114,
271
+ 114,
272
+ 111,
273
+ 119,
274
+ 95,
275
+ 116,
276
+ 111,
277
+ 107,
278
+ 101,
279
+ 110
280
+ ]
281
+ },
282
+ {
283
+ "kind": "account",
284
+ "path": "mint_account"
285
+ }
286
+ ]
287
+ }
288
+ },
255
289
  {
256
290
  "name": "pool_sol_account",
257
291
  "writable": true,
@@ -579,6 +613,40 @@
579
613
  ]
580
614
  }
581
615
  },
616
+ {
617
+ "name": "pool_borrow_token_account",
618
+ "writable": true,
619
+ "pda": {
620
+ "seeds": [
621
+ {
622
+ "kind": "const",
623
+ "value": [
624
+ 112,
625
+ 111,
626
+ 111,
627
+ 108,
628
+ 95,
629
+ 98,
630
+ 111,
631
+ 114,
632
+ 114,
633
+ 111,
634
+ 119,
635
+ 95,
636
+ 116,
637
+ 111,
638
+ 107,
639
+ 101,
640
+ 110
641
+ ]
642
+ },
643
+ {
644
+ "kind": "account",
645
+ "path": "mint_account"
646
+ }
647
+ ]
648
+ }
649
+ },
582
650
  {
583
651
  "name": "pool_sol_account",
584
652
  "writable": true,
@@ -791,6 +859,40 @@
791
859
  ]
792
860
  }
793
861
  },
862
+ {
863
+ "name": "pool_borrow_token_account",
864
+ "writable": true,
865
+ "pda": {
866
+ "seeds": [
867
+ {
868
+ "kind": "const",
869
+ "value": [
870
+ 112,
871
+ 111,
872
+ 111,
873
+ 108,
874
+ 95,
875
+ 98,
876
+ 111,
877
+ 114,
878
+ 114,
879
+ 111,
880
+ 119,
881
+ 95,
882
+ 116,
883
+ 111,
884
+ 107,
885
+ 101,
886
+ 110
887
+ ]
888
+ },
889
+ {
890
+ "kind": "account",
891
+ "path": "mint_account"
892
+ }
893
+ ]
894
+ }
895
+ },
794
896
  {
795
897
  "name": "pool_sol_account",
796
898
  "writable": true,
@@ -1229,6 +1331,40 @@
1229
1331
  ]
1230
1332
  }
1231
1333
  },
1334
+ {
1335
+ "name": "pool_borrow_token_account",
1336
+ "writable": true,
1337
+ "pda": {
1338
+ "seeds": [
1339
+ {
1340
+ "kind": "const",
1341
+ "value": [
1342
+ 112,
1343
+ 111,
1344
+ 111,
1345
+ 108,
1346
+ 95,
1347
+ 98,
1348
+ 111,
1349
+ 114,
1350
+ 114,
1351
+ 111,
1352
+ 119,
1353
+ 95,
1354
+ 116,
1355
+ 111,
1356
+ 107,
1357
+ 101,
1358
+ 110
1359
+ ]
1360
+ },
1361
+ {
1362
+ "kind": "account",
1363
+ "path": "mint_account"
1364
+ }
1365
+ ]
1366
+ }
1367
+ },
1232
1368
  {
1233
1369
  "name": "pool_sol_account",
1234
1370
  "writable": true,
@@ -1464,6 +1600,40 @@
1464
1600
  ]
1465
1601
  }
1466
1602
  },
1603
+ {
1604
+ "name": "pool_borrow_token_account",
1605
+ "writable": true,
1606
+ "pda": {
1607
+ "seeds": [
1608
+ {
1609
+ "kind": "const",
1610
+ "value": [
1611
+ 112,
1612
+ 111,
1613
+ 111,
1614
+ 108,
1615
+ 95,
1616
+ 98,
1617
+ 111,
1618
+ 114,
1619
+ 114,
1620
+ 111,
1621
+ 119,
1622
+ 95,
1623
+ 116,
1624
+ 111,
1625
+ 107,
1626
+ 101,
1627
+ 110
1628
+ ]
1629
+ },
1630
+ {
1631
+ "kind": "account",
1632
+ "path": "mint_account"
1633
+ }
1634
+ ]
1635
+ }
1636
+ },
1467
1637
  {
1468
1638
  "name": "pool_sol_account",
1469
1639
  "writable": true,
@@ -1676,6 +1846,40 @@
1676
1846
  ]
1677
1847
  }
1678
1848
  },
1849
+ {
1850
+ "name": "pool_borrow_token_account",
1851
+ "writable": true,
1852
+ "pda": {
1853
+ "seeds": [
1854
+ {
1855
+ "kind": "const",
1856
+ "value": [
1857
+ 112,
1858
+ 111,
1859
+ 111,
1860
+ 108,
1861
+ 95,
1862
+ 98,
1863
+ 111,
1864
+ 114,
1865
+ 114,
1866
+ 111,
1867
+ 119,
1868
+ 95,
1869
+ 116,
1870
+ 111,
1871
+ 107,
1872
+ 101,
1873
+ 110
1874
+ ]
1875
+ },
1876
+ {
1877
+ "kind": "account",
1878
+ "path": "mint_account"
1879
+ }
1880
+ ]
1881
+ }
1882
+ },
1679
1883
  {
1680
1884
  "name": "pool_sol_account",
1681
1885
  "writable": true,
@@ -2003,6 +2207,40 @@
2003
2207
  ]
2004
2208
  }
2005
2209
  },
2210
+ {
2211
+ "name": "pool_borrow_token_account",
2212
+ "writable": true,
2213
+ "pda": {
2214
+ "seeds": [
2215
+ {
2216
+ "kind": "const",
2217
+ "value": [
2218
+ 112,
2219
+ 111,
2220
+ 111,
2221
+ 108,
2222
+ 95,
2223
+ 98,
2224
+ 111,
2225
+ 114,
2226
+ 114,
2227
+ 111,
2228
+ 119,
2229
+ 95,
2230
+ 116,
2231
+ 111,
2232
+ 107,
2233
+ 101,
2234
+ 110
2235
+ ]
2236
+ },
2237
+ {
2238
+ "kind": "account",
2239
+ "path": "mint_account"
2240
+ }
2241
+ ]
2242
+ }
2243
+ },
2006
2244
  {
2007
2245
  "name": "pool_sol_account",
2008
2246
  "writable": true,
@@ -3172,6 +3410,16 @@
3172
3410
  ],
3173
3411
  "type": "u64"
3174
3412
  },
3413
+ {
3414
+ "name": "initial_borrow_token_reserve",
3415
+ "docs": [
3416
+ "Borrow pool initial funding (initial token amount minted into borrow pool at creation)",
3417
+ "Unlike borrow_token_reserve which changes in real time with borrow/repay,",
3418
+ "this field never changes after creation; used by external parties to compute",
3419
+ "\"borrowed out = initial funding - current available reserve\"."
3420
+ ],
3421
+ "type": "u64"
3422
+ },
3175
3423
  {
3176
3424
  "name": "pool_type",
3177
3425
  "docs": [
@@ -3298,6 +3546,18 @@
3298
3546
  "name": "mint_account",
3299
3547
  "type": "pubkey"
3300
3548
  },
3549
+ {
3550
+ "name": "is_buy",
3551
+ "type": "bool"
3552
+ },
3553
+ {
3554
+ "name": "token_amount",
3555
+ "type": "u64"
3556
+ },
3557
+ {
3558
+ "name": "sol_amount",
3559
+ "type": "u64"
3560
+ },
3301
3561
  {
3302
3562
  "name": "order_id",
3303
3563
  "type": "u64"
@@ -3640,6 +3900,10 @@
3640
3900
  "name": "pool_token_account",
3641
3901
  "type": "pubkey"
3642
3902
  },
3903
+ {
3904
+ "name": "pool_borrow_token_account",
3905
+ "type": "pubkey"
3906
+ },
3643
3907
  {
3644
3908
  "name": "pool_sol_account",
3645
3909
  "type": "pubkey"
@@ -3700,6 +3964,10 @@
3700
3964
  "name": "initial_virtual_token",
3701
3965
  "type": "u64"
3702
3966
  },
3967
+ {
3968
+ "name": "initial_borrow_token_reserve",
3969
+ "type": "u64"
3970
+ },
3703
3971
  {
3704
3972
  "name": "pool_type",
3705
3973
  "type": "u8"
@@ -252,6 +252,40 @@
252
252
  ]
253
253
  }
254
254
  },
255
+ {
256
+ "name": "pool_borrow_token_account",
257
+ "writable": true,
258
+ "pda": {
259
+ "seeds": [
260
+ {
261
+ "kind": "const",
262
+ "value": [
263
+ 112,
264
+ 111,
265
+ 111,
266
+ 108,
267
+ 95,
268
+ 98,
269
+ 111,
270
+ 114,
271
+ 114,
272
+ 111,
273
+ 119,
274
+ 95,
275
+ 116,
276
+ 111,
277
+ 107,
278
+ 101,
279
+ 110
280
+ ]
281
+ },
282
+ {
283
+ "kind": "account",
284
+ "path": "mint_account"
285
+ }
286
+ ]
287
+ }
288
+ },
255
289
  {
256
290
  "name": "pool_sol_account",
257
291
  "writable": true,
@@ -579,6 +613,40 @@
579
613
  ]
580
614
  }
581
615
  },
616
+ {
617
+ "name": "pool_borrow_token_account",
618
+ "writable": true,
619
+ "pda": {
620
+ "seeds": [
621
+ {
622
+ "kind": "const",
623
+ "value": [
624
+ 112,
625
+ 111,
626
+ 111,
627
+ 108,
628
+ 95,
629
+ 98,
630
+ 111,
631
+ 114,
632
+ 114,
633
+ 111,
634
+ 119,
635
+ 95,
636
+ 116,
637
+ 111,
638
+ 107,
639
+ 101,
640
+ 110
641
+ ]
642
+ },
643
+ {
644
+ "kind": "account",
645
+ "path": "mint_account"
646
+ }
647
+ ]
648
+ }
649
+ },
582
650
  {
583
651
  "name": "pool_sol_account",
584
652
  "writable": true,
@@ -791,6 +859,40 @@
791
859
  ]
792
860
  }
793
861
  },
862
+ {
863
+ "name": "pool_borrow_token_account",
864
+ "writable": true,
865
+ "pda": {
866
+ "seeds": [
867
+ {
868
+ "kind": "const",
869
+ "value": [
870
+ 112,
871
+ 111,
872
+ 111,
873
+ 108,
874
+ 95,
875
+ 98,
876
+ 111,
877
+ 114,
878
+ 114,
879
+ 111,
880
+ 119,
881
+ 95,
882
+ 116,
883
+ 111,
884
+ 107,
885
+ 101,
886
+ 110
887
+ ]
888
+ },
889
+ {
890
+ "kind": "account",
891
+ "path": "mint_account"
892
+ }
893
+ ]
894
+ }
895
+ },
794
896
  {
795
897
  "name": "pool_sol_account",
796
898
  "writable": true,
@@ -1229,6 +1331,40 @@
1229
1331
  ]
1230
1332
  }
1231
1333
  },
1334
+ {
1335
+ "name": "pool_borrow_token_account",
1336
+ "writable": true,
1337
+ "pda": {
1338
+ "seeds": [
1339
+ {
1340
+ "kind": "const",
1341
+ "value": [
1342
+ 112,
1343
+ 111,
1344
+ 111,
1345
+ 108,
1346
+ 95,
1347
+ 98,
1348
+ 111,
1349
+ 114,
1350
+ 114,
1351
+ 111,
1352
+ 119,
1353
+ 95,
1354
+ 116,
1355
+ 111,
1356
+ 107,
1357
+ 101,
1358
+ 110
1359
+ ]
1360
+ },
1361
+ {
1362
+ "kind": "account",
1363
+ "path": "mint_account"
1364
+ }
1365
+ ]
1366
+ }
1367
+ },
1232
1368
  {
1233
1369
  "name": "pool_sol_account",
1234
1370
  "writable": true,
@@ -1464,6 +1600,40 @@
1464
1600
  ]
1465
1601
  }
1466
1602
  },
1603
+ {
1604
+ "name": "pool_borrow_token_account",
1605
+ "writable": true,
1606
+ "pda": {
1607
+ "seeds": [
1608
+ {
1609
+ "kind": "const",
1610
+ "value": [
1611
+ 112,
1612
+ 111,
1613
+ 111,
1614
+ 108,
1615
+ 95,
1616
+ 98,
1617
+ 111,
1618
+ 114,
1619
+ 114,
1620
+ 111,
1621
+ 119,
1622
+ 95,
1623
+ 116,
1624
+ 111,
1625
+ 107,
1626
+ 101,
1627
+ 110
1628
+ ]
1629
+ },
1630
+ {
1631
+ "kind": "account",
1632
+ "path": "mint_account"
1633
+ }
1634
+ ]
1635
+ }
1636
+ },
1467
1637
  {
1468
1638
  "name": "pool_sol_account",
1469
1639
  "writable": true,
@@ -1676,6 +1846,40 @@
1676
1846
  ]
1677
1847
  }
1678
1848
  },
1849
+ {
1850
+ "name": "pool_borrow_token_account",
1851
+ "writable": true,
1852
+ "pda": {
1853
+ "seeds": [
1854
+ {
1855
+ "kind": "const",
1856
+ "value": [
1857
+ 112,
1858
+ 111,
1859
+ 111,
1860
+ 108,
1861
+ 95,
1862
+ 98,
1863
+ 111,
1864
+ 114,
1865
+ 114,
1866
+ 111,
1867
+ 119,
1868
+ 95,
1869
+ 116,
1870
+ 111,
1871
+ 107,
1872
+ 101,
1873
+ 110
1874
+ ]
1875
+ },
1876
+ {
1877
+ "kind": "account",
1878
+ "path": "mint_account"
1879
+ }
1880
+ ]
1881
+ }
1882
+ },
1679
1883
  {
1680
1884
  "name": "pool_sol_account",
1681
1885
  "writable": true,
@@ -2003,6 +2207,40 @@
2003
2207
  ]
2004
2208
  }
2005
2209
  },
2210
+ {
2211
+ "name": "pool_borrow_token_account",
2212
+ "writable": true,
2213
+ "pda": {
2214
+ "seeds": [
2215
+ {
2216
+ "kind": "const",
2217
+ "value": [
2218
+ 112,
2219
+ 111,
2220
+ 111,
2221
+ 108,
2222
+ 95,
2223
+ 98,
2224
+ 111,
2225
+ 114,
2226
+ 114,
2227
+ 111,
2228
+ 119,
2229
+ 95,
2230
+ 116,
2231
+ 111,
2232
+ 107,
2233
+ 101,
2234
+ 110
2235
+ ]
2236
+ },
2237
+ {
2238
+ "kind": "account",
2239
+ "path": "mint_account"
2240
+ }
2241
+ ]
2242
+ }
2243
+ },
2006
2244
  {
2007
2245
  "name": "pool_sol_account",
2008
2246
  "writable": true,
@@ -3172,6 +3410,16 @@
3172
3410
  ],
3173
3411
  "type": "u64"
3174
3412
  },
3413
+ {
3414
+ "name": "initial_borrow_token_reserve",
3415
+ "docs": [
3416
+ "Borrow pool initial funding (initial token amount minted into borrow pool at creation)",
3417
+ "Unlike borrow_token_reserve which changes in real time with borrow/repay,",
3418
+ "this field never changes after creation; used by external parties to compute",
3419
+ "\"borrowed out = initial funding - current available reserve\"."
3420
+ ],
3421
+ "type": "u64"
3422
+ },
3175
3423
  {
3176
3424
  "name": "pool_type",
3177
3425
  "docs": [
@@ -3298,6 +3546,18 @@
3298
3546
  "name": "mint_account",
3299
3547
  "type": "pubkey"
3300
3548
  },
3549
+ {
3550
+ "name": "is_buy",
3551
+ "type": "bool"
3552
+ },
3553
+ {
3554
+ "name": "token_amount",
3555
+ "type": "u64"
3556
+ },
3557
+ {
3558
+ "name": "sol_amount",
3559
+ "type": "u64"
3560
+ },
3301
3561
  {
3302
3562
  "name": "order_id",
3303
3563
  "type": "u64"
@@ -3640,6 +3900,10 @@
3640
3900
  "name": "pool_token_account",
3641
3901
  "type": "pubkey"
3642
3902
  },
3903
+ {
3904
+ "name": "pool_borrow_token_account",
3905
+ "type": "pubkey"
3906
+ },
3643
3907
  {
3644
3908
  "name": "pool_sol_account",
3645
3909
  "type": "pubkey"
@@ -3700,6 +3964,10 @@
3700
3964
  "name": "initial_virtual_token",
3701
3965
  "type": "u64"
3702
3966
  },
3967
+ {
3968
+ "name": "initial_borrow_token_reserve",
3969
+ "type": "u64"
3970
+ },
3703
3971
  {
3704
3972
  "name": "pool_type",
3705
3973
  "type": "u8"