@algorandfoundation/algokit-utils 7.0.0 → 8.0.0-beta.1
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/README.md +14 -3
- package/account/account.d.ts +4 -1
- package/account/account.js +4 -3
- package/account/account.js.map +1 -1
- package/account/account.mjs +5 -4
- package/account/account.mjs.map +1 -1
- package/account/get-dispenser-account.d.ts +1 -1
- package/amount.d.ts +1 -0
- package/amount.js +3 -2
- package/amount.js.map +1 -1
- package/amount.mjs +3 -3
- package/amount.mjs.map +1 -1
- package/app-client.d.ts +4 -4
- package/app-client.js +4 -4
- package/app-client.js.map +1 -1
- package/app-client.mjs +4 -4
- package/app-client.mjs.map +1 -1
- package/app-deploy.js +23 -5
- package/app-deploy.js.map +1 -1
- package/app-deploy.mjs +24 -6
- package/app-deploy.mjs.map +1 -1
- package/app.js +7 -4
- package/app.js.map +1 -1
- package/app.mjs +7 -4
- package/app.mjs.map +1 -1
- package/index.js +1 -1
- package/index.mjs +2 -2
- package/indexer-lookup.d.ts +10 -8
- package/indexer-lookup.js +14 -10
- package/indexer-lookup.js.map +1 -1
- package/indexer-lookup.mjs +14 -10
- package/indexer-lookup.mjs.map +1 -1
- package/network-client.d.ts +1 -7
- package/network-client.js +2 -9
- package/network-client.js.map +1 -1
- package/network-client.mjs +2 -9
- package/network-client.mjs.map +1 -1
- package/package.json +2 -2
- package/testing/_asset.d.ts +2 -1
- package/testing/account.d.ts +4 -3
- package/testing/account.js +8 -2
- package/testing/account.js.map +1 -1
- package/testing/account.mjs +9 -3
- package/testing/account.mjs.map +1 -1
- package/testing/fixtures/algorand-fixture.js +5 -6
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs +5 -6
- package/testing/fixtures/algorand-fixture.mjs.map +1 -1
- package/testing/test-logger.js +7 -1
- package/testing/test-logger.js.map +1 -1
- package/testing/test-logger.mjs +7 -1
- package/testing/test-logger.mjs.map +1 -1
- package/transaction/perform-atomic-transaction-composer-simulate.d.ts +4 -1
- package/transaction/perform-atomic-transaction-composer-simulate.js +14 -10
- package/transaction/perform-atomic-transaction-composer-simulate.js.map +1 -1
- package/transaction/perform-atomic-transaction-composer-simulate.mjs +15 -11
- package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +1 -1
- package/transaction/transaction.d.ts +1 -17
- package/transaction/transaction.js +110 -82
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs +112 -83
- package/transaction/transaction.mjs.map +1 -1
- package/transfer/transfer.js +3 -1
- package/transfer/transfer.js.map +1 -1
- package/transfer/transfer.mjs +3 -1
- package/transfer/transfer.mjs.map +1 -1
- package/types/account-manager.d.ts +20 -20
- package/types/account-manager.js +27 -20
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +28 -21
- package/types/account-manager.mjs.map +1 -1
- package/types/account.d.ts +8 -8
- package/types/account.js +2 -2
- package/types/account.js.map +1 -1
- package/types/account.mjs +3 -3
- package/types/account.mjs.map +1 -1
- package/types/algo-http-client-with-retry.d.ts +1 -2
- package/types/algo-http-client-with-retry.js +33 -3
- package/types/algo-http-client-with-retry.js.map +1 -1
- package/types/algo-http-client-with-retry.mjs +32 -2
- package/types/algo-http-client-with-retry.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +11 -11
- package/types/algorand-client-transaction-sender.d.ts +97 -97
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/algorand-client.d.ts +3 -3
- package/types/algorand-client.js +1 -1
- package/types/algorand-client.js.map +1 -1
- package/types/algorand-client.mjs +1 -1
- package/types/algorand-client.mjs.map +1 -1
- package/types/app-client.d.ts +280 -279
- package/types/app-client.js +10 -10
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +11 -11
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +4 -4
- package/types/app-deployer.js +22 -23
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +23 -24
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +128 -138
- package/types/app-factory.js +4 -3
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs +5 -4
- package/types/app-factory.mjs.map +1 -1
- package/types/app-manager.d.ts +5 -5
- package/types/app-manager.js +11 -15
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +12 -16
- package/types/app-manager.mjs.map +1 -1
- package/types/app.d.ts +4 -4
- package/types/app.js.map +1 -1
- package/types/app.mjs.map +1 -1
- package/types/asset-manager.d.ts +5 -5
- package/types/asset-manager.js +8 -11
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +8 -11
- package/types/asset-manager.mjs.map +1 -1
- package/types/client-manager.d.ts +2 -9
- package/types/client-manager.js +9 -19
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +9 -19
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +22 -22
- package/types/composer.js +73 -83
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +74 -84
- package/types/composer.mjs.map +1 -1
- package/types/dispenser-client.d.ts +2 -1
- package/types/dispenser-client.js +5 -1
- package/types/dispenser-client.js.map +1 -1
- package/types/dispenser-client.mjs +5 -1
- package/types/dispenser-client.mjs.map +1 -1
- package/types/indexer.d.ts +74 -755
- package/types/indexer.js.map +1 -1
- package/types/indexer.mjs.map +1 -1
- package/types/kmd-account-manager.d.ts +2 -2
- package/types/kmd-account-manager.js.map +1 -1
- package/types/kmd-account-manager.mjs.map +1 -1
- package/types/network-client.d.ts +1 -1
- package/types/network-client.js.map +1 -1
- package/types/network-client.mjs.map +1 -1
- package/types/testing.d.ts +5 -6
- package/types/urlTokenBaseHTTPClient.d.ts +0 -40
- package/types/urlTokenBaseHTTPClient.js +0 -153
- package/types/urlTokenBaseHTTPClient.js.map +0 -1
- package/types/urlTokenBaseHTTPClient.mjs +0 -151
- package/types/urlTokenBaseHTTPClient.mjs.map +0 -1
package/types/app-factory.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import algosdk from 'algosdk';
|
|
1
|
+
import algosdk, { Address } from 'algosdk';
|
|
2
2
|
import { AlgorandClientInterface } from './algorand-client-interface';
|
|
3
3
|
import { AppReturn, SendAppTransactionResult, TealTemplateParams } from './app';
|
|
4
4
|
import { ABIStruct, Arc56Contract, Arc56Method } from './app-arc56';
|
|
@@ -27,7 +27,7 @@ export interface AppFactoryParams {
|
|
|
27
27
|
*/
|
|
28
28
|
appName?: string;
|
|
29
29
|
/** Optional address to use for the account to use as the default sender for calls. */
|
|
30
|
-
defaultSender?: string;
|
|
30
|
+
defaultSender?: Address | string;
|
|
31
31
|
/** Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from `AlgorandClient`). */
|
|
32
32
|
defaultSigner?: TransactionSigner;
|
|
33
33
|
/** The version of app that is / will be deployed; defaults to 1.0 */
|
|
@@ -151,22 +151,22 @@ export declare class AppFactory {
|
|
|
151
151
|
get params(): {
|
|
152
152
|
/** Return params for a create ABI call, including deploy-time TEAL template replacements and compilation if provided */
|
|
153
153
|
create: (params: {
|
|
154
|
-
lease?: string | Uint8Array | undefined;
|
|
155
|
-
note?: string | Uint8Array | undefined;
|
|
156
154
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
155
|
+
note?: string | Uint8Array | undefined;
|
|
157
156
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
158
|
-
|
|
157
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
158
|
+
lease?: string | Uint8Array | undefined;
|
|
159
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
159
160
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
160
161
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
161
|
-
validityWindow?: number | undefined;
|
|
162
|
+
validityWindow?: number | bigint | undefined;
|
|
162
163
|
firstValidRound?: bigint | undefined;
|
|
163
164
|
lastValidRound?: bigint | undefined;
|
|
164
|
-
|
|
165
|
-
accountReferences?: string[] | undefined;
|
|
165
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
166
166
|
appReferences?: bigint[] | undefined;
|
|
167
167
|
assetReferences?: bigint[] | undefined;
|
|
168
168
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
169
|
-
sender?: string | undefined;
|
|
169
|
+
sender?: string | algosdk.Address | undefined;
|
|
170
170
|
method: string;
|
|
171
171
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
172
172
|
deployTimeParams?: TealTemplateParams | undefined;
|
|
@@ -197,45 +197,45 @@ export declare class AppFactory {
|
|
|
197
197
|
};
|
|
198
198
|
approvalProgram: Uint8Array;
|
|
199
199
|
clearStateProgram: Uint8Array;
|
|
200
|
-
lease?: string | Uint8Array | undefined;
|
|
201
|
-
note?: string | Uint8Array | undefined;
|
|
202
200
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
201
|
+
note?: string | Uint8Array | undefined;
|
|
203
202
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
204
|
-
|
|
203
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
204
|
+
lease?: string | Uint8Array | undefined;
|
|
205
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
205
206
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
206
207
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
207
|
-
validityWindow?: number | undefined;
|
|
208
|
+
validityWindow?: number | bigint | undefined;
|
|
208
209
|
firstValidRound?: bigint | undefined;
|
|
209
210
|
lastValidRound?: bigint | undefined;
|
|
210
|
-
|
|
211
|
-
accountReferences?: string[] | undefined;
|
|
211
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
212
212
|
appReferences?: bigint[] | undefined;
|
|
213
213
|
assetReferences?: bigint[] | undefined;
|
|
214
214
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
215
|
-
sender?: string | undefined;
|
|
215
|
+
sender?: string | algosdk.Address | undefined;
|
|
216
216
|
method: string;
|
|
217
217
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
218
218
|
updatable?: boolean | undefined;
|
|
219
219
|
deletable?: boolean | undefined;
|
|
220
220
|
extraProgramPages?: number | undefined;
|
|
221
221
|
} & {
|
|
222
|
-
sender:
|
|
222
|
+
sender: algosdk.Address;
|
|
223
223
|
method: Arc56Method;
|
|
224
224
|
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
|
|
225
|
-
|
|
226
|
-
note?: string | Uint8Array | undefined;
|
|
225
|
+
sender: string | algosdk.Address;
|
|
227
226
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
227
|
+
note?: string | Uint8Array | undefined;
|
|
228
228
|
args?: Uint8Array[] | undefined;
|
|
229
229
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
231
|
+
lease?: string | Uint8Array | undefined;
|
|
232
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
232
233
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
233
234
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
234
|
-
validityWindow?: number | undefined;
|
|
235
|
+
validityWindow?: number | bigint | undefined;
|
|
235
236
|
firstValidRound?: bigint | undefined;
|
|
236
237
|
lastValidRound?: bigint | undefined;
|
|
237
|
-
|
|
238
|
-
accountReferences?: string[] | undefined;
|
|
238
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
239
239
|
appReferences?: bigint[] | undefined;
|
|
240
240
|
assetReferences?: bigint[] | undefined;
|
|
241
241
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -249,21 +249,21 @@ export declare class AppFactory {
|
|
|
249
249
|
} | undefined;
|
|
250
250
|
extraProgramPages?: number | undefined;
|
|
251
251
|
}> | AppMethodCall<{
|
|
252
|
-
sender: string;
|
|
252
|
+
sender: string | algosdk.Address;
|
|
253
253
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
254
|
-
rekeyTo?: string | undefined;
|
|
254
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
255
255
|
note?: string | Uint8Array | undefined;
|
|
256
256
|
lease?: string | Uint8Array | undefined;
|
|
257
257
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
258
258
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
259
259
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
260
|
-
validityWindow?: number | undefined;
|
|
260
|
+
validityWindow?: number | bigint | undefined;
|
|
261
261
|
firstValidRound?: bigint | undefined;
|
|
262
262
|
lastValidRound?: bigint | undefined;
|
|
263
263
|
appId: bigint;
|
|
264
264
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
265
265
|
args?: Uint8Array[] | undefined;
|
|
266
|
-
accountReferences?: string[] | undefined;
|
|
266
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
267
267
|
appReferences?: bigint[] | undefined;
|
|
268
268
|
assetReferences?: bigint[] | undefined;
|
|
269
269
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -274,61 +274,61 @@ export declare class AppFactory {
|
|
|
274
274
|
}>;
|
|
275
275
|
/** Return params for a deployment update ABI call */
|
|
276
276
|
deployUpdate: (params: {
|
|
277
|
-
lease?: string | Uint8Array | undefined;
|
|
278
|
-
note?: string | Uint8Array | undefined;
|
|
279
277
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
278
|
+
note?: string | Uint8Array | undefined;
|
|
280
279
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
281
|
-
|
|
280
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
281
|
+
lease?: string | Uint8Array | undefined;
|
|
282
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
282
283
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
283
284
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
284
|
-
validityWindow?: number | undefined;
|
|
285
|
+
validityWindow?: number | bigint | undefined;
|
|
285
286
|
firstValidRound?: bigint | undefined;
|
|
286
287
|
lastValidRound?: bigint | undefined;
|
|
287
|
-
|
|
288
|
-
accountReferences?: string[] | undefined;
|
|
288
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
289
289
|
appReferences?: bigint[] | undefined;
|
|
290
290
|
assetReferences?: bigint[] | undefined;
|
|
291
291
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
292
|
-
sender?: string | undefined;
|
|
292
|
+
sender?: string | algosdk.Address | undefined;
|
|
293
293
|
method: string;
|
|
294
294
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
295
295
|
}) => {
|
|
296
|
-
lease?: string | Uint8Array | undefined;
|
|
297
|
-
note?: string | Uint8Array | undefined;
|
|
298
296
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
297
|
+
note?: string | Uint8Array | undefined;
|
|
299
298
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
300
|
-
|
|
299
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
300
|
+
lease?: string | Uint8Array | undefined;
|
|
301
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
301
302
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
302
303
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
303
|
-
validityWindow?: number | undefined;
|
|
304
|
+
validityWindow?: number | bigint | undefined;
|
|
304
305
|
firstValidRound?: bigint | undefined;
|
|
305
306
|
lastValidRound?: bigint | undefined;
|
|
306
|
-
|
|
307
|
-
accountReferences?: string[] | undefined;
|
|
307
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
308
308
|
appReferences?: bigint[] | undefined;
|
|
309
309
|
assetReferences?: bigint[] | undefined;
|
|
310
310
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
311
|
-
sender?: string | undefined;
|
|
311
|
+
sender?: string | algosdk.Address | undefined;
|
|
312
312
|
method: string;
|
|
313
313
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
314
314
|
} & {
|
|
315
|
-
sender:
|
|
315
|
+
sender: algosdk.Address;
|
|
316
316
|
method: Arc56Method;
|
|
317
317
|
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
|
|
318
|
-
|
|
319
|
-
note?: string | Uint8Array | undefined;
|
|
318
|
+
sender: string | algosdk.Address;
|
|
320
319
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
320
|
+
note?: string | Uint8Array | undefined;
|
|
321
321
|
args?: Uint8Array[] | undefined;
|
|
322
322
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
324
|
+
lease?: string | Uint8Array | undefined;
|
|
325
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
325
326
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
326
327
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
327
|
-
validityWindow?: number | undefined;
|
|
328
|
+
validityWindow?: number | bigint | undefined;
|
|
328
329
|
firstValidRound?: bigint | undefined;
|
|
329
330
|
lastValidRound?: bigint | undefined;
|
|
330
|
-
|
|
331
|
-
accountReferences?: string[] | undefined;
|
|
331
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
332
332
|
appReferences?: bigint[] | undefined;
|
|
333
333
|
assetReferences?: bigint[] | undefined;
|
|
334
334
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -342,21 +342,21 @@ export declare class AppFactory {
|
|
|
342
342
|
} | undefined;
|
|
343
343
|
extraProgramPages?: number | undefined;
|
|
344
344
|
}> | AppMethodCall<{
|
|
345
|
-
sender: string;
|
|
345
|
+
sender: string | algosdk.Address;
|
|
346
346
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
347
|
-
rekeyTo?: string | undefined;
|
|
347
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
348
348
|
note?: string | Uint8Array | undefined;
|
|
349
349
|
lease?: string | Uint8Array | undefined;
|
|
350
350
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
351
351
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
352
352
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
353
|
-
validityWindow?: number | undefined;
|
|
353
|
+
validityWindow?: number | bigint | undefined;
|
|
354
354
|
firstValidRound?: bigint | undefined;
|
|
355
355
|
lastValidRound?: bigint | undefined;
|
|
356
356
|
appId: bigint;
|
|
357
357
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
358
358
|
args?: Uint8Array[] | undefined;
|
|
359
|
-
accountReferences?: string[] | undefined;
|
|
359
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
360
360
|
appReferences?: bigint[] | undefined;
|
|
361
361
|
assetReferences?: bigint[] | undefined;
|
|
362
362
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -367,61 +367,61 @@ export declare class AppFactory {
|
|
|
367
367
|
};
|
|
368
368
|
/** Return params for a deployment delete ABI call */
|
|
369
369
|
deployDelete: (params: {
|
|
370
|
-
lease?: string | Uint8Array | undefined;
|
|
371
|
-
note?: string | Uint8Array | undefined;
|
|
372
370
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
371
|
+
note?: string | Uint8Array | undefined;
|
|
373
372
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
374
|
-
|
|
373
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
374
|
+
lease?: string | Uint8Array | undefined;
|
|
375
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
375
376
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
376
377
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
377
|
-
validityWindow?: number | undefined;
|
|
378
|
+
validityWindow?: number | bigint | undefined;
|
|
378
379
|
firstValidRound?: bigint | undefined;
|
|
379
380
|
lastValidRound?: bigint | undefined;
|
|
380
|
-
|
|
381
|
-
accountReferences?: string[] | undefined;
|
|
381
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
382
382
|
appReferences?: bigint[] | undefined;
|
|
383
383
|
assetReferences?: bigint[] | undefined;
|
|
384
384
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
385
|
-
sender?: string | undefined;
|
|
385
|
+
sender?: string | algosdk.Address | undefined;
|
|
386
386
|
method: string;
|
|
387
387
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
388
388
|
}) => {
|
|
389
|
-
lease?: string | Uint8Array | undefined;
|
|
390
|
-
note?: string | Uint8Array | undefined;
|
|
391
389
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
390
|
+
note?: string | Uint8Array | undefined;
|
|
392
391
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
393
|
-
|
|
392
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
393
|
+
lease?: string | Uint8Array | undefined;
|
|
394
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
394
395
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
395
396
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
396
|
-
validityWindow?: number | undefined;
|
|
397
|
+
validityWindow?: number | bigint | undefined;
|
|
397
398
|
firstValidRound?: bigint | undefined;
|
|
398
399
|
lastValidRound?: bigint | undefined;
|
|
399
|
-
|
|
400
|
-
accountReferences?: string[] | undefined;
|
|
400
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
401
401
|
appReferences?: bigint[] | undefined;
|
|
402
402
|
assetReferences?: bigint[] | undefined;
|
|
403
403
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
404
|
-
sender?: string | undefined;
|
|
404
|
+
sender?: string | algosdk.Address | undefined;
|
|
405
405
|
method: string;
|
|
406
406
|
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
407
407
|
} & {
|
|
408
|
-
sender:
|
|
408
|
+
sender: algosdk.Address;
|
|
409
409
|
method: Arc56Method;
|
|
410
410
|
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
|
|
411
|
-
|
|
412
|
-
note?: string | Uint8Array | undefined;
|
|
411
|
+
sender: string | algosdk.Address;
|
|
413
412
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
413
|
+
note?: string | Uint8Array | undefined;
|
|
414
414
|
args?: Uint8Array[] | undefined;
|
|
415
415
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
416
|
-
|
|
417
|
-
|
|
416
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
417
|
+
lease?: string | Uint8Array | undefined;
|
|
418
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
418
419
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
419
420
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
420
|
-
validityWindow?: number | undefined;
|
|
421
|
+
validityWindow?: number | bigint | undefined;
|
|
421
422
|
firstValidRound?: bigint | undefined;
|
|
422
423
|
lastValidRound?: bigint | undefined;
|
|
423
|
-
|
|
424
|
-
accountReferences?: string[] | undefined;
|
|
424
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
425
425
|
appReferences?: bigint[] | undefined;
|
|
426
426
|
assetReferences?: bigint[] | undefined;
|
|
427
427
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -435,21 +435,21 @@ export declare class AppFactory {
|
|
|
435
435
|
} | undefined;
|
|
436
436
|
extraProgramPages?: number | undefined;
|
|
437
437
|
}> | AppMethodCall<{
|
|
438
|
-
sender: string;
|
|
438
|
+
sender: string | algosdk.Address;
|
|
439
439
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
440
|
-
rekeyTo?: string | undefined;
|
|
440
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
441
441
|
note?: string | Uint8Array | undefined;
|
|
442
442
|
lease?: string | Uint8Array | undefined;
|
|
443
443
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
444
444
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
445
445
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
446
|
-
validityWindow?: number | undefined;
|
|
446
|
+
validityWindow?: number | bigint | undefined;
|
|
447
447
|
firstValidRound?: bigint | undefined;
|
|
448
448
|
lastValidRound?: bigint | undefined;
|
|
449
449
|
appId: bigint;
|
|
450
450
|
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
451
451
|
args?: Uint8Array[] | undefined;
|
|
452
|
-
accountReferences?: string[] | undefined;
|
|
452
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
453
453
|
appReferences?: bigint[] | undefined;
|
|
454
454
|
assetReferences?: bigint[] | undefined;
|
|
455
455
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
@@ -461,22 +461,22 @@ export declare class AppFactory {
|
|
|
461
461
|
bare: {
|
|
462
462
|
/** Return params for a create bare call, including deploy-time TEAL template replacements and compilation if provided */
|
|
463
463
|
create: (params?: {
|
|
464
|
-
lease?: string | Uint8Array | undefined;
|
|
465
|
-
note?: string | Uint8Array | undefined;
|
|
466
464
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
465
|
+
note?: string | Uint8Array | undefined;
|
|
467
466
|
args?: Uint8Array[] | undefined;
|
|
468
467
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
469
|
-
|
|
468
|
+
lease?: string | Uint8Array | undefined;
|
|
469
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
470
470
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
471
471
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
472
|
-
validityWindow?: number | undefined;
|
|
472
|
+
validityWindow?: number | bigint | undefined;
|
|
473
473
|
firstValidRound?: bigint | undefined;
|
|
474
474
|
lastValidRound?: bigint | undefined;
|
|
475
|
-
accountReferences?: string[] | undefined;
|
|
475
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
476
476
|
appReferences?: bigint[] | undefined;
|
|
477
477
|
assetReferences?: bigint[] | undefined;
|
|
478
478
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
479
|
-
sender?: string | undefined;
|
|
479
|
+
sender?: string | algosdk.Address | undefined;
|
|
480
480
|
deployTimeParams?: TealTemplateParams | undefined;
|
|
481
481
|
updatable?: boolean | undefined;
|
|
482
482
|
deletable?: boolean | undefined;
|
|
@@ -494,17 +494,7 @@ export declare class AppFactory {
|
|
|
494
494
|
extraProgramPages?: number | undefined;
|
|
495
495
|
} | undefined) => Promise<{
|
|
496
496
|
approvalProgram: Uint8Array;
|
|
497
|
-
clearStateProgram: Uint8Array;
|
|
498
|
-
* Idempotently deploy (create if not exists, update if changed) an app against the given name for the given creator account, including deploy-time TEAL template placeholder substitutions (if specified).
|
|
499
|
-
*
|
|
500
|
-
* **Note:** When using the return from this function be sure to check `operationPerformed` to get access to various return properties like `transaction`, `confirmation` and `deleteResult`.
|
|
501
|
-
*
|
|
502
|
-
* **Note:** if there is a breaking state schema change to an existing app (and `onSchemaBreak` is set to `'replace'`) the existing app will be deleted and re-created.
|
|
503
|
-
*
|
|
504
|
-
* **Note:** if there is an update (different TEAL code) to an existing app (and `onUpdate` is set to `'replace'`) the existing app will be deleted and re-created.
|
|
505
|
-
* @param params The arguments to control the app deployment
|
|
506
|
-
* @returns The app client and the result of the deployment
|
|
507
|
-
*/
|
|
497
|
+
clearStateProgram: Uint8Array;
|
|
508
498
|
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
509
499
|
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
510
500
|
deployTimeParams: TealTemplateParams | undefined;
|
|
@@ -518,106 +508,106 @@ export declare class AppFactory {
|
|
|
518
508
|
/** The number of byte slices saved in local state. */
|
|
519
509
|
localByteSlices: number;
|
|
520
510
|
};
|
|
521
|
-
lease?: string | Uint8Array | undefined;
|
|
522
|
-
note?: string | Uint8Array | undefined;
|
|
523
511
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
512
|
+
note?: string | Uint8Array | undefined;
|
|
524
513
|
args?: Uint8Array[] | undefined;
|
|
525
514
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
526
|
-
|
|
515
|
+
lease?: string | Uint8Array | undefined;
|
|
516
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
527
517
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
528
518
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
529
|
-
validityWindow?: number | undefined;
|
|
519
|
+
validityWindow?: number | bigint | undefined;
|
|
530
520
|
firstValidRound?: bigint | undefined;
|
|
531
521
|
lastValidRound?: bigint | undefined;
|
|
532
|
-
accountReferences?: string[] | undefined;
|
|
522
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
533
523
|
appReferences?: bigint[] | undefined;
|
|
534
524
|
assetReferences?: bigint[] | undefined;
|
|
535
525
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
536
|
-
sender?: string | undefined;
|
|
526
|
+
sender?: string | algosdk.Address | undefined;
|
|
537
527
|
updatable?: boolean | undefined;
|
|
538
528
|
deletable?: boolean | undefined;
|
|
539
529
|
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
540
530
|
extraProgramPages?: number | undefined;
|
|
541
531
|
} & {
|
|
542
|
-
sender:
|
|
532
|
+
sender: algosdk.Address;
|
|
543
533
|
onComplete: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC;
|
|
544
534
|
}>;
|
|
545
535
|
/** Return params for a deployment update bare call */
|
|
546
536
|
deployUpdate: (params?: {
|
|
547
|
-
lease?: string | Uint8Array | undefined;
|
|
548
|
-
note?: string | Uint8Array | undefined;
|
|
549
537
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
538
|
+
note?: string | Uint8Array | undefined;
|
|
550
539
|
args?: Uint8Array[] | undefined;
|
|
551
540
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
552
|
-
|
|
541
|
+
lease?: string | Uint8Array | undefined;
|
|
542
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
553
543
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
554
544
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
555
|
-
validityWindow?: number | undefined;
|
|
545
|
+
validityWindow?: number | bigint | undefined;
|
|
556
546
|
firstValidRound?: bigint | undefined;
|
|
557
547
|
lastValidRound?: bigint | undefined;
|
|
558
|
-
accountReferences?: string[] | undefined;
|
|
548
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
559
549
|
appReferences?: bigint[] | undefined;
|
|
560
550
|
assetReferences?: bigint[] | undefined;
|
|
561
551
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
562
|
-
sender?: string | undefined;
|
|
552
|
+
sender?: string | algosdk.Address | undefined;
|
|
563
553
|
} | undefined) => {
|
|
564
|
-
lease?: string | Uint8Array | undefined;
|
|
565
|
-
note?: string | Uint8Array | undefined;
|
|
566
554
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
555
|
+
note?: string | Uint8Array | undefined;
|
|
567
556
|
args?: Uint8Array[] | undefined;
|
|
568
557
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
569
|
-
|
|
558
|
+
lease?: string | Uint8Array | undefined;
|
|
559
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
570
560
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
571
561
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
572
|
-
validityWindow?: number | undefined;
|
|
562
|
+
validityWindow?: number | bigint | undefined;
|
|
573
563
|
firstValidRound?: bigint | undefined;
|
|
574
564
|
lastValidRound?: bigint | undefined;
|
|
575
|
-
accountReferences?: string[] | undefined;
|
|
565
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
576
566
|
appReferences?: bigint[] | undefined;
|
|
577
567
|
assetReferences?: bigint[] | undefined;
|
|
578
568
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
579
|
-
sender?: string | undefined;
|
|
569
|
+
sender?: string | algosdk.Address | undefined;
|
|
580
570
|
} & {
|
|
581
|
-
sender:
|
|
571
|
+
sender: algosdk.Address;
|
|
582
572
|
onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
|
|
583
573
|
};
|
|
584
574
|
/** Return params for a deployment delete bare call */
|
|
585
575
|
deployDelete: (params?: {
|
|
586
|
-
lease?: string | Uint8Array | undefined;
|
|
587
|
-
note?: string | Uint8Array | undefined;
|
|
588
576
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
577
|
+
note?: string | Uint8Array | undefined;
|
|
589
578
|
args?: Uint8Array[] | undefined;
|
|
590
579
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
591
|
-
|
|
580
|
+
lease?: string | Uint8Array | undefined;
|
|
581
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
592
582
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
593
583
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
594
|
-
validityWindow?: number | undefined;
|
|
584
|
+
validityWindow?: number | bigint | undefined;
|
|
595
585
|
firstValidRound?: bigint | undefined;
|
|
596
586
|
lastValidRound?: bigint | undefined;
|
|
597
|
-
accountReferences?: string[] | undefined;
|
|
587
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
598
588
|
appReferences?: bigint[] | undefined;
|
|
599
589
|
assetReferences?: bigint[] | undefined;
|
|
600
590
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
601
|
-
sender?: string | undefined;
|
|
591
|
+
sender?: string | algosdk.Address | undefined;
|
|
602
592
|
} | undefined) => {
|
|
603
|
-
lease?: string | Uint8Array | undefined;
|
|
604
|
-
note?: string | Uint8Array | undefined;
|
|
605
593
|
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
594
|
+
note?: string | Uint8Array | undefined;
|
|
606
595
|
args?: Uint8Array[] | undefined;
|
|
607
596
|
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
608
|
-
|
|
597
|
+
lease?: string | Uint8Array | undefined;
|
|
598
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
609
599
|
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
610
600
|
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
611
|
-
validityWindow?: number | undefined;
|
|
601
|
+
validityWindow?: number | bigint | undefined;
|
|
612
602
|
firstValidRound?: bigint | undefined;
|
|
613
603
|
lastValidRound?: bigint | undefined;
|
|
614
|
-
accountReferences?: string[] | undefined;
|
|
604
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
615
605
|
appReferences?: bigint[] | undefined;
|
|
616
606
|
assetReferences?: bigint[] | undefined;
|
|
617
607
|
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
618
|
-
sender?: string | undefined;
|
|
608
|
+
sender?: string | algosdk.Address | undefined;
|
|
619
609
|
} & {
|
|
620
|
-
sender:
|
|
610
|
+
sender: algosdk.Address;
|
|
621
611
|
onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC;
|
|
622
612
|
};
|
|
623
613
|
};
|
|
@@ -654,7 +644,7 @@ export declare class AppFactory {
|
|
|
654
644
|
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
655
645
|
transaction: algosdk.Transaction;
|
|
656
646
|
appId: bigint;
|
|
657
|
-
appAddress:
|
|
647
|
+
appAddress: algosdk.Address;
|
|
658
648
|
};
|
|
659
649
|
}>;
|
|
660
650
|
};
|
|
@@ -679,7 +669,7 @@ export declare class AppFactory {
|
|
|
679
669
|
transactions: algosdk.Transaction[];
|
|
680
670
|
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
681
671
|
transaction: algosdk.Transaction;
|
|
682
|
-
appAddress:
|
|
672
|
+
appAddress: algosdk.Address;
|
|
683
673
|
return?: algosdk.ABIValue | ABIStruct | undefined;
|
|
684
674
|
};
|
|
685
675
|
}>;
|
|
@@ -705,10 +695,10 @@ export declare class AppFactory {
|
|
|
705
695
|
operationPerformed: "create";
|
|
706
696
|
version: string;
|
|
707
697
|
name: string;
|
|
708
|
-
deleted: boolean;
|
|
709
698
|
createdRound: bigint;
|
|
710
699
|
updatedRound: bigint;
|
|
711
700
|
createdMetadata: import("./app").AppDeployMetadata;
|
|
701
|
+
deleted: boolean;
|
|
712
702
|
deletable?: boolean | undefined;
|
|
713
703
|
updatable?: boolean | undefined;
|
|
714
704
|
groupId: string;
|
|
@@ -719,7 +709,7 @@ export declare class AppFactory {
|
|
|
719
709
|
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
720
710
|
transaction: algosdk.Transaction;
|
|
721
711
|
appId: bigint;
|
|
722
|
-
appAddress:
|
|
712
|
+
appAddress: algosdk.Address;
|
|
723
713
|
} | {
|
|
724
714
|
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
725
715
|
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
@@ -727,7 +717,7 @@ export declare class AppFactory {
|
|
|
727
717
|
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
728
718
|
operationPerformed: "update";
|
|
729
719
|
appId: bigint;
|
|
730
|
-
appAddress:
|
|
720
|
+
appAddress: algosdk.Address;
|
|
731
721
|
createdRound: bigint;
|
|
732
722
|
updatedRound: bigint;
|
|
733
723
|
createdMetadata: import("./app").AppDeployMetadata;
|
|
@@ -751,10 +741,10 @@ export declare class AppFactory {
|
|
|
751
741
|
operationPerformed: "replace";
|
|
752
742
|
version: string;
|
|
753
743
|
name: string;
|
|
754
|
-
deleted: boolean;
|
|
755
744
|
createdRound: bigint;
|
|
756
745
|
updatedRound: bigint;
|
|
757
746
|
createdMetadata: import("./app").AppDeployMetadata;
|
|
747
|
+
deleted: boolean;
|
|
758
748
|
deletable?: boolean | undefined;
|
|
759
749
|
updatable?: boolean | undefined;
|
|
760
750
|
groupId: string;
|
|
@@ -765,7 +755,7 @@ export declare class AppFactory {
|
|
|
765
755
|
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
766
756
|
transaction: algosdk.Transaction;
|
|
767
757
|
appId: bigint;
|
|
768
|
-
appAddress:
|
|
758
|
+
appAddress: algosdk.Address;
|
|
769
759
|
deleteResult: import("./transaction").ConfirmedTransactionResult;
|
|
770
760
|
} | {
|
|
771
761
|
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
@@ -774,7 +764,7 @@ export declare class AppFactory {
|
|
|
774
764
|
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
775
765
|
operationPerformed: "nothing";
|
|
776
766
|
appId: bigint;
|
|
777
|
-
appAddress:
|
|
767
|
+
appAddress: algosdk.Address;
|
|
778
768
|
createdRound: bigint;
|
|
779
769
|
updatedRound: bigint;
|
|
780
770
|
createdMetadata: import("./app").AppDeployMetadata;
|
package/types/app-factory.js
CHANGED
|
@@ -5,7 +5,7 @@ var types_app = require('./app.js');
|
|
|
5
5
|
var types_appArc56 = require('./app-arc56.js');
|
|
6
6
|
var types_appClient = require('./app-client.js');
|
|
7
7
|
|
|
8
|
-
var SourceMap = algosdk.
|
|
8
|
+
var SourceMap = algosdk.ProgramSourceMap;
|
|
9
9
|
var OnApplicationComplete = algosdk.OnApplicationComplete;
|
|
10
10
|
/**
|
|
11
11
|
* ARC-56/ARC-32 app factory that, for a given app spec, allows you to create
|
|
@@ -81,7 +81,7 @@ class AppFactory {
|
|
|
81
81
|
this._appName = params.appName ?? this._appSpec.name;
|
|
82
82
|
this._algorand = params.algorand;
|
|
83
83
|
this._version = params.version ?? '1.0';
|
|
84
|
-
this._defaultSender = params.defaultSender;
|
|
84
|
+
this._defaultSender = typeof params.defaultSender === 'string' ? algosdk.Address.fromString(params.defaultSender) : params.defaultSender;
|
|
85
85
|
this._defaultSigner = params.defaultSigner;
|
|
86
86
|
this._deployTimeParams = params.deployTimeParams;
|
|
87
87
|
this._updatable = params.updatable;
|
|
@@ -387,7 +387,8 @@ class AppFactory {
|
|
|
387
387
|
if (!sender && !this._defaultSender) {
|
|
388
388
|
throw new Error(`No sender provided and no default sender present in app client for call to app ${this._appName}`);
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
const s = sender ?? this._defaultSender;
|
|
391
|
+
return typeof s === 'string' ? algosdk.Address.fromString(s) : s;
|
|
391
392
|
}
|
|
392
393
|
/**
|
|
393
394
|
* Checks for decode errors on the SendAppTransactionResult and maps the return value to the specified type
|