@aurigami/sdk 1.12.1-beta1 → 1.12.1

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.1-beta1",
2
+ "version": "1.12.1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -1,6 +1,7 @@
1
1
  import { TransactionResponse } from '@ethersproject/abstract-provider';
2
+ import axios from 'axios';
2
3
  import { ethers } from 'ethers';
3
- import { REFERRAL_CAMPAIGNS } from '../consts';
4
+ import { AURORA_PLUS_API_PREFIX, REFERRAL_CAMPAIGNS } from '../consts';
4
5
  import { AuriEnv, BlockchainEntity, BlockchainEntityRead, TokenAmount } from '../entities';
5
6
  import { getBlocksTimestamp } from '../helpers';
6
7
  import * as AuriAPI from '../helpers/aurigami-api';
@@ -142,10 +143,9 @@ export class ReferralRead extends BlockchainEntityRead {
142
143
  }
143
144
 
144
145
  public async isOnAuroraPlus(address: Address): Promise<boolean> {
145
- return true;
146
- // let resp = await axios.get(AURORA_PLUS_API_PREFIX + address);
146
+ let resp = await axios.get(AURORA_PLUS_API_PREFIX + address);
147
147
 
148
- // return resp.data.status == 'active';
148
+ return resp.data.status == 'active';
149
149
  }
150
150
 
151
151
  public async isNewUserAtReferralTime(address: Address): Promise<boolean> {