@aboutcircles/sdk 0.1.16 → 0.1.17

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15682,9 +15682,7 @@ class SJ3 {
15682
15682
  let J2 = $3.toLowerCase(), Q4 = k$2(), G2 = w$2(Q4), Y2 = await this.getRealInviters(J2);
15683
15683
  if (Y2.length === 0)
15684
15684
  throw b4.noProxyInviters(J2);
15685
- let K3 = Y2[0].address, X4 = await this.findInvitePath(J2, K3), q3 = new W$(this.config), M2 = await this.generateInviteData([G2], true), j4 = await q3.buildFlowMatrixTx(J2, this.config.invitationModuleAddress, X4, { toTokens: [K3], useWrappedBalances: true, txData: P$2(M2) }, true);
15686
- await this.saveReferralData(J2, Q4);
15687
- let N = [];
15685
+ let K3 = Y2[0].address, X4 = await this.findInvitePath(J2, K3), q3 = new W$(this.config), M2 = await this.generateInviteData([G2], true), j4 = await q3.buildFlowMatrixTx(J2, this.config.invitationModuleAddress, X4, { toTokens: [K3], useWrappedBalances: true, txData: P$2(M2) }, true), N = [];
15688
15686
  return N.push(...j4), { transactions: N, privateKey: Q4 };
15689
15687
  }
15690
15688
  async generateInviteData($3, J2 = true) {
@@ -15740,7 +15738,7 @@ class IQ {
15740
15738
  if (!Y2.length)
15741
15739
  throw new b4("No invitation IDs returned from claim", { code: "INVITATION_NO_IDS", source: "INVITATIONS", context: { inviter: Q4, count: J2 } });
15742
15740
  let Z3 = this.invitations.generateSecrets(J2), K3 = Z3.map((j4) => j4.signer), X4 = await this.invitationFarm.invitationModule(), q3 = G2 ? this.invitationFarm.claimInvite() : this.invitationFarm.claimInvites(BigInt(J2)), M2 = G2 ? this.buildReferralTransfer(Q4, X4, Y2[0], K3[0]) : this.buildBatchReferralTransfer(Q4, X4, Y2, K3);
15743
- return await Promise.all(Z3.map((j4) => this.invitations.saveReferralData(Q4, j4.secret))), { referrals: Z3, transactions: [q3, M2] };
15741
+ return { referrals: Z3, transactions: [q3, M2] };
15744
15742
  }
15745
15743
  async generateInvites($3, J2) {
15746
15744
  if (J2.length === 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aboutcircles/sdk",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Simplified Circles SDK for non-crypto users with low entrance barrier",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",