@akta/sdk 1.3.27 → 1.3.28

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 (35) hide show
  1. package/dist/{chunk-Q6CNNTNZ.js → chunk-7RJQCI22.js} +4 -4
  2. package/dist/{chunk-Q6CNNTNZ.js.map → chunk-7RJQCI22.js.map} +1 -1
  3. package/dist/{chunk-VLRNGCPP.js → chunk-GU64KMQ4.js} +38 -38
  4. package/dist/{chunk-VLRNGCPP.js.map → chunk-GU64KMQ4.js.map} +1 -1
  5. package/dist/{chunk-5F555WJV.mjs → chunk-JIDDRUHU.mjs} +20 -6
  6. package/dist/chunk-JIDDRUHU.mjs.map +1 -0
  7. package/dist/{chunk-Z36RHR5G.js → chunk-K76URIPO.js} +24 -24
  8. package/dist/{chunk-Z36RHR5G.js.map → chunk-K76URIPO.js.map} +1 -1
  9. package/dist/{chunk-FLE36MLY.mjs → chunk-KWFYX34V.mjs} +65 -51
  10. package/dist/{chunk-FLE36MLY.mjs.map → chunk-KWFYX34V.mjs.map} +1 -1
  11. package/dist/{chunk-YCJNR4ZP.js → chunk-LVGQRYZG.js} +73 -59
  12. package/dist/chunk-LVGQRYZG.js.map +1 -0
  13. package/dist/{chunk-FDB6YYXS.mjs → chunk-NGNKMISH.mjs} +2 -2
  14. package/dist/{chunk-XP3V3ZRE.mjs → chunk-P5LQGRER.mjs} +3 -3
  15. package/dist/{chunk-AW5G7J3L.js → chunk-TIURHLVA.js} +19 -5
  16. package/dist/chunk-TIURHLVA.js.map +1 -0
  17. package/dist/{chunk-PFWDQXSX.mjs → chunk-WTDHZGUM.mjs} +2 -2
  18. package/dist/dao/index.js +4 -4
  19. package/dist/dao/index.mjs +3 -3
  20. package/dist/gates/index.js +3 -3
  21. package/dist/gates/index.mjs +2 -2
  22. package/dist/generated/AbstractedAccountFactoryClient.d.ts +83 -83
  23. package/dist/index.js +6 -6
  24. package/dist/index.mjs +5 -5
  25. package/dist/subscriptions/index.js +3 -3
  26. package/dist/subscriptions/index.mjs +2 -2
  27. package/dist/wallet/index.js +3 -3
  28. package/dist/wallet/index.mjs +2 -2
  29. package/package.json +1 -1
  30. package/dist/chunk-5F555WJV.mjs.map +0 -1
  31. package/dist/chunk-AW5G7J3L.js.map +0 -1
  32. package/dist/chunk-YCJNR4ZP.js.map +0 -1
  33. /package/dist/{chunk-FDB6YYXS.mjs.map → chunk-NGNKMISH.mjs.map} +0 -0
  34. /package/dist/{chunk-XP3V3ZRE.mjs.map → chunk-P5LQGRER.mjs.map} +0 -0
  35. /package/dist/{chunk-PFWDQXSX.mjs.map → chunk-WTDHZGUM.mjs.map} +0 -0
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkYCJNR4ZPjs = require('./chunk-YCJNR4ZP.js');
6
+ var _chunkLVGQRYZGjs = require('./chunk-LVGQRYZG.js');
7
7
 
8
8
 
9
9
  var _chunkVE4MYPMKjs = require('./chunk-VE4MYPMK.js');
