@triadxyz/triad-protocol 2.6.9-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
|
-
|
|
135
|
+
signer: this.program.provider.publicKey,
|
|
136
136
|
mint: constants_1.TRD_MINT
|
|
137
137
|
})
|
|
138
138
|
.instruction());
|
|
@@ -151,7 +151,8 @@ class Stake {
|
|
|
151
151
|
.unstakeToken()
|
|
152
152
|
.accounts({
|
|
153
153
|
signer: this.program.provider.publicKey,
|
|
154
|
-
unstake: unstakePDA
|
|
154
|
+
unstake: unstakePDA,
|
|
155
|
+
mint: constants_1.TRD_MINT
|
|
155
156
|
})
|
|
156
157
|
.instruction());
|
|
157
158
|
return (0, sendVersionedTransaction_1.default)(this.program, ixs, options);
|
|
@@ -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": "
|
|
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: '
|
|
2195
|
-
account: 'stakeV3';
|
|
2206
|
+
path: 'signer';
|
|
2196
2207
|
},
|
|
2197
2208
|
{
|
|
2198
2209
|
kind: 'arg';
|