@akta/sdk 0.0.1 → 0.0.3-canary

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.
@@ -38,14 +38,8 @@ export interface SerializedMethodDefinition {
38
38
  export interface AgentInstallPlugin {
39
39
  /** Plugin identifier (sdkKey from NetworkAppIds, e.g. "payPlugin") */
40
40
  id: string;
41
- /** 0 = Global, 1 = Admin, 2 = Agent (caller-scoped) */
42
- delegationType: number;
43
41
  /** Whether the wallet owner covers transaction fees */
44
42
  coverFees?: boolean;
45
- /** Whether to default plugin execution to the escrow */
46
- defaultToEscrow?: boolean;
47
- /** Whether to use an execution key */
48
- useExecutionKey?: boolean;
49
43
  /** Method cooldown in seconds (default 0) */
50
44
  cooldown?: string;
51
45
  /** Spending allowances for this plugin */
@@ -84,7 +84,7 @@ export interface NetworkAppIds {
84
84
  * These are auto-generated by deploy-universe.ts when deploying to localnet.
85
85
  * They will be overwritten each time you run a localnet deployment.
86
86
  *
87
- * Last updated: 2026-02-17T15:59:52.097Z
87
+ * Last updated: 2026-02-18T07:49:27.075Z
88
88
  */
89
89
  export declare const LOCALNET_APP_IDS: NetworkAppIds;
90
90
  /**
@@ -19,7 +19,7 @@ exports.getAppIdFromNetwork = getAppIdFromNetwork;
19
19
  * These are auto-generated by deploy-universe.ts when deploying to localnet.
20
20
  * They will be overwritten each time you run a localnet deployment.
21
21
  *
22
- * Last updated: 2026-02-17T15:59:52.097Z
22
+ * Last updated: 2026-02-18T07:49:27.075Z
23
23
  */
24
24
  exports.LOCALNET_APP_IDS = {
25
25
  // Core Contracts
@@ -69,22 +69,22 @@ exports.LOCALNET_APP_IDS = {
69
69
  hyperSwap: 1064n,
70
70
  metaMerkles: 1048n,
71
71
  // Subgates
72
- akitaReferrerGate: 1068n,
73
- assetGate: 1066n,
74
- merkleAddressGate: 1067n,
75
- merkleAssetGate: 1065n,
76
- nfdGate: 1069n,
77
- nfdRootGate: 1070n,
78
- pollGate: 1077n,
79
- socialActivityGate: 1075n,
80
- socialFollowerCountGate: 1071n,
81
- socialFollowerIndexGate: 1076n,
82
- socialImpactGate: 1079n,
83
- socialModeratorGate: 1073n,
84
- stakingAmountGate: 1078n,
85
- stakingPowerGate: 1074n,
86
- subscriptionGate: 1080n,
87
- subscriptionStreakGate: 1072n,
72
+ akitaReferrerGate: 1066n,
73
+ assetGate: 1065n,
74
+ merkleAddressGate: 1069n,
75
+ merkleAssetGate: 1068n,
76
+ nfdGate: 1067n,
77
+ nfdRootGate: 1071n,
78
+ pollGate: 1070n,
79
+ socialActivityGate: 1072n,
80
+ socialFollowerCountGate: 1076n,
81
+ socialFollowerIndexGate: 1073n,
82
+ socialImpactGate: 1074n,
83
+ socialModeratorGate: 1078n,
84
+ stakingAmountGate: 1080n,
85
+ stakingPowerGate: 1075n,
86
+ subscriptionGate: 1077n,
87
+ subscriptionStreakGate: 1079n,
88
88
  // Assets
89
89
  akta: 1002n,
90
90
  bones: 1599n,
@@ -0,0 +1,60 @@
1
+ import type { WalletSDK } from './index';
2
+ import { AbstractedAccountArgs } from '../generated/AbstractedAccountClient';
3
+ import { AddAllowanceArgs, WalletAddPluginParams, WalletUsePluginParams } from './types';
4
+ import { MaybeSigner, SDKClient, GroupReturn } from '../types';
5
+ import { SendParams } from '@algorandfoundation/algokit-utils/types/transaction';
6
+ type ContractArgs = AbstractedAccountArgs["obj"];
7
+ /**
8
+ * Fluent composer returned by `wallet.group()` that queues wallet operations
9
+ * and resolves them as a single atomic group at `send()` time.
10
+ *
11
+ * Tracks internal state like new escrow creation across operations so that
12
+ * only the first addPlugin with a given escrow pays the NewEscrowFeeAmount.
13
+ */
14
+ export declare class WalletGroupComposer {
15
+ private wallet;
16
+ private resolvers;
17
+ private postProcessors;
18
+ private newEscrows;
19
+ private group;
20
+ constructor(wallet: WalletSDK);
21
+ private getSendParams;
22
+ addPlugin<TClient extends SDKClient>(params: WalletAddPluginParams<TClient>): this;
23
+ usePlugin(params: WalletUsePluginParams): this;
24
+ register({ sender, signer, ...args }: ContractArgs['register(string)void'] & MaybeSigner): this;
25
+ changeRevocationApp({ sender, signer, app }: MaybeSigner & {
26
+ app: bigint;
27
+ }): this;
28
+ setNickname({ sender, signer, nickname }: MaybeSigner & {
29
+ nickname: string;
30
+ }): this;
31
+ setAvatar({ sender, signer, avatar }: MaybeSigner & {
32
+ avatar: bigint;
33
+ }): this;
34
+ setBanner({ sender, signer, banner }: MaybeSigner & {
35
+ banner: bigint;
36
+ }): this;
37
+ setBio({ sender, signer, bio }: MaybeSigner & {
38
+ bio: string;
39
+ }): this;
40
+ changeAdmin({ sender, signer, newAdmin }: MaybeSigner & {
41
+ newAdmin: string;
42
+ }): this;
43
+ verifyAuthAddress(params?: MaybeSigner): this;
44
+ rekeyTo({ sender, signer, ...args }: MaybeSigner & ContractArgs['arc58_rekeyTo(address,bool)void']): this;
45
+ canCall({ sender, signer, ...args }: ContractArgs['arc58_canCall(uint64,bool,address,string,byte[4])bool'] & MaybeSigner): this;
46
+ removePlugin({ sender, signer, ...args }: ContractArgs['arc58_removePlugin(uint64,address,string)void'] & MaybeSigner): this;
47
+ newEscrow({ sender, signer, ...args }: ContractArgs['arc58_newEscrow(string)uint64'] & MaybeSigner): this;
48
+ toggleEscrowLock({ sender, signer, ...args }: ContractArgs['arc58_toggleEscrowLock(string)(uint64,bool)'] & MaybeSigner): this;
49
+ reclaimFunds({ sender, signer, ...args }: ContractArgs['arc58_reclaim(string,(uint64,uint64,bool)[])void'] & MaybeSigner): this;
50
+ optInEscrow({ sender, signer, ...args }: ContractArgs['arc58_optInEscrow(string,uint64[])void'] & MaybeSigner): this;
51
+ addAllowances({ sender, signer, escrow, allowances }: {
52
+ escrow: string;
53
+ allowances: AddAllowanceArgs[];
54
+ } & MaybeSigner): this;
55
+ removeAllowances({ sender, signer, ...args }: ContractArgs['arc58_removeAllowances(string,uint64[])void'] & MaybeSigner): this;
56
+ addExecutionKey({ sender, signer, ...args }: ContractArgs['arc58_addExecutionKey(byte[32],byte[32][],uint64,uint64)void'] & MaybeSigner): this;
57
+ removeExecutionKey({ sender, signer, ...args }: ContractArgs['arc58_removeExecutionKey(byte[32])void'] & MaybeSigner): this;
58
+ send(params?: SendParams): Promise<GroupReturn>;
59
+ }
60
+ export {};
@@ -0,0 +1,293 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WalletGroupComposer = void 0;
4
+ const utils_1 = require("./utils");
5
+ const constants_1 = require("./constants");
6
+ const types_1 = require("../types");
7
+ const constants_2 = require("../constants");
8
+ const algosdk_1 = require("algosdk");
9
+ const algokit_utils_1 = require("@algorandfoundation/algokit-utils");
10
+ const prepare_1 = require("../simulate/prepare");
11
+ /**
12
+ * Fluent composer returned by `wallet.group()` that queues wallet operations
13
+ * and resolves them as a single atomic group at `send()` time.
14
+ *
15
+ * Tracks internal state like new escrow creation across operations so that
16
+ * only the first addPlugin with a given escrow pays the NewEscrowFeeAmount.
17
+ */
18
+ class WalletGroupComposer {
19
+ constructor(wallet) {
20
+ this.resolvers = [];
21
+ this.postProcessors = [];
22
+ this.newEscrows = new Set();
23
+ this.wallet = wallet;
24
+ this.group = wallet.client.newGroup();
25
+ }
26
+ getSendParams({ sender, signer } = {}) {
27
+ return {
28
+ ...this.wallet.sendParams,
29
+ ...(sender !== undefined && { sender }),
30
+ ...(signer !== undefined && { signer }),
31
+ };
32
+ }
33
+ // ---------------------------------------------------------------------------
34
+ // Complex methods
35
+ // ---------------------------------------------------------------------------
36
+ addPlugin(params) {
37
+ this.resolvers.push(async () => {
38
+ const { sender, signer, name = '', client, caller: rawCaller, global = false, methods = [], escrow = '', admin = false, delegationType = 0n, lastValid = constants_2.MAX_UINT64, cooldown = 0n, useRounds = false, useExecutionKey = false, coverFees = false, canReclaim = true, defaultToEscrow = false, allowances = [] } = params;
39
+ let caller = rawCaller;
40
+ const sendParams = this.getSendParams({ sender, signer });
41
+ const plugin = client.appId;
42
+ if (global) {
43
+ caller = algosdk_1.ALGORAND_ZERO_ADDRESS_STRING;
44
+ }
45
+ // Transform methods
46
+ let transformedMethods = [];
47
+ if (methods.length > 0) {
48
+ transformedMethods = methods.reduce((acc, method) => {
49
+ if ((0, types_1.isPluginSDKReturn)(method.name)) {
50
+ const selectors = method.name().selectors ?? [];
51
+ selectors.forEach((selector) => acc.push([selector, method.cooldown]));
52
+ }
53
+ else {
54
+ method.name.forEach(x => acc.push([x, method.cooldown]));
55
+ }
56
+ return acc;
57
+ }, []);
58
+ }
59
+ // Check escrow — both SDK cache and this group's new escrows
60
+ const isNewEscrow = escrow !== ''
61
+ && !this.wallet.escrows.get(escrow)
62
+ && !this.newEscrows.has(escrow);
63
+ if (isNewEscrow) {
64
+ this.newEscrows.add(escrow);
65
+ }
66
+ // Check if controlled address differs from app address — requires extra fee
67
+ const controlledAddress = await this.wallet.client.state.global.controlledAddress();
68
+ const hasExternalControlledAddress = controlledAddress !== this.wallet.client.appAddress.toString();
69
+ const externalControlledFee = hasExternalControlledAddress ? 1000n : 0n;
70
+ const extraFee = (0, algokit_utils_1.microAlgo)((isNewEscrow ? constants_1.NewEscrowFeeAmount : 0n) + externalControlledFee);
71
+ const args = {
72
+ plugin,
73
+ caller: caller,
74
+ escrow,
75
+ admin,
76
+ delegationType,
77
+ lastValid,
78
+ cooldown,
79
+ methods: transformedMethods,
80
+ useRounds,
81
+ useExecutionKey,
82
+ coverFees,
83
+ canReclaim,
84
+ defaultToEscrow
85
+ };
86
+ if (name !== '') {
87
+ this.group.arc58AddNamedPlugin({
88
+ ...sendParams,
89
+ args: { name, ...args },
90
+ extraFee
91
+ });
92
+ }
93
+ else {
94
+ this.group.arc58AddPlugin({
95
+ ...sendParams,
96
+ args,
97
+ extraFee
98
+ });
99
+ }
100
+ if (allowances.length > 0) {
101
+ if (escrow === '') {
102
+ throw new Error('Allowances can only be added to plugins with an escrow');
103
+ }
104
+ this.group.arc58AddAllowances({
105
+ ...sendParams,
106
+ args: {
107
+ escrow,
108
+ allowances: (0, utils_1.AllowancesToTuple)(allowances)
109
+ }
110
+ });
111
+ }
112
+ // Queue post-processing (runs after the group is sent)
113
+ const pluginKey = { plugin, caller: caller, escrow };
114
+ const allowanceAssets = allowances.map((a) => a.asset);
115
+ this.postProcessors.push(async () => {
116
+ if (isNewEscrow) {
117
+ await this.wallet.register({ sender, signer, escrow });
118
+ }
119
+ await this.wallet.updateCache(pluginKey, allowanceAssets).catch(error => {
120
+ console.warn('Failed to update plugin cache:', error);
121
+ });
122
+ });
123
+ });
124
+ return this;
125
+ }
126
+ usePlugin(params) {
127
+ this.resolvers.push(async () => {
128
+ const { group: tempGroup } = await this.wallet.prepareUsePlugin(params);
129
+ const atc = (await (await tempGroup.composer()).build()).atc;
130
+ const mainComposer = await this.group.composer();
131
+ mainComposer.addAtc(atc);
132
+ });
133
+ return this;
134
+ }
135
+ // ---------------------------------------------------------------------------
136
+ // Simple methods
137
+ // ---------------------------------------------------------------------------
138
+ register({ sender, signer, ...args }) {
139
+ this.resolvers.push(async () => {
140
+ this.group.register({ ...this.getSendParams({ sender, signer }), args });
141
+ });
142
+ return this;
143
+ }
144
+ changeRevocationApp({ sender, signer, app }) {
145
+ this.resolvers.push(async () => {
146
+ this.group.setRevocationApp({ ...this.getSendParams({ sender, signer }), args: { app } });
147
+ });
148
+ return this;
149
+ }
150
+ setNickname({ sender, signer, nickname }) {
151
+ this.resolvers.push(async () => {
152
+ this.group.setNickname({ ...this.getSendParams({ sender, signer }), args: { nickname } });
153
+ });
154
+ return this;
155
+ }
156
+ setAvatar({ sender, signer, avatar }) {
157
+ this.resolvers.push(async () => {
158
+ this.group.setAvatar({ ...this.getSendParams({ sender, signer }), args: { avatar } });
159
+ });
160
+ return this;
161
+ }
162
+ setBanner({ sender, signer, banner }) {
163
+ this.resolvers.push(async () => {
164
+ this.group.setBanner({ ...this.getSendParams({ sender, signer }), args: { banner } });
165
+ });
166
+ return this;
167
+ }
168
+ setBio({ sender, signer, bio }) {
169
+ this.resolvers.push(async () => {
170
+ this.group.setBio({ ...this.getSendParams({ sender, signer }), args: { bio } });
171
+ });
172
+ return this;
173
+ }
174
+ changeAdmin({ sender, signer, newAdmin }) {
175
+ this.resolvers.push(async () => {
176
+ this.group.arc58ChangeAdmin({ ...this.getSendParams({ sender, signer }), args: { newAdmin } });
177
+ });
178
+ return this;
179
+ }
180
+ verifyAuthAddress(params) {
181
+ this.resolvers.push(async () => {
182
+ this.group.arc58VerifyAuthAddress({ ...this.getSendParams(params), args: {} });
183
+ });
184
+ return this;
185
+ }
186
+ rekeyTo({ sender, signer, ...args }) {
187
+ this.resolvers.push(async () => {
188
+ this.group.arc58RekeyTo({ ...this.getSendParams({ sender, signer }), args });
189
+ });
190
+ return this;
191
+ }
192
+ canCall({ sender, signer, ...args }) {
193
+ this.resolvers.push(async () => {
194
+ this.group.arc58CanCall({ ...this.getSendParams({ sender, signer }), args });
195
+ });
196
+ return this;
197
+ }
198
+ removePlugin({ sender, signer, ...args }) {
199
+ this.resolvers.push(async () => {
200
+ this.group.arc58RemovePlugin({ ...this.getSendParams({ sender, signer }), args });
201
+ });
202
+ return this;
203
+ }
204
+ newEscrow({ sender, signer, ...args }) {
205
+ this.resolvers.push(async () => {
206
+ this.group.arc58NewEscrow({ ...this.getSendParams({ sender, signer }), args });
207
+ this.newEscrows.add(args.escrow);
208
+ });
209
+ return this;
210
+ }
211
+ toggleEscrowLock({ sender, signer, ...args }) {
212
+ this.resolvers.push(async () => {
213
+ this.group.arc58ToggleEscrowLock({ ...this.getSendParams({ sender, signer }), args });
214
+ });
215
+ return this;
216
+ }
217
+ reclaimFunds({ sender, signer, ...args }) {
218
+ this.resolvers.push(async () => {
219
+ this.group.arc58Reclaim({ ...this.getSendParams({ sender, signer }), args });
220
+ });
221
+ return this;
222
+ }
223
+ optInEscrow({ sender, signer, ...args }) {
224
+ this.resolvers.push(async () => {
225
+ this.group.arc58OptInEscrow({ ...this.getSendParams({ sender, signer }), args });
226
+ });
227
+ return this;
228
+ }
229
+ addAllowances({ sender, signer, escrow, allowances }) {
230
+ this.resolvers.push(async () => {
231
+ this.group.arc58AddAllowances({
232
+ ...this.getSendParams({ sender, signer }),
233
+ args: { escrow, allowances: (0, utils_1.AllowancesToTuple)(allowances) }
234
+ });
235
+ });
236
+ return this;
237
+ }
238
+ removeAllowances({ sender, signer, ...args }) {
239
+ this.resolvers.push(async () => {
240
+ this.group.arc58RemoveAllowances({ ...this.getSendParams({ sender, signer }), args });
241
+ });
242
+ return this;
243
+ }
244
+ addExecutionKey({ sender, signer, ...args }) {
245
+ this.resolvers.push(async () => {
246
+ this.group.arc58AddExecutionKey({ ...this.getSendParams({ sender, signer }), args });
247
+ });
248
+ return this;
249
+ }
250
+ removeExecutionKey({ sender, signer, ...args }) {
251
+ this.resolvers.push(async () => {
252
+ this.group.arc58RemoveExecutionKey({ ...this.getSendParams({ sender, signer }), args });
253
+ });
254
+ return this;
255
+ }
256
+ // ---------------------------------------------------------------------------
257
+ // Terminal
258
+ // ---------------------------------------------------------------------------
259
+ async send(params) {
260
+ // Resolve all queued operations (builds the atomic group)
261
+ for (const resolver of this.resolvers) {
262
+ await resolver();
263
+ }
264
+ // Build the ATC from the composed group
265
+ const built = await (await this.group.composer()).build();
266
+ const atc = built.atc;
267
+ const length = built.transactions.length;
268
+ // Get suggested params for fee calculation
269
+ const suggestedParams = await this.wallet.client.algorand.getSuggestedParams();
270
+ // Set max fees for all transactions to allow prepareGroupWithCost to work
271
+ const maxFees = new Map(Array.from({ length }, (_, i) => [i, (0, algokit_utils_1.microAlgo)(BigInt(suggestedParams.minFee) * 272n)]));
272
+ // Use prepareGroupWithCost to simulate the group, populate resources,
273
+ // and calculate exact fees for inner transactions
274
+ const { atc: populatedAtc } = await (0, prepare_1.prepareGroupWithCost)(atc, this.wallet.client.algorand.client.algod, {
275
+ coverAppCallInnerTransactionFees: true,
276
+ populateAppCallResources: true
277
+ }, {
278
+ maxFees,
279
+ suggestedParams
280
+ });
281
+ // Send the prepared atomic group
282
+ const result = await this.wallet.client.algorand.newGroup()
283
+ .addAtc(populatedAtc)
284
+ .send(params);
285
+ // Run post-processors (register escrows, update caches)
286
+ for (const postProcessor of this.postProcessors) {
287
+ await postProcessor();
288
+ }
289
+ return result;
290
+ }
291
+ }
292
+ exports.WalletGroupComposer = WalletGroupComposer;
293
+ //# sourceMappingURL=group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/wallet/group.ts"],"names":[],"mappings":";;;AAGA,mCAA2C;AAC3C,2CAAgD;AAChD,oCAAqG;AACrG,4CAAyC;AACzC,qCAAsD;AACtD,qEAA6D;AAG7D,iDAA0D;AAI1D;;;;;;GAMG;AACH,MAAa,mBAAmB;IAO9B,YAAY,MAAiB;QALrB,cAAS,GAA4B,EAAE,CAAA;QACvC,mBAAc,GAA4B,EAAE,CAAA;QAC5C,eAAU,GAAgB,IAAI,GAAG,EAAE,CAAA;QAIzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAA;IACvC,CAAC;IAEO,aAAa,CAAC,EAAE,MAAM,EAAE,MAAM,KAAkB,EAAE;QACxD,OAAO;YACL,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU;YACzB,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;YACvC,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;SACxC,CAAA;IACH,CAAC;IAED,8EAA8E;IAC9E,kBAAkB;IAClB,8EAA8E;IAE9E,SAAS,CAA4B,MAAsC;QACzE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;YAC7B,MAAM,EACJ,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EACpD,MAAM,GAAG,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,M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AAG,KAAK,CAAC,GAAG,CAAA;QACrB,MAAM,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC,MAAM,CAAA;QAExC,2CAA2C;QAC3C,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAA;QAE9E,0EAA0E;QAC1E,MAAM,OAAO,GAAG,IAAI,GAAG,CACrB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,IAAA,yBAAS,EAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CACxF,CAAA;QAED,sEAAsE;QACtE,kDAAkD;QAClD,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,MAAM,IAAA,8BAAoB,EACtD,GAAG,EACH,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,EACxC;YACE,gCAAgC,EAAE,IAAI;YACtC,wBAAwB,EAAE,IAAI;SAC/B,EACD;YACE,OAAO;YACP,eAAe;SAChB,CACF,CAAA;QAED,iCAAiC;QACjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE;aACxD,MAAM,CAAC,YAAY,CAAC;aACpB,IAAI,CAAC,MAAM,CAA2B,CAAA;QAEzC,wDAAwD;QACxD,KAAK,MAAM,aAAa,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YAChD,MAAM,aAAa,EAAE,CAAA;QACvB,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AA9UD,kDA8UC"}
@@ -1,10 +1,12 @@
1
- import { AbstractAccountBoxMbrData, AbstractedAccountArgs, AllowanceKey, EscrowInfo, PluginKey, type AbstractedAccountClient, ExecutionInfo } from '../generated/AbstractedAccountClient';
1
+ import { AbstractAccountBoxMbrData, AbstractedAccountArgs, AllowanceKey, EscrowInfo, PluginKey, type AbstractedAccountClient, ExecutionInfo, AbstractedAccountComposer } from '../generated/AbstractedAccountClient';
2
2
  import { AddAllowanceArgs, AllowanceInfo, BuildWalletUsePluginParams, CanCallParams, ExecutionBuildGroup, MbrParams, PluginInfo, WalletAddPluginParams, WalletGlobalState, WalletUsePluginParams } from './types';
3
- import { MaybeSigner, NewContractSDKParams, SDKClient, GroupReturn, TxnReturn } from '../types';
3
+ import { MaybeSigner, NewContractSDKParams, SDKClient, GroupReturn, TxnReturn, ExpandedSendParamsWithSigner } from '../types';
4
4
  import { BaseSDK } from '../base';
5
5
  import { ValueMap } from './utils';
6
+ import { WalletGroupComposer } from './group';
6
7
  export * from './constants';
7
8
  export * from './factory';
9
+ export * from './group';
8
10
  export * from './plugins';
9
11
  export * from "./types";
10
12
  type ContractArgs = AbstractedAccountArgs["obj"];
@@ -17,8 +19,16 @@ export declare class WalletSDK extends BaseSDK<AbstractedAccountClient> {
17
19
  allowances: ValueMap<AllowanceKey, AllowanceInfo>;
18
20
  executions: Map<Uint8Array, ExecutionInfo>;
19
21
  constructor(params: NewContractSDKParams);
20
- private updateCache;
21
- private prepareUsePlugin;
22
+ group(): WalletGroupComposer;
23
+ updateCache(key: PluginKey, allowances?: bigint[]): Promise<void>;
24
+ prepareUsePlugin({ sender, signer, name, global, escrow, fundsRequest, calls, lease }: WalletUsePluginParams): Promise<{
25
+ plugins: bigint[];
26
+ caller: string;
27
+ useRounds: boolean;
28
+ length: number;
29
+ group: AbstractedAccountComposer<[]>;
30
+ sendParams: ExpandedSendParamsWithSigner;
31
+ }>;
22
32
  register({ sender, signer, escrow }: ContractArgs['register(string)void'] & MaybeSigner): Promise<void>;
23
33
  changeRevocationApp({ sender, signer, app }: MaybeSigner & {
24
34
  app: bigint;
@@ -47,7 +57,7 @@ export declare class WalletSDK extends BaseSDK<AbstractedAccountClient> {
47
57
  newEscrow({ sender, signer, ...args }: ContractArgs['arc58_newEscrow(string)uint64'] & MaybeSigner): Promise<TxnReturn<bigint>>;
48
58
  toggleEscrowLock({ sender, signer, ...args }: ContractArgs['arc58_toggleEscrowLock(string)(uint64,bool)'] & MaybeSigner): Promise<TxnReturn<EscrowInfo>>;
49
59
  reclaimFunds({ sender, signer, ...args }: ContractArgs['arc58_reclaim(string,(uint64,uint64,bool)[])void'] & MaybeSigner): Promise<TxnReturn<void>>;
50
- optinEscrow({ sender, signer, ...args }: ContractArgs['arc58_optInEscrow(string,uint64[])void'] & MaybeSigner): Promise<TxnReturn<void>>;
60
+ optInEscrow({ sender, signer, ...args }: ContractArgs['arc58_optInEscrow(string,uint64[])void'] & MaybeSigner): Promise<TxnReturn<void>>;
51
61
  addAllowances({ sender, signer, escrow, allowances }: {
52
62
  escrow: string;
53
63
  allowances: AddAllowanceArgs[];
@@ -47,8 +47,10 @@ const utils_1 = require("./utils");
47
47
  const constants_2 = require("./constants");
48
48
  const algokit_utils_1 = require("@algorandfoundation/algokit-utils");
49
49
  const prepare_1 = require("../simulate/prepare");
50
+ const group_1 = require("./group");
50
51
  __exportStar(require("./constants"), exports);
51
52
  __exportStar(require("./factory"), exports);
53
+ __exportStar(require("./group"), exports);
52
54
  __exportStar(require("./plugins"), exports);
53
55
  __exportStar(require("./types"), exports);
54
56
  // things i want to include in the SDK
@@ -193,6 +195,9 @@ class WalletSDK extends base_1.BaseSDK {
193
195
  }
194
196
  };
195
197
  }
198
+ group() {
199
+ return new group_1.WalletGroupComposer(this);
200
+ }
196
201
  async updateCache(key, allowances) {
197
202
  const { escrow } = key;
198
203
  const requestList = [this.getPluginByKey(key)];
@@ -712,7 +717,7 @@ class WalletSDK extends base_1.BaseSDK {
712
717
  args
713
718
  });
714
719
  }
715
- async optinEscrow({ sender, signer, ...args }) {
720
+ async optInEscrow({ sender, signer, ...args }) {
716
721
  const sendParams = this.getSendParams({ sender, signer });
717
722
  return await this.client.send.arc58OptInEscrow({ ...sendParams, args });
718
723
  }