@@ -15,7 +15,7 @@ var _chunkPFX6BSCEjs = require('./chunk-PFX6BSCE.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkAW5G7J3Ljs = require('./chunk-AW5G7J3L.js');
18
+ var _chunkTIURHLVAjs = require('./chunk-TIURHLVA.js');
19
19
 
20
20
 
21
21
  var _chunkH7PRBD4Tjs = require('./chunk-H7PRBD4T.js');
@@ -1176,7 +1176,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1176
1176
  if (!walletAppId) {
1177
1177
  throw new Error("Could not read wallet app ID from DAO global state. Has the DAO been set up?");
1178
1178
  }
1179
- this._wallet = new (0, _chunkYCJNR4ZPjs.WalletSDK)({
1179
+ this._wallet = new (0, _chunkLVGQRYZGjs.WalletSDK)({
1180
1180
  ...this._constructorParams,
1181
1181
  factoryParams: {
1182
1182
  ...this._constructorParams.factoryParams,
@@ -1231,7 +1231,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1231
1231
  name = "",
1232
1232
  client,
1233
1233
  caller,
1234
- callerType: pluginCallerType = _chunkYCJNR4ZPjs.CallerType.Other,
1234
+ callerType: pluginCallerType = _chunkLVGQRYZGjs.CallerType.Other,
1235
1235
  methods = [],
1236
1236
  escrow = "",
1237
1237
  delegationType = 0n,
@@ -1260,9 +1260,9 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1260
1260
  }
1261
1261
  }
1262
1262
  const plugin = client.appId;
1263
- if (pluginCallerType === _chunkYCJNR4ZPjs.CallerType.Global) {
1263
+ if (pluginCallerType === _chunkLVGQRYZGjs.CallerType.Global) {
1264
1264
  caller = _algosdk.ALGORAND_ZERO_ADDRESS_STRING;
1265
- } else if (pluginCallerType === _chunkYCJNR4ZPjs.CallerType.Admin) {
1265
+ } else if (pluginCallerType === _chunkLVGQRYZGjs.CallerType.Admin) {
1266
1266
  caller = _algosdk2.default.getApplicationAddress(client.appId).toString();
1267
1267
  }
1268
1268
  let transformedMethods = [];
@@ -1431,7 +1431,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1431
1431
  marketplace,
1432
1432
  wallet: wallet2
1433
1433
  };
1434
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, abiData, "AkitaAppList", this.client.appClient.appSpec.structs);
1434
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, abiData, "AkitaAppList", this.client.appClient.appSpec.structs);
1435
1435
  break;
1436
1436
  }
1437
1437
  case "sal": {
@@ -1448,7 +1448,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1448
1448
  impact,
1449
1449
  moderation
1450
1450
  };
1451
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, abiData, "AkitaSocialAppList", this.client.appClient.appSpec.structs);
1451
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, abiData, "AkitaSocialAppList", this.client.appClient.appSpec.structs);
1452
1452
  break;
1453
1453
  }
1454
1454
  case "pal": {
@@ -1458,7 +1458,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1458
1458
  revenueManager = _nullishCoalesce((currentApps == null ? void 0 : currentApps.revenueManager), () => ( 0n)),
1459
1459
  update = _nullishCoalesce((currentApps == null ? void 0 : currentApps.update), () => ( 0n))
1460
1460
  } = action.value;
1461
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, { optin, revenueManager, update }, "PluginAppList", this.client.appClient.appSpec.structs);
1461
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, { optin, revenueManager, update }, "PluginAppList", this.client.appClient.appSpec.structs);
1462
1462
  break;
1463
1463
  }
1464
1464
  case "oal": {
@@ -1481,7 +1481,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1481
1481
  akitaNfd,
1482
1482
  daoProposalValidator
1483
1483
  };
1484
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, abiData, "OtherAppList", this.client.appClient.appSpec.structs);
1484
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, abiData, "OtherAppList", this.client.appClient.appSpec.structs);
1485
1485
  break;
1486
1486
  }
1487
1487
  case "wallet_fees": {
@@ -1489,7 +1489,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1489
1489
  const {
1490
1490
  createFee = _nullishCoalesce((currentFees == null ? void 0 : currentFees.createFee), () => ( 0n))
1491
1491
  } = action.value;
1492
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, { createFee }, "WalletFees", this.client.appClient.appSpec.structs);
1492
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, { createFee }, "WalletFees", this.client.appClient.appSpec.structs);
1493
1493
  break;
1494
1494
  }
1495
1495
  case "social_fees": {
@@ -1506,7 +1506,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1506
1506
  impactTaxMin,
1507
1507
  impactTaxMax
1508
1508
  };
1509
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, abiData, "SocialFees", this.client.appClient.appSpec.structs);
1509
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, abiData, "SocialFees", this.client.appClient.appSpec.structs);
1510
1510
  break;
1511
1511
  }
1512
1512
  case "staking_fees": {
@@ -1521,7 +1521,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1521
1521
  impactTaxMin,
1522
1522
  impactTaxMax
1523
1523
  };
1524
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, abiData, "StakingFees", this.client.appClient.appSpec.structs);
1524
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, abiData, "StakingFees", this.client.appClient.appSpec.structs);
1525
1525
  break;
1526
1526
  }
1527
1527
  case "subscription_fees": {
@@ -1536,7 +1536,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1536
1536
  paymentPercentage,
1537
1537
  triggerPercentage
1538
1538
  };
