@triadxyz/triad-protocol 4.3.3 → 4.3.6

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
@@ -158,8 +158,9 @@ class Predictor {
158
158
  : null
159
159
  })
160
160
  .accounts({
161
- signer: authority,
161
+ signer: this.program.provider.publicKey,
162
162
  predictor: predictorPDA,
163
+ customer: (0, pda_1.getCustomerPDA)(this.program.programId, customerId),
163
164
  predictorDeposit: depositId
164
165
  ? (0, pda_1.getPredictorDepositPDA)(this.program.programId, depositId)
165
166
  : null
@@ -892,20 +892,7 @@
892
892
  },
893
893
  {
894
894
  "name": "customer",
895
- "writable": true,
896
- "pda": {
897
- "seeds": [
898
- {
899
- "kind": "const",
900
- "value": [99, 117, 115, 116, 111, 109, 101, 114]
901
- },
902
- {
903
- "kind": "account",
904
- "path": "predictor.customer_id",
905
- "account": "Predictor"
906
- }
907
- ]
908
- }
895
+ "writable": true
909
896
  },
910
897
  {
911
898
  "name": "predictor",
@@ -1107,19 +1107,6 @@ export type TriadProtocol = {
1107
1107
  {
1108
1108
  name: 'customer';
1109
1109
  writable: true;
1110
- pda: {
1111
- seeds: [
1112
- {
1113
- kind: 'const';
1114
- value: [99, 117, 115, 116, 111, 109, 101, 114];
1115
- },
1116
- {
1117
- kind: 'account';
1118
- path: 'predictor.customer_id';
1119
- account: 'predictor';
1120
- }
1121
- ];
1122
- };
1123
1110
  },
1124
1111
  {
1125
1112
  name: 'predictor';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "4.3.3",
3
+ "version": "4.3.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",