@triadxyz/triad-protocol 0.4.7-beta → 0.4.9-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/index.js CHANGED
@@ -103,6 +103,7 @@ class TriadProtocolClient {
103
103
  })
104
104
  .accounts({
105
105
  signer: wallet,
106
+ payer: wallet,
106
107
  referral
107
108
  });
108
109
  if (options === null || options === void 0 ? void 0 : options.microLamports) {
@@ -128,6 +129,7 @@ class TriadProtocolClient {
128
129
  })
129
130
  .accounts({
130
131
  signer: user,
132
+ payer: payer.publicKey,
131
133
  referral
132
134
  })
133
135
  .instruction());
package/dist/stake.js CHANGED
@@ -105,9 +105,8 @@ class Stake {
105
105
  collections
106
106
  });
107
107
  }
108
- catch (error) {
109
- console.log(error);
110
- }
108
+ catch (_a) { }
109
+ yield new Promise((resolve) => setTimeout(resolve, 500));
111
110
  data.push(Object.assign(Object.assign({}, stake), { available }));
112
111
  }
113
112
  return data;
@@ -235,6 +235,11 @@
235
235
  "writable": true,
236
236
  "signer": true
237
237
  },
238
+ {
239
+ "name": "payer",
240
+ "writable": true,
241
+ "signer": true
242
+ },
238
243
  {
239
244
  "name": "referral",
240
245
  "writable": true
@@ -230,6 +230,11 @@ export type TriadProtocol = {
230
230
  writable: true;
231
231
  signer: true;
232
232
  },
233
+ {
234
+ name: 'payer';
235
+ writable: true;
236
+ signer: true;
237
+ },
233
238
  {
234
239
  name: 'referral';
235
240
  writable: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "0.4.7-beta",
3
+ "version": "0.4.9-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",