@triadxyz/triad-protocol 2.5.9-beta → 2.6.1-beta

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/dist/index.js CHANGED
@@ -633,7 +633,8 @@ class TriadProtocolClient {
633
633
  ixs.push(yield this.program.methods
634
634
  .createUserTrade()
635
635
  .accounts({
636
- signer: this.program.provider.publicKey
636
+ signer: this.program.provider.publicKey,
637
+ refer: referPDA
637
638
  })
638
639
  .instruction());
639
640
  return {
@@ -1091,34 +1091,6 @@
1091
1091
  "name": "market_ata",
1092
1092
  "writable": true
1093
1093
  },
1094
- {
1095
- "name": "squads_ata",
1096
- "writable": true,
1097
- "pda": {
1098
- "seeds": [
1099
- {
1100
- "kind": "account",
1101
- "path": "squads"
1102
- },
1103
- {
1104
- "kind": "account",
1105
- "path": "token_program"
1106
- },
1107
- {
1108
- "kind": "account",
1109
- "path": "mint"
1110
- }
1111
- ],
1112
- "program": {
1113
- "kind": "const",
1114
- "value": [
1115
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
1116
- 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
1117
- 219, 233, 248, 89
1118
- ]
1119
- }
1120
- }
1121
- },
1122
1094
  {
1123
1095
  "name": "token_program"
1124
1096
  },
@@ -1216,34 +1188,6 @@
1216
1188
  "name": "market_ata",
1217
1189
  "writable": true
1218
1190
  },
1219
- {
1220
- "name": "squads_ata",
1221
- "writable": true,
1222
- "pda": {
1223
- "seeds": [
1224
- {
1225
- "kind": "account",
1226
- "path": "squads"
1227
- },
1228
- {
1229
- "kind": "account",
1230
- "path": "token_program"
1231
- },
1232
- {
1233
- "kind": "account",
1234
- "path": "mint"
1235
- }
1236
- ],
1237
- "program": {
1238
- "kind": "const",
1239
- "value": [
1240
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
1241
- 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
1242
- 219, 233, 248, 89
1243
- ]
1244
- }
1245
- }
1246
- },
1247
1191
  {
1248
1192
  "name": "token_program"
1249
1193
  },
@@ -1457,63 +1457,6 @@ export type TriadProtocol = {
1457
1457
  name: 'marketAta';
1458
1458
  writable: true;
1459
1459
  },
1460
- {
1461
- name: 'squadsAta';
1462
- writable: true;
1463
- pda: {
1464
- seeds: [
1465
- {
1466
- kind: 'account';
1467
- path: 'squads';
1468
- },
1469
- {
1470
- kind: 'account';
1471
- path: 'tokenProgram';
1472
- },
1473
- {
1474
- kind: 'account';
1475
- path: 'mint';
1476
- }
1477
- ];
1478
- program: {
1479
- kind: 'const';
1480
- value: [
1481
- 140,
1482
- 151,
1483
- 37,
1484
- 143,
1485
- 78,
1486
- 36,
1487
- 137,
1488
- 241,
1489
- 187,
1490
- 61,
1491
- 16,
1492
- 41,
1493
- 20,
1494
- 142,
1495
- 13,
1496
- 131,
1497
- 11,
1498
- 90,
1499
- 19,
1500
- 153,
1501
- 218,
1502
- 255,
1503
- 16,
1504
- 132,
1505
- 4,
1506
- 142,
1507
- 123,
1508
- 216,
1509
- 219,
1510
- 233,
1511
- 248,
1512
- 89
1513
- ];
1514
- };
1515
- };
1516
- },
1517
1460
  {
1518
1461
  name: 'tokenProgram';
1519
1462
  },
@@ -1640,63 +1583,6 @@ export type TriadProtocol = {
1640
1583
  name: 'marketAta';
1641
1584
  writable: true;
1642
1585
  },
1643
- {
1644
- name: 'squadsAta';
1645
- writable: true;
1646
- pda: {
1647
- seeds: [
1648
- {
1649
- kind: 'account';
1650
- path: 'squads';
1651
- },
1652
- {
1653
- kind: 'account';
1654
- path: 'tokenProgram';
1655
- },
1656
- {
1657
- kind: 'account';
1658
- path: 'mint';
1659
- }
1660
- ];
1661
- program: {
1662
- kind: 'const';
1663
- value: [
1664
- 140,
1665
- 151,
1666
- 37,
1667
- 143,
1668
- 78,
1669
- 36,
1670
- 137,
1671
- 241,
1672
- 187,
1673
- 61,
1674
- 16,
1675
- 41,
1676
- 20,
1677
- 142,
1678
- 13,
1679
- 131,
1680
- 11,
1681
- 90,
1682
- 19,
1683
- 153,
1684
- 218,
1685
- 255,
1686
- 16,
1687
- 132,
1688
- 4,
1689
- 142,
1690
- 123,
1691
- 216,
1692
- 219,
1693
- 233,
1694
- 248,
1695
- 89
1696
- ];
1697
- };
1698
- };
1699
- },
1700
1586
  {
1701
1587
  name: 'tokenProgram';
1702
1588
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.5.9-beta",
3
+ "version": "2.6.1-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",