@triadxyz/triad-protocol 4.3.7 → 4.3.8

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,7 +160,10 @@ 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)
163
+ customer: (0, pda_1.getCustomerPDA)(this.program.programId, customerId),
164
+ predictorDeposit: depositId
165
+ ? (0, pda_1.getPredictorDepositPDA)(this.program.programId, depositId)
166
+ : null
164
167
  })
165
168
  .instruction());
166
169
  return (0, sendVersionedTransaction_1.default)(this.program, ixs, this.rpcOptions);
@@ -901,22 +901,7 @@
901
901
  {
902
902
  "name": "predictor_deposit",
903
903
  "writable": 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
- }
904
+ "optional": true
920
905
  },
921
906
  {
922
907
  "name": "mint",
@@ -1116,36 +1116,6 @@ export type TriadProtocol = {
1116
1116
  name: 'predictorDeposit';
1117
1117
  writable: true;
1118
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
- };
1149
1119
  },
1150
1120
  {
1151
1121
  name: 'mint';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "4.3.7",
3
+ "version": "4.3.8",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",