@triadxyz/triad-protocol 4.3.6 → 4.3.7

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/predictor.js CHANGED
@@ -160,10 +160,7 @@ class Predictor {
160
160
  .accounts({
161
161
  signer: this.program.provider.publicKey,
162
162
  predictor: predictorPDA,
163
- customer: (0, pda_1.getCustomerPDA)(this.program.programId, customerId),
164
- predictorDeposit: depositId
165
- ? (0, pda_1.getPredictorDepositPDA)(this.program.programId, depositId)
166
- : null
163
+ customer: (0, pda_1.getCustomerPDA)(this.program.programId, customerId)
167
164
  })
168
165
  .instruction());
169
166
  return (0, sendVersionedTransaction_1.default)(this.program, ixs, this.rpcOptions);
@@ -901,8 +901,22 @@
901
901
  {
902
902
  "name": "predictor_deposit",
903
903
  "writable": true,
904
- "signer": true,
905
- "optional": true
904
+ "optional": true,
905
+ "pda": {
906
+ "seeds": [
907
+ {
908
+ "kind": "const",
909
+ "value": [
910
+ 112, 114, 101, 100, 105, 99, 116, 111, 114, 95, 100, 101, 112,
911
+ 111, 115, 105, 116
912
+ ]
913
+ },
914
+ {
915
+ "kind": "arg",
916
+ "path": "args.deposit_id"
917
+ }
918
+ ]
919
+ }
906
920
  },
907
921
  {
908
922
  "name": "mint",
@@ -1086,11 +1100,59 @@
1086
1100
  },
1087
1101
  {
1088
1102
  "name": "predictor_order",
1089
- "writable": true
1103
+ "writable": true,
1104
+ "pda": {
1105
+ "seeds": [
1106
+ {
1107
+ "kind": "const",
1108
+ "value": [
1109
+ 112, 114, 101, 100, 105, 99, 116, 111, 114, 95, 111, 114, 100,
1110
+ 101, 114
1111
+ ]
1112
+ },
1113
+ {
1114
+ "kind": "account",
1115
+ "path": "predictor"
1116
+ },
1117
+ {
1118
+ "kind": "account",
1119
+ "path": "market.market_id",
1120
+ "account": "MarketV2"
1121
+ },
1122
+ {
1123
+ "kind": "arg",
1124
+ "path": "args.order_direction"
1125
+ }
1126
+ ]
1127
+ }
1090
1128
  },
1091
1129
  {
1092
1130
  "name": "opposite_predictor_order",
1093
- "writable": true
1131
+ "writable": true,
1132
+ "pda": {
1133
+ "seeds": [
1134
+ {
1135
+ "kind": "const",
1136
+ "value": [
1137
+ 112, 114, 101, 100, 105, 99, 116, 111, 114, 95, 111, 114, 100,
1138
+ 101, 114
1139
+ ]
1140
+ },
1141
+ {
1142
+ "kind": "account",
1143
+ "path": "opposite_predictor"
1144
+ },
1145
+ {
1146
+ "kind": "account",
1147
+ "path": "market.market_id",
1148
+ "account": "MarketV2"
1149
+ },
1150
+ {
1151
+ "kind": "arg",
1152
+ "path": "args.opposite_order_direction"
1153
+ }
1154
+ ]
1155
+ }
1094
1156
  },
1095
1157
  {
1096
1158
  "name": "system_program",
@@ -1385,7 +1447,30 @@
1385
1447
  },
1386
1448
  {
1387
1449
  "name": "predictor_order",
1388
- "writable": true
1450
+ "writable": true,
1451
+ "pda": {
1452
+ "seeds": [
1453
+ {
1454
+ "kind": "const",
1455
+ "value": [
1456
+ 112, 114, 101, 100, 105, 99, 116, 111, 114, 95, 111, 114, 100,
1457
+ 101, 114
1458
+ ]
1459
+ },
1460
+ {
1461
+ "kind": "account",
1462
+ "path": "predictor"
1463
+ },
1464
+ {
1465
+ "kind": "arg",
1466
+ "path": "args.market_id"
1467
+ },
1468
+ {
1469
+ "kind": "arg",
1470
+ "path": "args.order_direction"
1471
+ }
1472
+ ]
1473
+ }
1389
1474
  },
1390
1475
  {
1391
1476
  "name": "system_program",
@@ -1115,8 +1115,37 @@ export type TriadProtocol = {
1115
1115
  {
1116
1116
  name: 'predictorDeposit';
1117
1117
  writable: true;
1118
- signer: true;
1119
1118
  optional: true;
1119
+ pda: {
1120
+ seeds: [
1121
+ {
1122
+ kind: 'const';
1123
+ value: [
1124
+ 112,
1125
+ 114,
1126
+ 101,
1127
+ 100,
1128
+ 105,
1129
+ 99,
1130
+ 116,
1131
+ 111,
1132
+ 114,
1133
+ 95,
1134
+ 100,
1135
+ 101,
1136
+ 112,
1137
+ 111,
1138
+ 115,
1139
+ 105,
1140
+ 116
1141
+ ];
1142
+ },
1143
+ {
1144
+ kind: 'arg';
1145
+ path: 'args.deposit_id';
1146
+ }
1147
+ ];
1148
+ };
1120
1149
  },
1121
1150
  {
1122
1151
  name: 'mint';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "4.3.6",
3
+ "version": "4.3.7",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",