@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/dist/sdk.cjs.development.js +8 -2
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +8 -2
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/interactors/Referral.ts +4 -4
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
148
|
+
return resp.data.status == 'active';
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
public async isNewUserAtReferralTime(address: Address): Promise<boolean> {
|