@aurigami/sdk 1.12.5 → 1.12.7

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.12.5",
2
+ "version": "1.12.7",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -127,7 +127,7 @@ export class PlyGameRead extends BlockchainEntityRead {
127
127
  );
128
128
  let result = await this.env.plygame.jackpotHistory(round.sub(1));
129
129
  return {
130
- winner: result.winner.slice(0, 6) + '...' + result.winner.slice(-4),
130
+ winner: result.winner.slice(0, 5) + '...' + result.winner.slice(-3),
131
131
  amount: new TokenAmount(this.plyToken, result.amount.toString()),
132
132
  };
133
133
  }
@@ -109,8 +109,8 @@ export class ReferralRead extends BlockchainEntityRead {
109
109
  /**
110
110
  * current number of slots under a referral code being used that exceed minimum deposit amount
111
111
  */
112
- public async slotsInUse(referralCode: string): Promise<number> {
113
- let result = await AuriAPI.getApi('/referral/slotsInUse', { referralCode: referralCode });
112
+ public async slotsInUse(): Promise<number> {
113
+ let result = await AuriAPI.getApi('/referral/slotsInUse');
114
114
  return result;
115
115
  }
116
116
 
@@ -118,6 +118,11 @@ export class ReferralRead extends BlockchainEntityRead {
118
118
  return 500;
119
119
  }
120
120
 
121
+ public async queuePosition(address: Address): Promise<number> {
122
+ let result = await AuriAPI.getApi('/referral/queuePosition', { address: address });
123
+ return result;
124
+ }
125
+
121
126
  /**
122
127
  * a way to determine qualification status of a user. null if not referred yet,
123
128
  * qualified if referred + min deposit, notQualified if referred + min deposit