@akta/sdk 1.4.1 → 1.4.2
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/{chunk-K5PD3LNB.mjs → chunk-JUKXJZS2.mjs} +2 -2
- package/dist/{chunk-4M47ML5B.js → chunk-L3LENFFB.js} +9 -9
- package/dist/{chunk-4M47ML5B.js.map → chunk-L3LENFFB.js.map} +1 -1
- package/dist/{chunk-4HUNFJHH.js → chunk-UTK4VSJW.js} +4 -2
- package/dist/chunk-UTK4VSJW.js.map +1 -0
- package/dist/{chunk-ADVSZM5D.mjs → chunk-ZEF5O2EF.mjs} +4 -2
- package/dist/{chunk-ADVSZM5D.mjs.map → chunk-ZEF5O2EF.mjs.map} +1 -1
- package/dist/dao/index.js +3 -3
- package/dist/dao/index.mjs +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/wallet/index.js +2 -2
- package/dist/wallet/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-4HUNFJHH.js.map +0 -1
- /package/dist/{chunk-K5PD3LNB.mjs.map → chunk-JUKXJZS2.mjs.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
WalletSDK,
|
|
4
4
|
prepareGroup,
|
|
5
5
|
sendPrepared
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZEF5O2EF.mjs";
|
|
7
7
|
import {
|
|
8
8
|
AllowancesToTuple
|
|
9
9
|
} from "./chunk-2ZPJXFUS.mjs";
|
|
@@ -1957,4 +1957,4 @@ export {
|
|
|
1957
1957
|
translateDaoError,
|
|
1958
1958
|
AkitaDaoSDK
|
|
1959
1959
|
};
|
|
1960
|
-
//# sourceMappingURL=chunk-
|
|
1960
|
+
//# sourceMappingURL=chunk-JUKXJZS2.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUTK4VSJWjs = require('./chunk-UTK4VSJW.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkVE4MYPMKjs = require('./chunk-VE4MYPMK.js');
|
|
@@ -1176,7 +1176,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkKTA4UUALjs.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,
|
|
1179
|
+
this._wallet = new (0, _chunkUTK4VSJWjs.WalletSDK)({
|
|
1180
1180
|
...this._constructorParams,
|
|
1181
1181
|
factoryParams: {
|
|
1182
1182
|
...this._constructorParams.factoryParams,
|
|
@@ -1231,7 +1231,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkKTA4UUALjs.BaseSDK {
|
|
|
1231
1231
|
name = "",
|
|
1232
1232
|
client,
|
|
1233
1233
|
caller,
|
|
1234
|
-
callerType: pluginCallerType =
|
|
1234
|
+
callerType: pluginCallerType = _chunkUTK4VSJWjs.CallerType.Other,
|
|
1235
1235
|
methods = [],
|
|
1236
1236
|
escrow = "",
|
|
1237
1237
|
delegationType = 0n,
|
|
@@ -1260,9 +1260,9 @@ var AkitaDaoSDK = (_class2 = class extends _chunkKTA4UUALjs.BaseSDK {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
const plugin = client.appId;
|
|
1263
|
-
if (pluginCallerType ===
|
|
1263
|
+
if (pluginCallerType === _chunkUTK4VSJWjs.CallerType.Global) {
|
|
1264
1264
|
caller = _algosdk.ALGORAND_ZERO_ADDRESS_STRING;
|
|
1265
|
-
} else if (pluginCallerType ===
|
|
1265
|
+
} else if (pluginCallerType === _chunkUTK4VSJWjs.CallerType.Admin) {
|
|
1266
1266
|
caller = _algosdk2.default.getApplicationAddress(client.appId).toString();
|
|
1267
1267
|
}
|
|
1268
1268
|
let transformedMethods = [];
|
|
@@ -1659,7 +1659,7 @@ var AkitaDaoSDK = (_class2 = class extends _chunkKTA4UUALjs.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,
|
|
1662
|
+
this._wallet = new (0, _chunkUTK4VSJWjs.WalletSDK)({
|
|
1663
1663
|
algorand: this.algorand,
|
|
1664
1664
|
factoryParams: {
|
|
1665
1665
|
appId: result.returns[0],
|
|
@@ -1701,11 +1701,11 @@ var AkitaDaoSDK = (_class2 = class extends _chunkKTA4UUALjs.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
|
|
1704
|
+
const prepared = await _chunkUTK4VSJWjs.prepareGroup.call(void 0,
|
|
1705
1705
|
await group.composer(),
|
|
1706
1706
|
consolidateFees ? { consolidateFees: true } : {}
|
|
1707
1707
|
);
|
|
1708
|
-
const { groupId, txIds, confirmedRound, returns } = await
|
|
1708
|
+
const { groupId, txIds, confirmedRound, returns } = await _chunkUTK4VSJWjs.sendPrepared.call(void 0,
|
|
1709
1709
|
prepared,
|
|
1710
1710
|
this.client.algorand.client.algod
|
|
1711
1711
|
);
|
|
@@ -1957,4 +1957,4 @@ var AkitaDaoSDK = (_class2 = class extends _chunkKTA4UUALjs.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-
|
|
1960
|
+
//# sourceMappingURL=chunk-L3LENFFB.js.map
|