1539
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, abiData, "SubscriptionFees", this.client.appClient.appSpec.structs);
1539
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, abiData, "SubscriptionFees", this.client.appClient.appSpec.structs);
1540
1540
  break;
1541
1541
  }
1542
1542
  case "nft_fees": {
@@ -1575,7 +1575,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1575
1575
  raffleSaleImpactTaxMax,
1576
1576
  raffleComposablePercentage
1577
1577
  };
1578
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, abiData, "NftFees", this.client.appClient.appSpec.structs);
1578
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, abiData, "NftFees", this.client.appClient.appSpec.structs);
1579
1579
  break;
1580
1580
  }
1581
1581
  case "swap_fees": {
@@ -1588,7 +1588,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1588
1588
  impactTaxMin,
1589
1589
  impactTaxMax
1590
1590
  };
1591
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, abiData, "SwapFees", this.client.appClient.appSpec.structs);
1591
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, abiData, "SwapFees", this.client.appClient.appSpec.structs);
1592
1592
  break;
1593
1593
  }
1594
1594
  case "akita_assets": {
@@ -1597,7 +1597,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1597
1597
  akta = _nullishCoalesce((currentAssets == null ? void 0 : currentAssets.akta), () => ( 0n)),
1598
1598
  bones = _nullishCoalesce((currentAssets == null ? void 0 : currentAssets.bones), () => ( 0n))
1599
1599
  } = action.value;
1600
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, { akta, bones }, "AkitaAssets", this.client.appClient.appSpec.structs);
1600
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, { akta, bones }, "AkitaAssets", this.client.appClient.appSpec.structs);
1601
1601
  break;
1602
1602
  }
1603
1603
  case "upgrade_app_ps":
@@ -1607,11 +1607,11 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1607
1607
  case "remove_allowance_ps":
1608
1608
  case "new_escrow_ps":
1609
1609
  case "update_fields_ps": {
1610
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, action.value, "ProposalSettings", this.client.appClient.appSpec.structs);
1610
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, action.value, "ProposalSettings", this.client.appClient.appSpec.structs);
1611
1611
  break;
1612
1612
  }
1613
1613
  case "revenue_splits": {
1614
- data = _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, SplitsToTuples(action.value), "((uint64,string),uint8,uint64)[]", this.client.appClient.appSpec.structs);
1614
+ data = _chunkTIURHLVAjs.encodeABIValue.call(void 0, SplitsToTuples(action.value), "((uint64,string),uint8,uint64)[]", this.client.appClient.appSpec.structs);
1615
1615
  break;
1616
1616
  }
1617
1617
  default:
@@ -1631,7 +1631,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1631
1631
  }
1632
1632
  preppedActions.push([
1633
1633
  typedAction.type,
1634
- _chunkAW5G7J3Ljs.encodeABIValue.call(void 0, abiAction, structType, this.typeClient.appClient.appSpec.structs)
1634
+ _chunkTIURHLVAjs.encodeABIValue.call(void 0, abiAction, structType, this.typeClient.appClient.appSpec.structs)
1635
1635
  ]);
1636
1636
  }
1637
1637
  return preppedActions;
@@ -1645,8 +1645,8 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1645
1645
  }
