@algorandfoundation/algokit-utils 7.0.0-beta.2 → 7.0.0-beta.4
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 +1 -1
- package/amount.d.ts +14 -4
- package/amount.d.ts.map +1 -1
- package/amount.js +6 -0
- package/amount.js.map +1 -1
- package/amount.mjs +6 -0
- package/amount.mjs.map +1 -1
- package/app-client.d.ts +15 -0
- package/app-client.d.ts.map +1 -1
- package/app-client.js +15 -0
- package/app-client.js.map +1 -1
- package/app-client.mjs +15 -0
- package/app-client.mjs.map +1 -1
- package/app-deploy.d.ts.map +1 -1
- package/app-deploy.js +4 -6
- package/app-deploy.js.map +1 -1
- package/app-deploy.mjs +5 -7
- package/app-deploy.mjs.map +1 -1
- package/app.d.ts +2 -2
- package/app.d.ts.map +1 -1
- package/app.js +7 -3
- package/app.js.map +1 -1
- package/app.mjs +7 -3
- package/app.mjs.map +1 -1
- package/asset.d.ts.map +1 -1
- package/asset.js +0 -3
- package/asset.js.map +1 -1
- package/asset.mjs +0 -3
- package/asset.mjs.map +1 -1
- package/debugging/debugging.d.ts +1 -1
- package/debugging/debugging.d.ts.map +1 -1
- package/debugging/debugging.js +4 -5
- package/debugging/debugging.js.map +1 -1
- package/debugging/debugging.mjs +4 -5
- package/debugging/debugging.mjs.map +1 -1
- package/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/index.js +37 -37
- package/index.mjs +5 -5
- package/package.json +1 -1
- package/testing/test-logger.d.ts.map +1 -1
- package/testing/test-logger.js +1 -3
- package/testing/test-logger.js.map +1 -1
- package/testing/test-logger.mjs +1 -3
- package/testing/test-logger.mjs.map +1 -1
- package/transaction/legacy-bridge.d.ts +3 -3
- package/transaction/legacy-bridge.d.ts.map +1 -1
- package/transaction/legacy-bridge.js +1 -1
- package/transaction/legacy-bridge.js.map +1 -1
- package/transaction/legacy-bridge.mjs +2 -2
- package/transaction/legacy-bridge.mjs.map +1 -1
- package/transaction/transaction.d.ts +34 -3
- package/transaction/transaction.d.ts.map +1 -1
- package/transaction/transaction.js +42 -11
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs +42 -11
- package/transaction/transaction.mjs.map +1 -1
- package/transfer/transfer.js +2 -2
- package/transfer/transfer.js.map +1 -1
- package/transfer/transfer.mjs +2 -2
- package/transfer/transfer.mjs.map +1 -1
- package/types/account-manager.d.ts +2 -2
- package/types/account-manager.d.ts.map +1 -1
- package/types/account-manager.js +1 -1
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +1 -1
- package/types/account-manager.mjs.map +1 -1
- package/types/algorand-client-interface.d.ts +29 -0
- package/types/algorand-client-interface.d.ts.map +1 -0
- package/types/algorand-client-interface.js +3 -0
- package/types/algorand-client-interface.js.map +1 -0
- package/types/algorand-client-interface.mjs +2 -0
- package/types/algorand-client-interface.mjs.map +1 -0
- package/types/algorand-client-transaction-sender.d.ts +12 -12
- package/types/algorand-client-transaction-sender.d.ts.map +1 -1
- package/types/algorand-client-transaction-sender.js +22 -6
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs +22 -6
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/algorand-client.d.ts +2 -1
- package/types/algorand-client.d.ts.map +1 -1
- 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/amount.d.ts +10 -10
- package/types/amount.d.ts.map +1 -1
- package/types/amount.js +7 -7
- package/types/amount.js.map +1 -1
- package/types/amount.mjs +7 -7
- package/types/amount.mjs.map +1 -1
- package/types/app-arc56.d.ts +326 -0
- package/types/app-arc56.d.ts.map +1 -0
- package/types/app-arc56.js +163 -0
- package/types/app-arc56.js.map +1 -0
- package/types/app-arc56.mjs +154 -0
- package/types/app-arc56.mjs.map +1 -0
- package/types/app-client.d.ts +1479 -7
- package/types/app-client.d.ts.map +1 -1
- package/types/app-client.js +814 -8
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +814 -9
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +19 -13
- package/types/app-deployer.d.ts.map +1 -1
- package/types/app-deployer.js +2 -2
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +2 -2
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +967 -0
- package/types/app-factory.d.ts.map +1 -0
- package/types/app-factory.js +322 -0
- package/types/app-factory.js.map +1 -0
- package/types/app-factory.mjs +320 -0
- package/types/app-factory.mjs.map +1 -0
- package/types/app-manager.d.ts +12 -2
- package/types/app-manager.d.ts.map +1 -1
- package/types/app-manager.js +11 -2
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +11 -2
- package/types/app-manager.mjs.map +1 -1
- package/types/app-spec.d.ts +2 -0
- package/types/app-spec.d.ts.map +1 -1
- package/types/app-spec.js +115 -0
- package/types/app-spec.js.map +1 -1
- package/types/app-spec.mjs +114 -0
- package/types/app-spec.mjs.map +1 -1
- package/types/app.d.ts +6 -2
- package/types/app.d.ts.map +1 -1
- package/types/asset-manager.d.ts +2 -1
- package/types/asset-manager.d.ts.map +1 -1
- package/types/asset-manager.js +0 -1
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +0 -1
- package/types/asset-manager.mjs.map +1 -1
- package/types/client-manager.d.ts +109 -50
- package/types/client-manager.d.ts.map +1 -1
- package/types/client-manager.js +137 -23
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +138 -24
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +31 -14
- package/types/composer.d.ts.map +1 -1
- package/types/composer.js +61 -6
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +62 -7
- package/types/composer.mjs.map +1 -1
- package/types/debugging.d.ts +3 -2
- package/types/debugging.d.ts.map +1 -1
- package/types/debugging.js.map +1 -1
- package/types/debugging.mjs.map +1 -1
- package/types/dispenser-client.d.ts +1 -1
- package/types/dispenser-client.d.ts.map +1 -1
- package/types/dispenser-client.js +1 -1
- package/types/dispenser-client.js.map +1 -1
- package/types/dispenser-client.mjs +1 -1
- package/types/dispenser-client.mjs.map +1 -1
- package/types/network-client.d.ts +13 -0
- package/types/network-client.d.ts.map +1 -1
- package/types/network-client.js.map +1 -1
- package/types/network-client.mjs.map +1 -1
- package/types/testing.d.ts +3 -3
- package/types/testing.d.ts.map +1 -1
- package/types/transaction.d.ts +14 -1
- package/types/transaction.d.ts.map +1 -1
- package/util.d.ts +2 -1
- package/util.d.ts.map +1 -1
- package/util.js +11 -1
- package/util.js.map +1 -1
- package/util.mjs +11 -2
- package/util.mjs.map +1 -1
|
@@ -0,0 +1,967 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import algosdk from 'algosdk';
|
|
3
|
+
import { AlgorandClientInterface } from './algorand-client-interface';
|
|
4
|
+
import { AppReturn, SendAppTransactionResult, TealTemplateParams } from './app';
|
|
5
|
+
import { ABIStruct, Arc56Contract, Arc56Method } from './app-arc56';
|
|
6
|
+
import { AppClient, AppClientBareCallParams, AppClientCompilationParams, AppClientMethodCallParams, AppClientParams, AppSourceMaps, ResolveAppClientByCreatorAndName } from './app-client';
|
|
7
|
+
import { AppDeployParams } from './app-deployer';
|
|
8
|
+
import { AppSpec } from './app-spec';
|
|
9
|
+
import { Expand } from './expand';
|
|
10
|
+
import { ExecuteParams } from './transaction';
|
|
11
|
+
import OnApplicationComplete = algosdk.OnApplicationComplete;
|
|
12
|
+
import ABIValue = algosdk.ABIValue;
|
|
13
|
+
/** Parameters to create an app client */
|
|
14
|
+
export interface AppFactoryParams {
|
|
15
|
+
/** The ARC-56 or ARC-32 application spec as either:
|
|
16
|
+
* * Parsed JSON ARC-56 `Contract`
|
|
17
|
+
* * Parsed JSON ARC-32 `AppSpec`
|
|
18
|
+
* * Raw JSON string (in either ARC-56 or ARC-32 format)
|
|
19
|
+
*/
|
|
20
|
+
appSpec: Arc56Contract | AppSpec | string;
|
|
21
|
+
/** `AlgorandClient` instance */
|
|
22
|
+
algorand: AlgorandClientInterface;
|
|
23
|
+
/**
|
|
24
|
+
* Optional override for the app name; used for on-chain metadata and lookups.
|
|
25
|
+
* Defaults to the ARC-32/ARC-56 app spec name.
|
|
26
|
+
*/
|
|
27
|
+
appName?: string;
|
|
28
|
+
/** Optional address to use for the account to use as the default sender for calls. */
|
|
29
|
+
defaultSender?: string;
|
|
30
|
+
/** The version of app that is / will be deployed; defaults to 1.0 */
|
|
31
|
+
version?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether or not the contract should have deploy-time immutability control set, undefined = ignore.
|
|
34
|
+
* If specified here will get used in calls to `deploy` and `create` calls unless overridden in those calls.
|
|
35
|
+
*
|
|
36
|
+
* Useful if you want to vend multiple contracts from the same factory without specifying this value
|
|
37
|
+
* for each call.
|
|
38
|
+
*/
|
|
39
|
+
updatable?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether or not the contract should have deploy-time permanence control set, undefined = ignore.
|
|
42
|
+
* If specified here will get used in calls to `deploy` and `create` calls unless overridden in those calls.
|
|
43
|
+
*
|
|
44
|
+
* Useful if you want to vend multiple contracts from the same factory without specifying this value
|
|
45
|
+
* for each call.
|
|
46
|
+
*/
|
|
47
|
+
deletable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Optional deploy-time TEAL template replacement parameters.
|
|
50
|
+
* If specified here will get used in calls to `deploy` and `create` calls unless overridden in those calls.
|
|
51
|
+
*
|
|
52
|
+
* Useful if you want to vend multiple contracts from the same factory without specifying this value
|
|
53
|
+
* for each call.
|
|
54
|
+
*/
|
|
55
|
+
deployTimeParams?: TealTemplateParams;
|
|
56
|
+
}
|
|
57
|
+
/** onComplete parameter for a create app call */
|
|
58
|
+
export type CreateOnComplete = {
|
|
59
|
+
onComplete?: Exclude<OnApplicationComplete, OnApplicationComplete.ClearStateOC>;
|
|
60
|
+
};
|
|
61
|
+
/** Specifies a schema used for creating an app */
|
|
62
|
+
export type CreateSchema = {
|
|
63
|
+
/** The state schema for the app. This is immutable once the app is created. By default uses the ARC32/ARC-56 spec. */
|
|
64
|
+
schema?: {
|
|
65
|
+
/** The number of integers saved in global state. */
|
|
66
|
+
globalInts: number;
|
|
67
|
+
/** The number of byte slices saved in global state. */
|
|
68
|
+
globalByteSlices: number;
|
|
69
|
+
/** The number of integers saved in local state. */
|
|
70
|
+
localInts: number;
|
|
71
|
+
/** The number of byte slices saved in local state. */
|
|
72
|
+
localByteSlices: number;
|
|
73
|
+
};
|
|
74
|
+
/** Number of extra pages required for the programs.
|
|
75
|
+
* Defaults to the number needed for the programs in this call if not specified.
|
|
76
|
+
* This is immutable once the app is created. */
|
|
77
|
+
extraProgramPages?: number;
|
|
78
|
+
};
|
|
79
|
+
/** Parameters to define a create call for an `AppFactory` */
|
|
80
|
+
export type AppFactoryCreateParams = Expand<AppClientMethodCallParams & AppClientCompilationParams & CreateOnComplete & ExecuteParams & CreateSchema> | Expand<AppClientBareCallParams & AppClientCompilationParams & CreateOnComplete & ExecuteParams & CreateSchema>;
|
|
81
|
+
/** Parameters to define a deployment for an `AppFactory` */
|
|
82
|
+
export type AppFactoryDeployParams = Expand<Omit<AppDeployParams, 'createParams' | 'updateParams' | 'deleteParams' | 'metadata'> & {
|
|
83
|
+
/** Create transaction parameters to use if a create needs to be issued as part of deployment */
|
|
84
|
+
createParams?: Expand<AppClientMethodCallParams & CreateOnComplete & CreateSchema> | Expand<AppClientBareCallParams & CreateOnComplete & CreateSchema>;
|
|
85
|
+
/** Update transaction parameters to use if a create needs to be issued as part of deployment */
|
|
86
|
+
updateParams?: AppClientMethodCallParams | AppClientBareCallParams;
|
|
87
|
+
/** Delete transaction parameters to use if a create needs to be issued as part of deployment */
|
|
88
|
+
deleteParams?: AppClientMethodCallParams | AppClientBareCallParams;
|
|
89
|
+
/**
|
|
90
|
+
* Whether or not the contract should have deploy-time immutability control set.
|
|
91
|
+
* `undefined` = use AppFactory constructor value if set or base it on the app spec.
|
|
92
|
+
*/
|
|
93
|
+
updatable?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether or not the contract should have deploy-time permanence control set.
|
|
96
|
+
* `undefined` = use AppFactory constructor value if set or base it on the app spec.
|
|
97
|
+
*/
|
|
98
|
+
deletable?: boolean;
|
|
99
|
+
}>;
|
|
100
|
+
/**
|
|
101
|
+
* ARC-56/ARC-32 app factory that, for a given app spec, allows you to create
|
|
102
|
+
* and deploy one or more app instances and to create one or more app clients
|
|
103
|
+
* to interact with those (or other) app instances.
|
|
104
|
+
*/
|
|
105
|
+
export declare class AppFactory {
|
|
106
|
+
private _appSpec;
|
|
107
|
+
private _appName;
|
|
108
|
+
private _algorand;
|
|
109
|
+
private _version;
|
|
110
|
+
private _defaultSender?;
|
|
111
|
+
private _deployTimeParams?;
|
|
112
|
+
private _updatable?;
|
|
113
|
+
private _deletable?;
|
|
114
|
+
private _approvalSourceMap;
|
|
115
|
+
private _clearSourceMap;
|
|
116
|
+
private _paramsMethods;
|
|
117
|
+
constructor(params: AppFactoryParams);
|
|
118
|
+
/** Get parameters to define create and deploy related calls to the current app */
|
|
119
|
+
get params(): {
|
|
120
|
+
/** Return params for a create ABI call, including deploy-time TEAL template replacements and compilation if provided */
|
|
121
|
+
create: (params: {
|
|
122
|
+
lease?: string | Uint8Array | undefined;
|
|
123
|
+
note?: string | Uint8Array | undefined;
|
|
124
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
125
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
126
|
+
rekeyTo?: string | undefined;
|
|
127
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
128
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
129
|
+
validityWindow?: number | undefined;
|
|
130
|
+
firstValidRound?: bigint | undefined;
|
|
131
|
+
lastValidRound?: bigint | undefined;
|
|
132
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
133
|
+
accountReferences?: string[] | undefined;
|
|
134
|
+
appReferences?: bigint[] | undefined;
|
|
135
|
+
assetReferences?: bigint[] | undefined;
|
|
136
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
137
|
+
sender?: string | undefined;
|
|
138
|
+
method: string;
|
|
139
|
+
args?: (algosdk.ABIValue | import("./composer").AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
140
|
+
deployTimeParams?: TealTemplateParams | undefined;
|
|
141
|
+
updatable?: boolean | undefined;
|
|
142
|
+
deletable?: boolean | undefined;
|
|
143
|
+
schema?: {
|
|
144
|
+
/** The number of integers saved in global state. */
|
|
145
|
+
globalInts: number;
|
|
146
|
+
/** The number of byte slices saved in global state. */
|
|
147
|
+
globalByteSlices: number;
|
|
148
|
+
/** The number of integers saved in local state. */
|
|
149
|
+
localInts: number;
|
|
150
|
+
/** The number of byte slices saved in local state. */
|
|
151
|
+
localByteSlices: number;
|
|
152
|
+
} | undefined;
|
|
153
|
+
extraProgramPages?: number | undefined;
|
|
154
|
+
}) => Promise<({
|
|
155
|
+
approvalProgram: Buffer;
|
|
156
|
+
clearStateProgram: Buffer;
|
|
157
|
+
compiledApproval?: undefined;
|
|
158
|
+
compiledClear?: undefined;
|
|
159
|
+
deployTimeParams: TealTemplateParams | undefined;
|
|
160
|
+
schema: {
|
|
161
|
+
/** The number of integers saved in global state. */
|
|
162
|
+
globalInts: number;
|
|
163
|
+
/** The number of byte slices saved in global state. */
|
|
164
|
+
globalByteSlices: number;
|
|
165
|
+
/** The number of integers saved in local state. */
|
|
166
|
+
localInts: number;
|
|
167
|
+
/** The number of byte slices saved in local state. */
|
|
168
|
+
localByteSlices: number;
|
|
169
|
+
};
|
|
170
|
+
lease?: string | Uint8Array | undefined;
|
|
171
|
+
note?: string | Uint8Array | undefined;
|
|
172
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
173
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
174
|
+
rekeyTo?: string | undefined;
|
|
175
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
176
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
177
|
+
validityWindow?: number | undefined;
|
|
178
|
+
firstValidRound?: bigint | undefined;
|
|
179
|
+
lastValidRound?: bigint | undefined;
|
|
180
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
181
|
+
accountReferences?: string[] | undefined;
|
|
182
|
+
appReferences?: bigint[] | undefined;
|
|
183
|
+
assetReferences?: bigint[] | undefined;
|
|
184
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
185
|
+
sender?: string | undefined;
|
|
186
|
+
method: string;
|
|
187
|
+
args?: (algosdk.ABIValue | import("./composer").AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
188
|
+
updatable?: boolean | undefined;
|
|
189
|
+
deletable?: boolean | undefined;
|
|
190
|
+
extraProgramPages?: number | undefined;
|
|
191
|
+
} | {
|
|
192
|
+
approvalProgram: Uint8Array;
|
|
193
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
194
|
+
clearStateProgram: Uint8Array;
|
|
195
|
+
compiledClear: import("./app").CompiledTeal;
|
|
196
|
+
deployTimeParams: TealTemplateParams | undefined;
|
|
197
|
+
schema: {
|
|
198
|
+
/** The number of integers saved in global state. */
|
|
199
|
+
globalInts: number;
|
|
200
|
+
/** The number of byte slices saved in global state. */
|
|
201
|
+
globalByteSlices: number;
|
|
202
|
+
/** The number of integers saved in local state. */
|
|
203
|
+
localInts: number;
|
|
204
|
+
/** The number of byte slices saved in local state. */
|
|
205
|
+
localByteSlices: number;
|
|
206
|
+
};
|
|
207
|
+
lease?: string | Uint8Array | undefined;
|
|
208
|
+
note?: string | Uint8Array | undefined;
|
|
209
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
210
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
211
|
+
rekeyTo?: string | undefined;
|
|
212
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
213
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
214
|
+
validityWindow?: number | undefined;
|
|
215
|
+
firstValidRound?: bigint | undefined;
|
|
216
|
+
lastValidRound?: bigint | undefined;
|
|
217
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
218
|
+
accountReferences?: string[] | undefined;
|
|
219
|
+
appReferences?: bigint[] | undefined;
|
|
220
|
+
assetReferences?: bigint[] | undefined;
|
|
221
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
222
|
+
sender?: string | undefined;
|
|
223
|
+
method: string;
|
|
224
|
+
args?: (algosdk.ABIValue | import("./composer").AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
225
|
+
updatable?: boolean | undefined;
|
|
226
|
+
deletable?: boolean | undefined;
|
|
227
|
+
extraProgramPages?: number | undefined;
|
|
228
|
+
}) & {
|
|
229
|
+
sender: string;
|
|
230
|
+
method: Arc56Method;
|
|
231
|
+
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
232
|
+
lease?: string | Uint8Array | undefined;
|
|
233
|
+
note?: string | Uint8Array | undefined;
|
|
234
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
235
|
+
args?: Uint8Array[] | undefined;
|
|
236
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
237
|
+
sender: string;
|
|
238
|
+
rekeyTo?: string | undefined;
|
|
239
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
240
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
241
|
+
validityWindow?: number | undefined;
|
|
242
|
+
firstValidRound?: bigint | undefined;
|
|
243
|
+
lastValidRound?: bigint | undefined;
|
|
244
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
245
|
+
accountReferences?: string[] | undefined;
|
|
246
|
+
appReferences?: bigint[] | undefined;
|
|
247
|
+
assetReferences?: bigint[] | undefined;
|
|
248
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
249
|
+
approvalProgram: string | Uint8Array;
|
|
250
|
+
clearStateProgram: string | Uint8Array;
|
|
251
|
+
schema?: {
|
|
252
|
+
globalInts: number;
|
|
253
|
+
globalByteSlices: number;
|
|
254
|
+
localInts: number;
|
|
255
|
+
localByteSlices: number;
|
|
256
|
+
} | undefined;
|
|
257
|
+
extraProgramPages?: number | undefined;
|
|
258
|
+
}> | import("./composer").AppMethodCall<{
|
|
259
|
+
sender: string;
|
|
260
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
261
|
+
rekeyTo?: string | undefined;
|
|
262
|
+
note?: string | Uint8Array | undefined;
|
|
263
|
+
lease?: string | Uint8Array | undefined;
|
|
264
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
265
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
266
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
267
|
+
validityWindow?: number | undefined;
|
|
268
|
+
firstValidRound?: bigint | undefined;
|
|
269
|
+
lastValidRound?: bigint | undefined;
|
|
270
|
+
appId: bigint;
|
|
271
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
272
|
+
args?: Uint8Array[] | undefined;
|
|
273
|
+
accountReferences?: string[] | undefined;
|
|
274
|
+
appReferences?: bigint[] | undefined;
|
|
275
|
+
assetReferences?: bigint[] | undefined;
|
|
276
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
277
|
+
approvalProgram: string | Uint8Array;
|
|
278
|
+
clearStateProgram: string | Uint8Array;
|
|
279
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
|
|
280
|
+
onComplete: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC;
|
|
281
|
+
}>;
|
|
282
|
+
/** Return params for a deployment update ABI call */
|
|
283
|
+
deployUpdate: (params: {
|
|
284
|
+
lease?: string | Uint8Array | undefined;
|
|
285
|
+
note?: string | Uint8Array | undefined;
|
|
286
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
287
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
288
|
+
rekeyTo?: string | undefined;
|
|
289
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
290
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
291
|
+
validityWindow?: number | undefined;
|
|
292
|
+
firstValidRound?: bigint | undefined;
|
|
293
|
+
lastValidRound?: bigint | undefined;
|
|
294
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
295
|
+
accountReferences?: string[] | undefined;
|
|
296
|
+
appReferences?: bigint[] | undefined;
|
|
297
|
+
assetReferences?: bigint[] | undefined;
|
|
298
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
299
|
+
sender?: string | undefined;
|
|
300
|
+
method: string;
|
|
301
|
+
args?: (algosdk.ABIValue | import("./composer").AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
302
|
+
}) => {
|
|
303
|
+
lease?: string | Uint8Array | undefined;
|
|
304
|
+
note?: string | Uint8Array | undefined;
|
|
305
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
306
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
307
|
+
rekeyTo?: string | undefined;
|
|
308
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
309
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
310
|
+
validityWindow?: number | undefined;
|
|
311
|
+
firstValidRound?: bigint | undefined;
|
|
312
|
+
lastValidRound?: bigint | undefined;
|
|
313
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
314
|
+
accountReferences?: string[] | undefined;
|
|
315
|
+
appReferences?: bigint[] | undefined;
|
|
316
|
+
assetReferences?: bigint[] | undefined;
|
|
317
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
318
|
+
sender?: string | undefined;
|
|
319
|
+
method: string;
|
|
320
|
+
args?: (algosdk.ABIValue | import("./composer").AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
321
|
+
} & {
|
|
322
|
+
sender: string;
|
|
323
|
+
method: Arc56Method;
|
|
324
|
+
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
325
|
+
lease?: string | Uint8Array | undefined;
|
|
326
|
+
note?: string | Uint8Array | undefined;
|
|
327
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
328
|
+
args?: Uint8Array[] | undefined;
|
|
329
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
330
|
+
sender: string;
|
|
331
|
+
rekeyTo?: string | undefined;
|
|
332
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
333
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
334
|
+
validityWindow?: number | undefined;
|
|
335
|
+
firstValidRound?: bigint | undefined;
|
|
336
|
+
lastValidRound?: bigint | undefined;
|
|
337
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
338
|
+
accountReferences?: string[] | undefined;
|
|
339
|
+
appReferences?: bigint[] | undefined;
|
|
340
|
+
assetReferences?: bigint[] | undefined;
|
|
341
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
342
|
+
approvalProgram: string | Uint8Array;
|
|
343
|
+
clearStateProgram: string | Uint8Array;
|
|
344
|
+
schema?: {
|
|
345
|
+
globalInts: number;
|
|
346
|
+
globalByteSlices: number;
|
|
347
|
+
localInts: number;
|
|
348
|
+
localByteSlices: number;
|
|
349
|
+
} | undefined;
|
|
350
|
+
extraProgramPages?: number | undefined;
|
|
351
|
+
}> | import("./composer").AppMethodCall<{
|
|
352
|
+
sender: string;
|
|
353
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
354
|
+
rekeyTo?: string | undefined;
|
|
355
|
+
note?: string | Uint8Array | undefined;
|
|
356
|
+
lease?: string | Uint8Array | undefined;
|
|
357
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
358
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
359
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
360
|
+
validityWindow?: number | undefined;
|
|
361
|
+
firstValidRound?: bigint | undefined;
|
|
362
|
+
lastValidRound?: bigint | undefined;
|
|
363
|
+
appId: bigint;
|
|
364
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
365
|
+
args?: Uint8Array[] | undefined;
|
|
366
|
+
accountReferences?: string[] | undefined;
|
|
367
|
+
appReferences?: bigint[] | undefined;
|
|
368
|
+
assetReferences?: bigint[] | undefined;
|
|
369
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
370
|
+
approvalProgram: string | Uint8Array;
|
|
371
|
+
clearStateProgram: string | Uint8Array;
|
|
372
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
|
|
373
|
+
onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
|
|
374
|
+
};
|
|
375
|
+
/** Return params for a deployment delete ABI call */
|
|
376
|
+
deployDelete: (params: {
|
|
377
|
+
lease?: string | Uint8Array | undefined;
|
|
378
|
+
note?: string | Uint8Array | undefined;
|
|
379
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
380
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
381
|
+
rekeyTo?: string | undefined;
|
|
382
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
383
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
384
|
+
validityWindow?: number | undefined;
|
|
385
|
+
firstValidRound?: bigint | undefined;
|
|
386
|
+
lastValidRound?: bigint | undefined;
|
|
387
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
388
|
+
accountReferences?: string[] | undefined;
|
|
389
|
+
appReferences?: bigint[] | undefined;
|
|
390
|
+
assetReferences?: bigint[] | undefined;
|
|
391
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
392
|
+
sender?: string | undefined;
|
|
393
|
+
method: string;
|
|
394
|
+
args?: (algosdk.ABIValue | import("./composer").AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
395
|
+
}) => {
|
|
396
|
+
lease?: string | Uint8Array | undefined;
|
|
397
|
+
note?: string | Uint8Array | undefined;
|
|
398
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
399
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
400
|
+
rekeyTo?: string | undefined;
|
|
401
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
402
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
403
|
+
validityWindow?: number | undefined;
|
|
404
|
+
firstValidRound?: bigint | undefined;
|
|
405
|
+
lastValidRound?: bigint | undefined;
|
|
406
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
407
|
+
accountReferences?: string[] | undefined;
|
|
408
|
+
appReferences?: bigint[] | undefined;
|
|
409
|
+
assetReferences?: bigint[] | undefined;
|
|
410
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
411
|
+
sender?: string | undefined;
|
|
412
|
+
method: string;
|
|
413
|
+
args?: (algosdk.ABIValue | import("./composer").AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
414
|
+
} & {
|
|
415
|
+
sender: string;
|
|
416
|
+
method: Arc56Method;
|
|
417
|
+
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
418
|
+
lease?: string | Uint8Array | undefined;
|
|
419
|
+
note?: string | Uint8Array | undefined;
|
|
420
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
421
|
+
args?: Uint8Array[] | undefined;
|
|
422
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
423
|
+
sender: string;
|
|
424
|
+
rekeyTo?: string | undefined;
|
|
425
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
426
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
427
|
+
validityWindow?: number | undefined;
|
|
428
|
+
firstValidRound?: bigint | undefined;
|
|
429
|
+
lastValidRound?: bigint | undefined;
|
|
430
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
431
|
+
accountReferences?: string[] | undefined;
|
|
432
|
+
appReferences?: bigint[] | undefined;
|
|
433
|
+
assetReferences?: bigint[] | undefined;
|
|
434
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
435
|
+
approvalProgram: string | Uint8Array;
|
|
436
|
+
clearStateProgram: string | Uint8Array;
|
|
437
|
+
schema?: {
|
|
438
|
+
globalInts: number;
|
|
439
|
+
globalByteSlices: number;
|
|
440
|
+
localInts: number;
|
|
441
|
+
localByteSlices: number;
|
|
442
|
+
} | undefined;
|
|
443
|
+
extraProgramPages?: number | undefined;
|
|
444
|
+
}> | import("./composer").AppMethodCall<{
|
|
445
|
+
sender: string;
|
|
446
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
447
|
+
rekeyTo?: string | undefined;
|
|
448
|
+
note?: string | Uint8Array | undefined;
|
|
449
|
+
lease?: string | Uint8Array | undefined;
|
|
450
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
451
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
452
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
453
|
+
validityWindow?: number | undefined;
|
|
454
|
+
firstValidRound?: bigint | undefined;
|
|
455
|
+
lastValidRound?: bigint | undefined;
|
|
456
|
+
appId: bigint;
|
|
457
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
458
|
+
args?: Uint8Array[] | undefined;
|
|
459
|
+
accountReferences?: string[] | undefined;
|
|
460
|
+
appReferences?: bigint[] | undefined;
|
|
461
|
+
assetReferences?: bigint[] | undefined;
|
|
462
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
463
|
+
approvalProgram: string | Uint8Array;
|
|
464
|
+
clearStateProgram: string | Uint8Array;
|
|
465
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams>)[] | undefined;
|
|
466
|
+
onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC;
|
|
467
|
+
};
|
|
468
|
+
bare: {
|
|
469
|
+
/** Return params for a create bare call, including deploy-time TEAL template replacements and compilation if provided */
|
|
470
|
+
create: (params?: {
|
|
471
|
+
lease?: string | Uint8Array | undefined;
|
|
472
|
+
note?: string | Uint8Array | undefined;
|
|
473
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
474
|
+
args?: Uint8Array[] | undefined;
|
|
475
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
476
|
+
rekeyTo?: string | undefined;
|
|
477
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
478
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
479
|
+
validityWindow?: number | undefined;
|
|
480
|
+
firstValidRound?: bigint | undefined;
|
|
481
|
+
lastValidRound?: bigint | undefined;
|
|
482
|
+
accountReferences?: string[] | undefined;
|
|
483
|
+
appReferences?: bigint[] | undefined;
|
|
484
|
+
assetReferences?: bigint[] | undefined;
|
|
485
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
486
|
+
sender?: string | undefined;
|
|
487
|
+
deployTimeParams?: TealTemplateParams | undefined;
|
|
488
|
+
updatable?: boolean | undefined;
|
|
489
|
+
deletable?: boolean | undefined;
|
|
490
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
491
|
+
schema?: {
|
|
492
|
+
/** The number of integers saved in global state. */
|
|
493
|
+
globalInts: number;
|
|
494
|
+
/** The number of byte slices saved in global state. */
|
|
495
|
+
globalByteSlices: number;
|
|
496
|
+
/** The number of integers saved in local state. */
|
|
497
|
+
localInts: number;
|
|
498
|
+
/** The number of byte slices saved in local state. */
|
|
499
|
+
localByteSlices: number;
|
|
500
|
+
} | undefined;
|
|
501
|
+
extraProgramPages?: number | undefined;
|
|
502
|
+
} | undefined) => Promise<({
|
|
503
|
+
approvalProgram: Buffer;
|
|
504
|
+
clearStateProgram: Buffer;
|
|
505
|
+
compiledApproval?: undefined;
|
|
506
|
+
compiledClear?: undefined;
|
|
507
|
+
deployTimeParams: TealTemplateParams | undefined;
|
|
508
|
+
schema: {
|
|
509
|
+
/** The number of integers saved in global state. */
|
|
510
|
+
globalInts: number;
|
|
511
|
+
/** The number of byte slices saved in global state. */
|
|
512
|
+
globalByteSlices: number;
|
|
513
|
+
/** The number of integers saved in local state. */
|
|
514
|
+
localInts: number;
|
|
515
|
+
/** The number of byte slices saved in local state. */
|
|
516
|
+
localByteSlices: number;
|
|
517
|
+
};
|
|
518
|
+
lease?: string | Uint8Array | undefined;
|
|
519
|
+
note?: string | Uint8Array | undefined;
|
|
520
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
521
|
+
args?: Uint8Array[] | undefined;
|
|
522
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
523
|
+
rekeyTo?: string | undefined;
|
|
524
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
525
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
526
|
+
validityWindow?: number | undefined;
|
|
527
|
+
firstValidRound?: bigint | undefined;
|
|
528
|
+
lastValidRound?: bigint | undefined;
|
|
529
|
+
accountReferences?: string[] | undefined;
|
|
530
|
+
appReferences?: bigint[] | undefined;
|
|
531
|
+
assetReferences?: bigint[] | undefined;
|
|
532
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
533
|
+
sender?: string | undefined;
|
|
534
|
+
updatable?: boolean | undefined;
|
|
535
|
+
deletable?: boolean | undefined;
|
|
536
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
537
|
+
extraProgramPages?: number | undefined;
|
|
538
|
+
} | {
|
|
539
|
+
approvalProgram: Uint8Array;
|
|
540
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
541
|
+
clearStateProgram: Uint8Array;
|
|
542
|
+
compiledClear: import("./app").CompiledTeal;
|
|
543
|
+
deployTimeParams: TealTemplateParams | undefined;
|
|
544
|
+
schema: {
|
|
545
|
+
/** The number of integers saved in global state. */
|
|
546
|
+
globalInts: number;
|
|
547
|
+
/** The number of byte slices saved in global state. */
|
|
548
|
+
globalByteSlices: number;
|
|
549
|
+
/** The number of integers saved in local state. */
|
|
550
|
+
localInts: number;
|
|
551
|
+
/** The number of byte slices saved in local state. */
|
|
552
|
+
localByteSlices: number;
|
|
553
|
+
};
|
|
554
|
+
lease?: string | Uint8Array | undefined;
|
|
555
|
+
note?: string | Uint8Array | undefined;
|
|
556
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
557
|
+
args?: Uint8Array[] | undefined;
|
|
558
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
559
|
+
rekeyTo?: string | undefined;
|
|
560
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
561
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
562
|
+
validityWindow?: number | undefined;
|
|
563
|
+
firstValidRound?: bigint | undefined;
|
|
564
|
+
lastValidRound?: bigint | undefined;
|
|
565
|
+
accountReferences?: string[] | undefined;
|
|
566
|
+
appReferences?: bigint[] | undefined;
|
|
567
|
+
assetReferences?: bigint[] | undefined;
|
|
568
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
569
|
+
sender?: string | undefined;
|
|
570
|
+
updatable?: boolean | undefined;
|
|
571
|
+
deletable?: boolean | undefined;
|
|
572
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
573
|
+
extraProgramPages?: number | undefined;
|
|
574
|
+
}) & {
|
|
575
|
+
sender: string;
|
|
576
|
+
onComplete: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC;
|
|
577
|
+
}>;
|
|
578
|
+
/** Return params for a deployment update bare call */
|
|
579
|
+
deployUpdate: (params?: {
|
|
580
|
+
lease?: string | Uint8Array | undefined;
|
|
581
|
+
note?: string | Uint8Array | undefined;
|
|
582
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
583
|
+
args?: Uint8Array[] | undefined;
|
|
584
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
585
|
+
rekeyTo?: string | undefined;
|
|
586
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
587
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
588
|
+
validityWindow?: number | undefined;
|
|
589
|
+
firstValidRound?: bigint | undefined;
|
|
590
|
+
lastValidRound?: bigint | undefined;
|
|
591
|
+
accountReferences?: string[] | undefined;
|
|
592
|
+
appReferences?: bigint[] | undefined;
|
|
593
|
+
assetReferences?: bigint[] | undefined;
|
|
594
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
595
|
+
sender?: string | undefined;
|
|
596
|
+
} | undefined) => {
|
|
597
|
+
lease?: string | Uint8Array | undefined;
|
|
598
|
+
note?: string | Uint8Array | undefined;
|
|
599
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
600
|
+
args?: Uint8Array[] | undefined;
|
|
601
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
602
|
+
rekeyTo?: string | undefined;
|
|
603
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
604
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
605
|
+
validityWindow?: number | undefined;
|
|
606
|
+
firstValidRound?: bigint | undefined;
|
|
607
|
+
lastValidRound?: bigint | undefined;
|
|
608
|
+
accountReferences?: string[] | undefined;
|
|
609
|
+
appReferences?: bigint[] | undefined;
|
|
610
|
+
assetReferences?: bigint[] | undefined;
|
|
611
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
612
|
+
sender?: string | undefined;
|
|
613
|
+
} & {
|
|
614
|
+
sender: string;
|
|
615
|
+
onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
|
|
616
|
+
};
|
|
617
|
+
/** Return params for a deployment delete bare call */
|
|
618
|
+
deployDelete: (params?: {
|
|
619
|
+
lease?: string | Uint8Array | undefined;
|
|
620
|
+
note?: string | Uint8Array | undefined;
|
|
621
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
622
|
+
args?: Uint8Array[] | undefined;
|
|
623
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
624
|
+
rekeyTo?: string | undefined;
|
|
625
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
626
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
627
|
+
validityWindow?: number | undefined;
|
|
628
|
+
firstValidRound?: bigint | undefined;
|
|
629
|
+
lastValidRound?: bigint | undefined;
|
|
630
|
+
accountReferences?: string[] | undefined;
|
|
631
|
+
appReferences?: bigint[] | undefined;
|
|
632
|
+
assetReferences?: bigint[] | undefined;
|
|
633
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
634
|
+
sender?: string | undefined;
|
|
635
|
+
} | undefined) => {
|
|
636
|
+
lease?: string | Uint8Array | undefined;
|
|
637
|
+
note?: string | Uint8Array | undefined;
|
|
638
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
639
|
+
args?: Uint8Array[] | undefined;
|
|
640
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
641
|
+
rekeyTo?: string | undefined;
|
|
642
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
643
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
644
|
+
validityWindow?: number | undefined;
|
|
645
|
+
firstValidRound?: bigint | undefined;
|
|
646
|
+
lastValidRound?: bigint | undefined;
|
|
647
|
+
accountReferences?: string[] | undefined;
|
|
648
|
+
appReferences?: bigint[] | undefined;
|
|
649
|
+
assetReferences?: bigint[] | undefined;
|
|
650
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
651
|
+
sender?: string | undefined;
|
|
652
|
+
} & {
|
|
653
|
+
sender: string;
|
|
654
|
+
onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC;
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
/**
|
|
659
|
+
* Creates an instance of the app and returns the result of the creation
|
|
660
|
+
* transaction and an app client to interact with that app instance.
|
|
661
|
+
*
|
|
662
|
+
* Performs deploy-time TEAL template placeholder substitutions (if specified).
|
|
663
|
+
* @param params The parameters to create the app
|
|
664
|
+
* @returns The app client and the result of the creation transaction
|
|
665
|
+
*/
|
|
666
|
+
create(params?: AppFactoryCreateParams): Promise<{
|
|
667
|
+
app: AppClient;
|
|
668
|
+
result: {
|
|
669
|
+
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
670
|
+
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
671
|
+
appId: bigint;
|
|
672
|
+
groupId: string;
|
|
673
|
+
txIds: string[];
|
|
674
|
+
returns?: import("./app").ABIReturn[] | undefined;
|
|
675
|
+
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
676
|
+
transactions: algosdk.Transaction[];
|
|
677
|
+
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
678
|
+
transaction: algosdk.Transaction;
|
|
679
|
+
appAddress: string;
|
|
680
|
+
return?: algosdk.ABIValue | ABIStruct | undefined;
|
|
681
|
+
} | {
|
|
682
|
+
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
683
|
+
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
684
|
+
return: undefined;
|
|
685
|
+
groupId: string;
|
|
686
|
+
txIds: string[];
|
|
687
|
+
returns?: import("./app").ABIReturn[] | undefined;
|
|
688
|
+
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
689
|
+
transactions: algosdk.Transaction[];
|
|
690
|
+
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
691
|
+
transaction: algosdk.Transaction;
|
|
692
|
+
appId: bigint;
|
|
693
|
+
appAddress: string;
|
|
694
|
+
};
|
|
695
|
+
}>;
|
|
696
|
+
/**
|
|
697
|
+
* 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).
|
|
698
|
+
*
|
|
699
|
+
* **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`.
|
|
700
|
+
*
|
|
701
|
+
* **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.
|
|
702
|
+
*
|
|
703
|
+
* **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.
|
|
704
|
+
* @param params The arguments to control the app deployment
|
|
705
|
+
* @returns The app client and the result of the deployment
|
|
706
|
+
*/
|
|
707
|
+
deploy(params: AppFactoryDeployParams): Promise<{
|
|
708
|
+
app: AppClient;
|
|
709
|
+
result: {
|
|
710
|
+
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
711
|
+
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
712
|
+
approvalProgram: Buffer;
|
|
713
|
+
clearStateProgram: Buffer;
|
|
714
|
+
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
715
|
+
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
716
|
+
operationPerformed: "create";
|
|
717
|
+
version: string;
|
|
718
|
+
name: string;
|
|
719
|
+
deleted: boolean;
|
|
720
|
+
createdRound: bigint;
|
|
721
|
+
updatedRound: bigint;
|
|
722
|
+
createdMetadata: import("./app").AppDeployMetadata;
|
|
723
|
+
deletable?: boolean | undefined;
|
|
724
|
+
updatable?: boolean | undefined;
|
|
725
|
+
groupId: string;
|
|
726
|
+
txIds: string[];
|
|
727
|
+
returns?: import("./app").ABIReturn[] | undefined;
|
|
728
|
+
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
729
|
+
transactions: algosdk.Transaction[];
|
|
730
|
+
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
731
|
+
transaction: algosdk.Transaction;
|
|
732
|
+
appId: bigint;
|
|
733
|
+
appAddress: string;
|
|
734
|
+
} | {
|
|
735
|
+
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
736
|
+
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
737
|
+
approvalProgram: Uint8Array;
|
|
738
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
739
|
+
clearStateProgram: Uint8Array;
|
|
740
|
+
compiledClear: import("./app").CompiledTeal;
|
|
741
|
+
operationPerformed: "create";
|
|
742
|
+
version: string;
|
|
743
|
+
name: string;
|
|
744
|
+
deleted: boolean;
|
|
745
|
+
createdRound: bigint;
|
|
746
|
+
updatedRound: bigint;
|
|
747
|
+
createdMetadata: import("./app").AppDeployMetadata;
|
|
748
|
+
deletable?: boolean | undefined;
|
|
749
|
+
updatable?: boolean | undefined;
|
|
750
|
+
groupId: string;
|
|
751
|
+
txIds: string[];
|
|
752
|
+
returns?: import("./app").ABIReturn[] | undefined;
|
|
753
|
+
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
754
|
+
transactions: algosdk.Transaction[];
|
|
755
|
+
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
756
|
+
transaction: algosdk.Transaction;
|
|
757
|
+
appId: bigint;
|
|
758
|
+
appAddress: string;
|
|
759
|
+
} | {
|
|
760
|
+
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
761
|
+
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
762
|
+
approvalProgram: Buffer;
|
|
763
|
+
clearStateProgram: Buffer;
|
|
764
|
+
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
765
|
+
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
766
|
+
operationPerformed: "update";
|
|
767
|
+
appId: bigint;
|
|
768
|
+
appAddress: string;
|
|
769
|
+
createdRound: bigint;
|
|
770
|
+
updatedRound: bigint;
|
|
771
|
+
createdMetadata: import("./app").AppDeployMetadata;
|
|
772
|
+
deleted: boolean;
|
|
773
|
+
name: string;
|
|
774
|
+
version: string;
|
|
775
|
+
deletable?: boolean | undefined;
|
|
776
|
+
updatable?: boolean | undefined;
|
|
777
|
+
groupId: string;
|
|
778
|
+
txIds: string[];
|
|
779
|
+
returns?: import("./app").ABIReturn[] | undefined;
|
|
780
|
+
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
781
|
+
transactions: algosdk.Transaction[];
|
|
782
|
+
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
783
|
+
transaction: algosdk.Transaction;
|
|
784
|
+
} | {
|
|
785
|
+
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
786
|
+
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
787
|
+
approvalProgram: Uint8Array;
|
|
788
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
789
|
+
clearStateProgram: Uint8Array;
|
|
790
|
+
compiledClear: import("./app").CompiledTeal;
|
|
791
|
+
operationPerformed: "update";
|
|
792
|
+
appId: bigint;
|
|
793
|
+
appAddress: string;
|
|
794
|
+
createdRound: bigint;
|
|
795
|
+
updatedRound: bigint;
|
|
796
|
+
createdMetadata: import("./app").AppDeployMetadata;
|
|
797
|
+
deleted: boolean;
|
|
798
|
+
name: string;
|
|
799
|
+
version: string;
|
|
800
|
+
deletable?: boolean | undefined;
|
|
801
|
+
updatable?: boolean | undefined;
|
|
802
|
+
groupId: string;
|
|
803
|
+
txIds: string[];
|
|
804
|
+
returns?: import("./app").ABIReturn[] | undefined;
|
|
805
|
+
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
806
|
+
transactions: algosdk.Transaction[];
|
|
807
|
+
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
808
|
+
transaction: algosdk.Transaction;
|
|
809
|
+
} | {
|
|
810
|
+
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
811
|
+
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
812
|
+
approvalProgram: Buffer;
|
|
813
|
+
clearStateProgram: Buffer;
|
|
814
|
+
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
815
|
+
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
816
|
+
operationPerformed: "replace";
|
|
817
|
+
version: string;
|
|
818
|
+
name: string;
|
|
819
|
+
deleted: boolean;
|
|
820
|
+
createdRound: bigint;
|
|
821
|
+
updatedRound: bigint;
|
|
822
|
+
createdMetadata: import("./app").AppDeployMetadata;
|
|
823
|
+
deletable?: boolean | undefined;
|
|
824
|
+
updatable?: boolean | undefined;
|
|
825
|
+
groupId: string;
|
|
826
|
+
txIds: string[];
|
|
827
|
+
returns?: import("./app").ABIReturn[] | undefined;
|
|
828
|
+
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
829
|
+
transactions: algosdk.Transaction[];
|
|
830
|
+
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
831
|
+
transaction: algosdk.Transaction;
|
|
832
|
+
appId: bigint;
|
|
833
|
+
appAddress: string;
|
|
834
|
+
deleteResult: import("./transaction").ConfirmedTransactionResult;
|
|
835
|
+
} | {
|
|
836
|
+
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
837
|
+
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
838
|
+
approvalProgram: Uint8Array;
|
|
839
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
840
|
+
clearStateProgram: Uint8Array;
|
|
841
|
+
compiledClear: import("./app").CompiledTeal;
|
|
842
|
+
operationPerformed: "replace";
|
|
843
|
+
version: string;
|
|
844
|
+
name: string;
|
|
845
|
+
deleted: boolean;
|
|
846
|
+
createdRound: bigint;
|
|
847
|
+
updatedRound: bigint;
|
|
848
|
+
createdMetadata: import("./app").AppDeployMetadata;
|
|
849
|
+
deletable?: boolean | undefined;
|
|
850
|
+
updatable?: boolean | undefined;
|
|
851
|
+
groupId: string;
|
|
852
|
+
txIds: string[];
|
|
853
|
+
returns?: import("./app").ABIReturn[] | undefined;
|
|
854
|
+
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
855
|
+
transactions: algosdk.Transaction[];
|
|
856
|
+
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
857
|
+
transaction: algosdk.Transaction;
|
|
858
|
+
appId: bigint;
|
|
859
|
+
appAddress: string;
|
|
860
|
+
deleteResult: import("./transaction").ConfirmedTransactionResult;
|
|
861
|
+
} | {
|
|
862
|
+
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
863
|
+
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
864
|
+
approvalProgram: Buffer;
|
|
865
|
+
clearStateProgram: Buffer;
|
|
866
|
+
compiledApproval?: undefined;
|
|
867
|
+
compiledClear?: undefined;
|
|
868
|
+
operationPerformed: "nothing";
|
|
869
|
+
appId: bigint;
|
|
870
|
+
appAddress: string;
|
|
871
|
+
createdRound: bigint;
|
|
872
|
+
updatedRound: bigint;
|
|
873
|
+
createdMetadata: import("./app").AppDeployMetadata;
|
|
874
|
+
deleted: boolean;
|
|
875
|
+
name: string;
|
|
876
|
+
version: string;
|
|
877
|
+
deletable?: boolean | undefined;
|
|
878
|
+
updatable?: boolean | undefined;
|
|
879
|
+
} | {
|
|
880
|
+
return: algosdk.ABIValue | ABIStruct | undefined;
|
|
881
|
+
deleteReturn: algosdk.ABIValue | ABIStruct | undefined;
|
|
882
|
+
approvalProgram: Uint8Array;
|
|
883
|
+
compiledApproval: import("./app").CompiledTeal;
|
|
884
|
+
clearStateProgram: Uint8Array;
|
|
885
|
+
compiledClear: import("./app").CompiledTeal;
|
|
886
|
+
operationPerformed: "nothing";
|
|
887
|
+
appId: bigint;
|
|
888
|
+
appAddress: string;
|
|
889
|
+
createdRound: bigint;
|
|
890
|
+
updatedRound: bigint;
|
|
891
|
+
createdMetadata: import("./app").AppDeployMetadata;
|
|
892
|
+
deleted: boolean;
|
|
893
|
+
name: string;
|
|
894
|
+
version: string;
|
|
895
|
+
deletable?: boolean | undefined;
|
|
896
|
+
updatable?: boolean | undefined;
|
|
897
|
+
};
|
|
898
|
+
}>;
|
|
899
|
+
/**
|
|
900
|
+
* Returns a new `AppClient` client for an app instance of the given ID.
|
|
901
|
+
*
|
|
902
|
+
* Automatically populates appName, defaultSender and source maps from the factory
|
|
903
|
+
* if not specified in the params.
|
|
904
|
+
* @param params The parameters to create the app client
|
|
905
|
+
* @returns The `AppClient`
|
|
906
|
+
*/
|
|
907
|
+
getAppClientById(params: Expand<Omit<AppClientParams, 'algorand' | 'appSpec'>>): AppClient;
|
|
908
|
+
/**
|
|
909
|
+
* Returns a new `AppClient` client, resolving the app by creator address and name
|
|
910
|
+
* using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
|
|
911
|
+
*
|
|
912
|
+
* Automatically populates appName, defaultSender and source maps from the factory
|
|
913
|
+
* if not specified in the params.
|
|
914
|
+
* @param params The parameters to create the app client
|
|
915
|
+
* @returns The `AppClient`
|
|
916
|
+
*/
|
|
917
|
+
getAppClientByCreatorAddressAndName(params: Expand<Omit<AppClientParams, 'algorand' | 'appSpec' | 'appId'> & ResolveAppClientByCreatorAndName>): Promise<AppClient>;
|
|
918
|
+
/**
|
|
919
|
+
* Takes an error that may include a logic error from a call to the current app and re-exposes the
|
|
920
|
+
* error to include source code information via the source map and ARC-56 spec.
|
|
921
|
+
* @param e The error to parse
|
|
922
|
+
* @param isClearStateProgram Whether or not the code was running the clear state program (defaults to approval program)
|
|
923
|
+
* @returns The new error, or if there was no logic error or source map then the wrapped error with source details
|
|
924
|
+
*/
|
|
925
|
+
exposeLogicError(e: Error, isClearStateProgram?: boolean): Error;
|
|
926
|
+
/**
|
|
927
|
+
* Export the current source maps for the app.
|
|
928
|
+
* @returns The source maps
|
|
929
|
+
*/
|
|
930
|
+
exportSourceMaps(): AppSourceMaps;
|
|
931
|
+
/**
|
|
932
|
+
* Import source maps for the app.
|
|
933
|
+
* @param sourceMaps The source maps to import
|
|
934
|
+
*/
|
|
935
|
+
importSourceMaps(sourceMaps: AppSourceMaps): void;
|
|
936
|
+
private getDeployTimeControl;
|
|
937
|
+
private getParamsMethods;
|
|
938
|
+
/** Make the given call and catch any errors, augmenting with debugging information before re-throwing. */
|
|
939
|
+
private handleCallErrors;
|
|
940
|
+
/**
|
|
941
|
+
* Compiles the approval and clear state programs (if TEAL templates provided),
|
|
942
|
+
* performing any provided deploy-time parameter replacement and stores
|
|
943
|
+
* the source maps.
|
|
944
|
+
*
|
|
945
|
+
* If no TEAL templates provided it will use any byte code provided in the app spec.
|
|
946
|
+
*
|
|
947
|
+
* Will store any generated source maps for later use in debugging.
|
|
948
|
+
*/
|
|
949
|
+
private compile;
|
|
950
|
+
private getBareParams;
|
|
951
|
+
private getABIParams;
|
|
952
|
+
/** Returns the sender for a call, using the `defaultSender`
|
|
953
|
+
* if none provided and throws an error if neither provided */
|
|
954
|
+
private getSender;
|
|
955
|
+
/**
|
|
956
|
+
* Checks for decode errors on the SendAppTransactionResult and maps the return value to the specified type
|
|
957
|
+
* on the ARC-56 method.
|
|
958
|
+
*
|
|
959
|
+
* If the return type is a struct then the struct will be returned.
|
|
960
|
+
*
|
|
961
|
+
* @param result The SendAppTransactionResult to be mapped
|
|
962
|
+
* @param method The method that was called
|
|
963
|
+
* @returns The smart contract response with an updated return value
|
|
964
|
+
*/
|
|
965
|
+
parseMethodCallReturn<TReturn extends Uint8Array | ABIValue | ABIStruct | undefined, TResult extends SendAppTransactionResult = SendAppTransactionResult>(result: Promise<TResult> | TResult, method: Arc56Method): Promise<Expand<Omit<TResult, 'return'> & AppReturn<TReturn>>>;
|
|
966
|
+
}
|
|
967
|
+
//# sourceMappingURL=app-factory.d.ts.map
|