@triadxyz/triad-protocol 2.7.0-beta → 2.7.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/stake.js CHANGED
@@ -132,7 +132,7 @@ class Stake {
132
132
  ts: new anchor_1.BN(Date.now())
133
133
  })
134
134
  .accounts({
135
- stake: (0, stake_1.getStakePDA)(this.program.programId, this.program.provider.publicKey),
135
+ signer: this.program.provider.publicKey,
136
136
  mint: constants_1.TRD_MINT
137
137
  })
138
138
  .instruction());
@@ -1597,7 +1597,19 @@
1597
1597
  },
1598
1598
  {
1599
1599
  "name": "stake",
1600
- "writable": true
1600
+ "writable": true,
1601
+ "pda": {
1602
+ "seeds": [
1603
+ {
1604
+ "kind": "const",
1605
+ "value": [115, 116, 97, 107, 101, 95, 118, 51]
1606
+ },
1607
+ {
1608
+ "kind": "account",
1609
+ "path": "signer"
1610
+ }
1611
+ ]
1612
+ }
1601
1613
  },
1602
1614
  {
1603
1615
  "name": "unstake",
@@ -1610,8 +1622,7 @@
1610
1622
  },
1611
1623
  {
1612
1624
  "kind": "account",
1613
- "path": "stake.authority",
1614
- "account": "StakeV3"
1625
+ "path": "signer"
1615
1626
  },
1616
1627
  {
1617
1628
  "kind": "arg",
@@ -2179,6 +2179,18 @@ export type TriadProtocol = {
2179
2179
  {
2180
2180
  name: 'stake';
2181
2181
  writable: true;
2182
+ pda: {
2183
+ seeds: [
2184
+ {
2185
+ kind: 'const';
2186
+ value: [115, 116, 97, 107, 101, 95, 118, 51];
2187
+ },
2188
+ {
2189
+ kind: 'account';
2190
+ path: 'signer';
2191
+ }
2192
+ ];
2193
+ };
2182
2194
  },
2183
2195
  {
2184
2196
  name: 'unstake';
@@ -2191,8 +2203,7 @@ export type TriadProtocol = {
2191
2203
  },
2192
2204
  {
2193
2205
  kind: 'account';
2194
- path: 'stake.authority';
2195
- account: 'stakeV3';
2206
+ path: 'signer';
2196
2207
  },
2197
2208
  {
2198
2209
  kind: 'arg';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.7.0-beta",
3
+ "version": "2.7.1-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",