1646
1646
  async setup(params = {}) {
1647
1647
  const sendParams = this.getSendParams(params);
1648
- const { nickname = "Akita DAO", salt = _chunkAW5G7J3Ljs.randomByteArray.call(void 0, 32) } = params;
1649
- _chunkAW5G7J3Ljs.assertByteArrayLength.call(void 0, salt, "salt", 32);
1648
+ const { nickname = "Akita DAO", salt = _chunkTIURHLVAjs.randomByteArray.call(void 0, 32) } = params;
1649
+ _chunkTIURHLVAjs.assertByteArrayLength.call(void 0, salt, "salt", 32);
1650
1650
  const group = this.client.newGroup();
1651
1651
  group.setup({
1652
1652
  ...sendParams,
@@ -1659,7 +1659,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1659
1659
  if (result.returns === void 0) {
1660
1660
  throw new Error("Failed to setup Akita DAO");
1661
1661
  }
1662
- this._wallet = new (0, _chunkYCJNR4ZPjs.WalletSDK)({
1662
+ this._wallet = new (0, _chunkLVGQRYZGjs.WalletSDK)({
1663
1663
  algorand: this.algorand,
1664
1664
  factoryParams: {
1665
1665
  appId: result.returns[0],
@@ -1701,11 +1701,11 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1701
1701
  for (let i = 0; i < actions.length; i++) {
1702
1702
  group.opUp({ args: {}, note: `${i}`, maxFee: _algokitutils.microAlgo.call(void 0, 257000n) });
1703
1703
  }
1704
- const prepared = await _chunkYCJNR4ZPjs.prepareGroup.call(void 0,
1704
+ const prepared = await _chunkLVGQRYZGjs.prepareGroup.call(void 0,
1705
1705
  await group.composer(),
1706
1706
  consolidateFees ? { consolidateFees: true } : {}
1707
1707
  );
1708
- const { groupId, txIds, confirmedRound, returns } = await _chunkYCJNR4ZPjs.sendPrepared.call(void 0,
1708
+ const { groupId, txIds, confirmedRound, returns } = await _chunkLVGQRYZGjs.sendPrepared.call(void 0,
1709
1709
  prepared,
1710
1710
  this.client.algorand.client.algod
1711
1711
  );
@@ -1868,51 +1868,51 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1868
1868
  const structs = this.typeClient.appClient.appSpec.structs;
1869
1869
  switch (actionType) {
1870
1870
  case 10 /* UpgradeApp */: {
1871
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1871
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1872
1872
  return { type: 10 /* UpgradeApp */, ...decoded };
1873
1873
  }
1874
1874
  case 20 /* AddPlugin */: {
1875
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1875
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1876
1876
  return { type: 20 /* AddPlugin */, ...decoded };
1877
1877
  }
1878
1878
  case 21 /* AddNamedPlugin */: {
1879
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1879
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1880
1880
  return { type: 21 /* AddNamedPlugin */, ...decoded };
1881
1881
  }
1882
1882
  case 30 /* ExecutePlugin */: {
1883
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1883
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1884
1884
  return { type: 30 /* ExecutePlugin */, ...decoded };
1885
1885
  }
1886
1886
  case 31 /* RemoveExecutePlugin */: {
1887
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1887
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1888
1888
  return { type: 31 /* RemoveExecutePlugin */, ...decoded };
1889
1889
  }
1890
1890
  case 40 /* RemovePlugin */: {
1891
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1891
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1892
1892
  return { type: 40 /* RemovePlugin */, ...decoded };
1893
1893
  }
1894
1894
  case 41 /* RemoveNamedPlugin */: {
1895
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1895
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1896
1896
  return { type: 41 /* RemoveNamedPlugin */, ...decoded };
1897
1897
  }
1898
1898
  case 50 /* AddAllowances */: {
1899
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1899
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1900
1900
  return { type: 50 /* AddAllowances */, ...decoded };
1901
1901
  }
1902
1902
  case 60 /* RemoveAllowances */: {
1903
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1903
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1904
1904
  return { type: 60 /* RemoveAllowances */, ...decoded };
1905
1905
  }
1906
1906
  case 70 /* NewEscrow */: {
1907
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1907
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1908
1908
  return { type: 70 /* NewEscrow */, ...decoded };
1909
1909
  }
1910
1910
  case 71 /* ToggleEscrowLock */: {
1911
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1911
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1912
1912
  return { type: 71 /* ToggleEscrowLock */, ...decoded };
1913
1913
  }
1914
1914
  case 80 /* UpdateFields */: {
1915
- const decoded = _chunkAW5G7J3Ljs.decodeABIValue.call(void 0, actionData, structType, structs);
1915
+ const decoded = _chunkTIURHLVAjs.decodeABIValue.call(void 0, actionData, structType, structs);
1916
1916
  return { type: 80 /* UpdateFields */, ...decoded };
1917
1917
  }
1918
1918
  case 90 /* UpdateWallet */: {
@@ -1957,4 +1957,4 @@ var AkitaDaoSDK = (_class2 = class extends _chunkH7PRBD4Tjs.BaseSDK {
1957
1957
 
1958
1958
 
1959
1959
  exports.SplitDistributionType = SplitDistributionType; exports.SplitsToTuples = SplitsToTuples; exports.ProposalActionEnum = ProposalActionEnum; exports.EMPTY_CID = EMPTY_CID; exports.DAOProposalVotesMBR = DAOProposalVotesMBR; exports.DAO_ERROR_MESSAGES = DAO_ERROR_MESSAGES; exports.parseDaoErrorCode = parseDaoErrorCode; exports.translateDaoError = translateDaoError; exports.AkitaDaoSDK = AkitaDaoSDK;
1960
- //# sourceMappingURL=chunk-VLRNGCPP.js.map
1960
+ //# sourceMappingURL=chunk-GU64KMQ4.js.map