@aurigami/sdk 1.12.0-beta3 → 1.12.0-beta4
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/interactors/Referral.d.ts +2 -0
- package/dist/sdk.cjs.development.js +87 -25
- 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 +87 -25
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/interactors/Referral.ts +10 -0
package/package.json
CHANGED
|
@@ -153,6 +153,16 @@ export class ReferralRead extends BlockchainEntityRead {
|
|
|
153
153
|
|
|
154
154
|
return resp.data.status == 'active';
|
|
155
155
|
}
|
|
156
|
+
|
|
157
|
+
public async isNewUserAtReferralTime(address: Address): Promise<boolean> {
|
|
158
|
+
let result: boolean = await AuriAPI.getApi('/referral/isNewUser', { address: address });
|
|
159
|
+
return result;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
public async depositedMoreThanMinimumAmount(address: Address): Promise<boolean> {
|
|
163
|
+
let result: boolean = await AuriAPI.getApi('/referral/depositedEnough', { address: address });
|
|
164
|
+
return result;
|
|
165
|
+
}
|
|
156
166
|
}
|
|
157
167
|
|
|
158
168
|
export class ReferralReadWrite extends ReferralRead {
|