algosdk 1.22.0 → 1.23.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.
Files changed (102) hide show
  1. package/README.md +2 -2
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.map +1 -1
  4. package/dist/cjs/src/boxStorage.js +33 -0
  5. package/dist/cjs/src/boxStorage.js.map +1 -0
  6. package/dist/cjs/src/client/client.js +11 -9
  7. package/dist/cjs/src/client/client.js.map +1 -1
  8. package/dist/cjs/src/client/urlTokenBaseHTTPClient.js +93 -96
  9. package/dist/cjs/src/client/urlTokenBaseHTTPClient.js.map +1 -1
  10. package/dist/cjs/src/client/v2/algod/algod.js +38 -1
  11. package/dist/cjs/src/client/v2/algod/algod.js.map +1 -1
  12. package/dist/cjs/src/client/v2/algod/getApplicationBoxByName.js +44 -0
  13. package/dist/cjs/src/client/v2/algod/getApplicationBoxByName.js.map +1 -0
  14. package/dist/cjs/src/client/v2/algod/getApplicationBoxes.js +60 -0
  15. package/dist/cjs/src/client/v2/algod/getApplicationBoxes.js.map +1 -0
  16. package/dist/cjs/src/client/v2/algod/models/types.js +815 -42
  17. package/dist/cjs/src/client/v2/algod/models/types.js.map +1 -1
  18. package/dist/cjs/src/client/v2/{algod/models/base.js → basemodel.js} +1 -1
  19. package/dist/cjs/src/client/v2/basemodel.js.map +1 -0
  20. package/dist/cjs/src/client/v2/indexer/indexer.js +50 -0
  21. package/dist/cjs/src/client/v2/indexer/indexer.js.map +1 -1
  22. package/dist/cjs/src/client/v2/indexer/lookupApplicationBoxByIDandName.js +45 -0
  23. package/dist/cjs/src/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -0
  24. package/dist/cjs/src/client/v2/indexer/models/types.js +3077 -0
  25. package/dist/cjs/src/client/v2/indexer/models/types.js.map +1 -0
  26. package/dist/cjs/src/client/v2/indexer/searchForApplicationBoxes.js +99 -0
  27. package/dist/cjs/src/client/v2/indexer/searchForApplicationBoxes.js.map +1 -0
  28. package/dist/cjs/src/client/v2/jsonrequest.js +11 -1
  29. package/dist/cjs/src/client/v2/jsonrequest.js.map +1 -1
  30. package/dist/cjs/src/composer.js +4 -1
  31. package/dist/cjs/src/composer.js.map +1 -1
  32. package/dist/cjs/src/main.js +3 -2
  33. package/dist/cjs/src/main.js.map +1 -1
  34. package/dist/cjs/src/makeTxn.js +29 -14
  35. package/dist/cjs/src/makeTxn.js.map +1 -1
  36. package/dist/cjs/src/multisig.js +15 -25
  37. package/dist/cjs/src/multisig.js.map +1 -1
  38. package/dist/cjs/src/transaction.js +29 -0
  39. package/dist/cjs/src/transaction.js.map +1 -1
  40. package/dist/cjs/src/types/transactions/index.js.map +1 -1
  41. package/dist/esm/src/boxStorage.js +29 -0
  42. package/dist/esm/src/boxStorage.js.map +1 -0
  43. package/dist/esm/src/client/client.js +11 -9
  44. package/dist/esm/src/client/client.js.map +1 -1
  45. package/dist/esm/src/client/urlTokenBaseHTTPClient.js +93 -73
  46. package/dist/esm/src/client/urlTokenBaseHTTPClient.js.map +1 -1
  47. package/dist/esm/src/client/v2/algod/algod.js +38 -1
  48. package/dist/esm/src/client/v2/algod/algod.js.map +1 -1
  49. package/dist/esm/src/client/v2/algod/getApplicationBoxByName.js +38 -0
  50. package/dist/esm/src/client/v2/algod/getApplicationBoxByName.js.map +1 -0
  51. package/dist/esm/src/client/v2/algod/getApplicationBoxes.js +54 -0
  52. package/dist/esm/src/client/v2/algod/getApplicationBoxes.js.map +1 -0
  53. package/dist/esm/src/client/v2/algod/models/types.js +771 -2
  54. package/dist/esm/src/client/v2/algod/models/types.js.map +1 -1
  55. package/dist/esm/src/client/v2/{algod/models/base.js → basemodel.js} +1 -1
  56. package/dist/esm/src/client/v2/basemodel.js.map +1 -0
  57. package/dist/esm/src/client/v2/indexer/indexer.js +50 -0
  58. package/dist/esm/src/client/v2/indexer/indexer.js.map +1 -1
  59. package/dist/esm/src/client/v2/indexer/lookupApplicationBoxByIDandName.js +39 -0
  60. package/dist/esm/src/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -0
  61. package/dist/esm/src/client/v2/indexer/models/types.js +3009 -0
  62. package/dist/esm/src/client/v2/indexer/models/types.js.map +1 -0
  63. package/dist/esm/src/client/v2/indexer/searchForApplicationBoxes.js +93 -0
  64. package/dist/esm/src/client/v2/indexer/searchForApplicationBoxes.js.map +1 -0
  65. package/dist/esm/src/client/v2/jsonrequest.js +11 -1
  66. package/dist/esm/src/client/v2/jsonrequest.js.map +1 -1
  67. package/dist/esm/src/composer.js +4 -1
  68. package/dist/esm/src/composer.js.map +1 -1
  69. package/dist/esm/src/main.js +2 -0
  70. package/dist/esm/src/main.js.map +1 -1
  71. package/dist/esm/src/makeTxn.js +29 -14
  72. package/dist/esm/src/makeTxn.js.map +1 -1
  73. package/dist/esm/src/multisig.js +15 -25
  74. package/dist/esm/src/multisig.js.map +1 -1
  75. package/dist/esm/src/transaction.js +29 -0
  76. package/dist/esm/src/transaction.js.map +1 -1
  77. package/dist/esm/src/types/transactions/index.js +1 -1
  78. package/dist/esm/src/types/transactions/index.js.map +1 -1
  79. package/dist/types/src/boxStorage.d.ts +7 -0
  80. package/dist/types/src/client/client.d.ts +5 -3
  81. package/dist/types/src/client/urlTokenBaseHTTPClient.d.ts +8 -12
  82. package/dist/types/src/client/v2/algod/algod.d.ts +34 -1
  83. package/dist/types/src/client/v2/algod/getApplicationBoxByName.d.ts +28 -0
  84. package/dist/types/src/client/v2/algod/getApplicationBoxes.d.ts +43 -0
  85. package/dist/types/src/client/v2/algod/models/types.d.ts +117 -2
  86. package/dist/types/src/client/v2/{algod/models/base.d.ts → basemodel.d.ts} +0 -0
  87. package/dist/types/src/client/v2/indexer/indexer.d.ts +46 -0
  88. package/dist/types/src/client/v2/indexer/lookupApplicationBoxByIDandName.d.ts +29 -0
  89. package/dist/types/src/client/v2/indexer/models/types.d.ts +2689 -0
  90. package/dist/types/src/client/v2/indexer/searchForApplicationBoxes.d.ts +80 -0
  91. package/dist/types/src/client/v2/jsonrequest.d.ts +8 -1
  92. package/dist/types/src/composer.d.ts +4 -2
  93. package/dist/types/src/main.d.ts +1 -0
  94. package/dist/types/src/makeTxn.d.ts +22 -15
  95. package/dist/types/src/transaction.d.ts +3 -1
  96. package/dist/types/src/types/transactions/application.d.ts +3 -3
  97. package/dist/types/src/types/transactions/base.d.ts +15 -1
  98. package/dist/types/src/types/transactions/encoded.d.ts +12 -1
  99. package/dist/types/src/types/transactions/index.d.ts +1 -1
  100. package/package.json +6 -7
  101. package/dist/cjs/src/client/v2/algod/models/base.js.map +0 -1
  102. package/dist/esm/src/client/v2/algod/models/base.js.map +0 -1
@@ -0,0 +1,2689 @@
1
+ /**
2
+ * NOTICE: This file was generated. Editing this file manually is not recommended.
3
+ */
4
+ import BaseModel from '../../basemodel';
5
+ /**
6
+ * Account information at a given round.
7
+ * Definition:
8
+ * data/basics/userBalance.go : AccountData
9
+ */
10
+ export declare class Account extends BaseModel {
11
+ /**
12
+ * the account public key
13
+ */
14
+ address: string;
15
+ /**
16
+ * (algo) total number of MicroAlgos in the account
17
+ */
18
+ amount: number | bigint;
19
+ /**
20
+ * specifies the amount of MicroAlgos in the account, without the pending rewards.
21
+ */
22
+ amountWithoutPendingRewards: number | bigint;
23
+ /**
24
+ * amount of MicroAlgos of pending rewards in this account.
25
+ */
26
+ pendingRewards: number | bigint;
27
+ /**
28
+ * (ern) total rewards of MicroAlgos the account has received, including pending
29
+ * rewards.
30
+ */
31
+ rewards: number | bigint;
32
+ /**
33
+ * The round for which this information is relevant.
34
+ */
35
+ round: number | bigint;
36
+ /**
37
+ * (onl) delegation status of the account's MicroAlgos
38
+ * * Offline - indicates that the associated account is delegated.
39
+ * * Online - indicates that the associated account used as part of the delegation
40
+ * pool.
41
+ * * NotParticipating - indicates that the associated account is neither a
42
+ * delegator nor a delegate.
43
+ */
44
+ status: string;
45
+ /**
46
+ * The count of all applications that have been opted in, equivalent to the count
47
+ * of application local data (AppLocalState objects) stored in this account.
48
+ */
49
+ totalAppsOptedIn: number | bigint;
50
+ /**
51
+ * The count of all assets that have been opted in, equivalent to the count of
52
+ * AssetHolding objects held by this account.
53
+ */
54
+ totalAssetsOptedIn: number | bigint;
55
+ /**
56
+ * For app-accounts only. The total number of bytes allocated for the keys and
57
+ * values of boxes which belong to the associated application.
58
+ */
59
+ totalBoxBytes: number | bigint;
60
+ /**
61
+ * For app-accounts only. The total number of boxes which belong to the associated
62
+ * application.
63
+ */
64
+ totalBoxes: number | bigint;
65
+ /**
66
+ * The count of all apps (AppParams objects) created by this account.
67
+ */
68
+ totalCreatedApps: number | bigint;
69
+ /**
70
+ * The count of all assets (AssetParams objects) created by this account.
71
+ */
72
+ totalCreatedAssets: number | bigint;
73
+ /**
74
+ * (appl) applications local data stored in this account.
75
+ * Note the raw object uses `map[int] -> AppLocalState` for this type.
76
+ */
77
+ appsLocalState?: ApplicationLocalState[];
78
+ /**
79
+ * (teap) the sum of all extra application program pages for this account.
80
+ */
81
+ appsTotalExtraPages?: number | bigint;
82
+ /**
83
+ * (tsch) stores the sum of all of the local schemas and global schemas in this
84
+ * account.
85
+ * Note: the raw account uses `StateSchema` for this type.
86
+ */
87
+ appsTotalSchema?: ApplicationStateSchema;
88
+ /**
89
+ * (asset) assets held by this account.
90
+ * Note the raw object uses `map[int] -> AssetHolding` for this type.
91
+ */
92
+ assets?: AssetHolding[];
93
+ /**
94
+ * (spend) the address against which signing should be checked. If empty, the
95
+ * address of the current account is used. This field can be updated in any
96
+ * transaction by setting the RekeyTo field.
97
+ */
98
+ authAddr?: string;
99
+ /**
100
+ * Round during which this account was most recently closed.
101
+ */
102
+ closedAtRound?: number | bigint;
103
+ /**
104
+ * (appp) parameters of applications created by this account including app global
105
+ * data.
106
+ * Note: the raw account uses `map[int] -> AppParams` for this type.
107
+ */
108
+ createdApps?: Application[];
109
+ /**
110
+ * (apar) parameters of assets created by this account.
111
+ * Note: the raw account uses `map[int] -> Asset` for this type.
112
+ */
113
+ createdAssets?: Asset[];
114
+ /**
115
+ * Round during which this account first appeared in a transaction.
116
+ */
117
+ createdAtRound?: number | bigint;
118
+ /**
119
+ * Whether or not this account is currently closed.
120
+ */
121
+ deleted?: boolean;
122
+ /**
123
+ * AccountParticipation describes the parameters used by this account in consensus
124
+ * protocol.
125
+ */
126
+ participation?: AccountParticipation;
127
+ /**
128
+ * (ebase) used as part of the rewards computation. Only applicable to accounts
129
+ * which are participating.
130
+ */
131
+ rewardBase?: number | bigint;
132
+ /**
133
+ * Indicates what type of signature is used by this account, must be one of:
134
+ * * sig
135
+ * * msig
136
+ * * lsig
137
+ * * or null if unknown
138
+ */
139
+ sigType?: string;
140
+ /**
141
+ * Creates a new `Account` object.
142
+ * @param address - the account public key
143
+ * @param amount - (algo) total number of MicroAlgos in the account
144
+ * @param amountWithoutPendingRewards - specifies the amount of MicroAlgos in the account, without the pending rewards.
145
+ * @param pendingRewards - amount of MicroAlgos of pending rewards in this account.
146
+ * @param rewards - (ern) total rewards of MicroAlgos the account has received, including pending
147
+ * rewards.
148
+ * @param round - The round for which this information is relevant.
149
+ * @param status - (onl) delegation status of the account's MicroAlgos
150
+ * * Offline - indicates that the associated account is delegated.
151
+ * * Online - indicates that the associated account used as part of the delegation
152
+ * pool.
153
+ * * NotParticipating - indicates that the associated account is neither a
154
+ * delegator nor a delegate.
155
+ * @param totalAppsOptedIn - The count of all applications that have been opted in, equivalent to the count
156
+ * of application local data (AppLocalState objects) stored in this account.
157
+ * @param totalAssetsOptedIn - The count of all assets that have been opted in, equivalent to the count of
158
+ * AssetHolding objects held by this account.
159
+ * @param totalBoxBytes - For app-accounts only. The total number of bytes allocated for the keys and
160
+ * values of boxes which belong to the associated application.
161
+ * @param totalBoxes - For app-accounts only. The total number of boxes which belong to the associated
162
+ * application.
163
+ * @param totalCreatedApps - The count of all apps (AppParams objects) created by this account.
164
+ * @param totalCreatedAssets - The count of all assets (AssetParams objects) created by this account.
165
+ * @param appsLocalState - (appl) applications local data stored in this account.
166
+ * Note the raw object uses `map[int] -> AppLocalState` for this type.
167
+ * @param appsTotalExtraPages - (teap) the sum of all extra application program pages for this account.
168
+ * @param appsTotalSchema - (tsch) stores the sum of all of the local schemas and global schemas in this
169
+ * account.
170
+ * Note: the raw account uses `StateSchema` for this type.
171
+ * @param assets - (asset) assets held by this account.
172
+ * Note the raw object uses `map[int] -> AssetHolding` for this type.
173
+ * @param authAddr - (spend) the address against which signing should be checked. If empty, the
174
+ * address of the current account is used. This field can be updated in any
175
+ * transaction by setting the RekeyTo field.
176
+ * @param closedAtRound - Round during which this account was most recently closed.
177
+ * @param createdApps - (appp) parameters of applications created by this account including app global
178
+ * data.
179
+ * Note: the raw account uses `map[int] -> AppParams` for this type.
180
+ * @param createdAssets - (apar) parameters of assets created by this account.
181
+ * Note: the raw account uses `map[int] -> Asset` for this type.
182
+ * @param createdAtRound - Round during which this account first appeared in a transaction.
183
+ * @param deleted - Whether or not this account is currently closed.
184
+ * @param participation - AccountParticipation describes the parameters used by this account in consensus
185
+ * protocol.
186
+ * @param rewardBase - (ebase) used as part of the rewards computation. Only applicable to accounts
187
+ * which are participating.
188
+ * @param sigType - Indicates what type of signature is used by this account, must be one of:
189
+ * * sig
190
+ * * msig
191
+ * * lsig
192
+ * * or null if unknown
193
+ */
194
+ constructor({ address, amount, amountWithoutPendingRewards, pendingRewards, rewards, round, status, totalAppsOptedIn, totalAssetsOptedIn, totalBoxBytes, totalBoxes, totalCreatedApps, totalCreatedAssets, appsLocalState, appsTotalExtraPages, appsTotalSchema, assets, authAddr, closedAtRound, createdApps, createdAssets, createdAtRound, deleted, participation, rewardBase, sigType, }: {
195
+ address: string;
196
+ amount: number | bigint;
197
+ amountWithoutPendingRewards: number | bigint;
198
+ pendingRewards: number | bigint;
199
+ rewards: number | bigint;
200
+ round: number | bigint;
201
+ status: string;
202
+ totalAppsOptedIn: number | bigint;
203
+ totalAssetsOptedIn: number | bigint;
204
+ totalBoxBytes: number | bigint;
205
+ totalBoxes: number | bigint;
206
+ totalCreatedApps: number | bigint;
207
+ totalCreatedAssets: number | bigint;
208
+ appsLocalState?: ApplicationLocalState[];
209
+ appsTotalExtraPages?: number | bigint;
210
+ appsTotalSchema?: ApplicationStateSchema;
211
+ assets?: AssetHolding[];
212
+ authAddr?: string;
213
+ closedAtRound?: number | bigint;
214
+ createdApps?: Application[];
215
+ createdAssets?: Asset[];
216
+ createdAtRound?: number | bigint;
217
+ deleted?: boolean;
218
+ participation?: AccountParticipation;
219
+ rewardBase?: number | bigint;
220
+ sigType?: string;
221
+ });
222
+ static from_obj_for_encoding(data: Record<string, any>): Account;
223
+ }
224
+ /**
225
+ * AccountParticipation describes the parameters used by this account in consensus
226
+ * protocol.
227
+ */
228
+ export declare class AccountParticipation extends BaseModel {
229
+ /**
230
+ * (sel) Selection public key (if any) currently registered for this round.
231
+ */
232
+ selectionParticipationKey: Uint8Array;
233
+ /**
234
+ * (voteFst) First round for which this participation is valid.
235
+ */
236
+ voteFirstValid: number | bigint;
237
+ /**
238
+ * (voteKD) Number of subkeys in each batch of participation keys.
239
+ */
240
+ voteKeyDilution: number | bigint;
241
+ /**
242
+ * (voteLst) Last round for which this participation is valid.
243
+ */
244
+ voteLastValid: number | bigint;
245
+ /**
246
+ * (vote) root participation public key (if any) currently registered for this
247
+ * round.
248
+ */
249
+ voteParticipationKey: Uint8Array;
250
+ /**
251
+ * (stprf) Root of the state proof key (if any)
252
+ */
253
+ stateProofKey?: Uint8Array;
254
+ /**
255
+ * Creates a new `AccountParticipation` object.
256
+ * @param selectionParticipationKey - (sel) Selection public key (if any) currently registered for this round.
257
+ * @param voteFirstValid - (voteFst) First round for which this participation is valid.
258
+ * @param voteKeyDilution - (voteKD) Number of subkeys in each batch of participation keys.
259
+ * @param voteLastValid - (voteLst) Last round for which this participation is valid.
260
+ * @param voteParticipationKey - (vote) root participation public key (if any) currently registered for this
261
+ * round.
262
+ * @param stateProofKey - (stprf) Root of the state proof key (if any)
263
+ */
264
+ constructor({ selectionParticipationKey, voteFirstValid, voteKeyDilution, voteLastValid, voteParticipationKey, stateProofKey, }: {
265
+ selectionParticipationKey: string | Uint8Array;
266
+ voteFirstValid: number | bigint;
267
+ voteKeyDilution: number | bigint;
268
+ voteLastValid: number | bigint;
269
+ voteParticipationKey: string | Uint8Array;
270
+ stateProofKey?: string | Uint8Array;
271
+ });
272
+ static from_obj_for_encoding(data: Record<string, any>): AccountParticipation;
273
+ }
274
+ /**
275
+ *
276
+ */
277
+ export declare class AccountResponse extends BaseModel {
278
+ /**
279
+ * Account information at a given round.
280
+ * Definition:
281
+ * data/basics/userBalance.go : AccountData
282
+ */
283
+ account: Account;
284
+ /**
285
+ * Round at which the results were computed.
286
+ */
287
+ currentRound: number | bigint;
288
+ /**
289
+ * Creates a new `AccountResponse` object.
290
+ * @param account - Account information at a given round.
291
+ * Definition:
292
+ * data/basics/userBalance.go : AccountData
293
+ * @param currentRound - Round at which the results were computed.
294
+ */
295
+ constructor({ account, currentRound, }: {
296
+ account: Account;
297
+ currentRound: number | bigint;
298
+ });
299
+ static from_obj_for_encoding(data: Record<string, any>): AccountResponse;
300
+ }
301
+ /**
302
+ * Application state delta.
303
+ */
304
+ export declare class AccountStateDelta extends BaseModel {
305
+ address: string;
306
+ /**
307
+ * Application state delta.
308
+ */
309
+ delta: EvalDeltaKeyValue[];
310
+ /**
311
+ * Creates a new `AccountStateDelta` object.
312
+ * @param address -
313
+ * @param delta - Application state delta.
314
+ */
315
+ constructor({ address, delta, }: {
316
+ address: string;
317
+ delta: EvalDeltaKeyValue[];
318
+ });
319
+ static from_obj_for_encoding(data: Record<string, any>): AccountStateDelta;
320
+ }
321
+ /**
322
+ *
323
+ */
324
+ export declare class AccountsResponse extends BaseModel {
325
+ accounts: Account[];
326
+ /**
327
+ * Round at which the results were computed.
328
+ */
329
+ currentRound: number | bigint;
330
+ /**
331
+ * Used for pagination, when making another request provide this token with the
332
+ * next parameter.
333
+ */
334
+ nextToken?: string;
335
+ /**
336
+ * Creates a new `AccountsResponse` object.
337
+ * @param accounts -
338
+ * @param currentRound - Round at which the results were computed.
339
+ * @param nextToken - Used for pagination, when making another request provide this token with the
340
+ * next parameter.
341
+ */
342
+ constructor({ accounts, currentRound, nextToken, }: {
343
+ accounts: Account[];
344
+ currentRound: number | bigint;
345
+ nextToken?: string;
346
+ });
347
+ static from_obj_for_encoding(data: Record<string, any>): AccountsResponse;
348
+ }
349
+ /**
350
+ * Application index and its parameters
351
+ */
352
+ export declare class Application extends BaseModel {
353
+ /**
354
+ * (appidx) application index.
355
+ */
356
+ id: number | bigint;
357
+ /**
358
+ * (appparams) application parameters.
359
+ */
360
+ params: ApplicationParams;
361
+ /**
362
+ * Round when this application was created.
363
+ */
364
+ createdAtRound?: number | bigint;
365
+ /**
366
+ * Whether or not this application is currently deleted.
367
+ */
368
+ deleted?: boolean;
369
+ /**
370
+ * Round when this application was deleted.
371
+ */
372
+ deletedAtRound?: number | bigint;
373
+ /**
374
+ * Creates a new `Application` object.
375
+ * @param id - (appidx) application index.
376
+ * @param params - (appparams) application parameters.
377
+ * @param createdAtRound - Round when this application was created.
378
+ * @param deleted - Whether or not this application is currently deleted.
379
+ * @param deletedAtRound - Round when this application was deleted.
380
+ */
381
+ constructor({ id, params, createdAtRound, deleted, deletedAtRound, }: {
382
+ id: number | bigint;
383
+ params: ApplicationParams;
384
+ createdAtRound?: number | bigint;
385
+ deleted?: boolean;
386
+ deletedAtRound?: number | bigint;
387
+ });
388
+ static from_obj_for_encoding(data: Record<string, any>): Application;
389
+ }
390
+ /**
391
+ * Stores local state associated with an application.
392
+ */
393
+ export declare class ApplicationLocalState extends BaseModel {
394
+ /**
395
+ * The application which this local state is for.
396
+ */
397
+ id: number | bigint;
398
+ /**
399
+ * (hsch) schema.
400
+ */
401
+ schema: ApplicationStateSchema;
402
+ /**
403
+ * Round when account closed out of the application.
404
+ */
405
+ closedOutAtRound?: number | bigint;
406
+ /**
407
+ * Whether or not the application local state is currently deleted from its
408
+ * account.
409
+ */
410
+ deleted?: boolean;
411
+ /**
412
+ * (tkv) storage.
413
+ */
414
+ keyValue?: TealKeyValue[];
415
+ /**
416
+ * Round when the account opted into the application.
417
+ */
418
+ optedInAtRound?: number | bigint;
419
+ /**
420
+ * Creates a new `ApplicationLocalState` object.
421
+ * @param id - The application which this local state is for.
422
+ * @param schema - (hsch) schema.
423
+ * @param closedOutAtRound - Round when account closed out of the application.
424
+ * @param deleted - Whether or not the application local state is currently deleted from its
425
+ * account.
426
+ * @param keyValue - (tkv) storage.
427
+ * @param optedInAtRound - Round when the account opted into the application.
428
+ */
429
+ constructor({ id, schema, closedOutAtRound, deleted, keyValue, optedInAtRound, }: {
430
+ id: number | bigint;
431
+ schema: ApplicationStateSchema;
432
+ closedOutAtRound?: number | bigint;
433
+ deleted?: boolean;
434
+ keyValue?: TealKeyValue[];
435
+ optedInAtRound?: number | bigint;
436
+ });
437
+ static from_obj_for_encoding(data: Record<string, any>): ApplicationLocalState;
438
+ }
439
+ /**
440
+ *
441
+ */
442
+ export declare class ApplicationLocalStatesResponse extends BaseModel {
443
+ appsLocalStates: ApplicationLocalState[];
444
+ /**
445
+ * Round at which the results were computed.
446
+ */
447
+ currentRound: number | bigint;
448
+ /**
449
+ * Used for pagination, when making another request provide this token with the
450
+ * next parameter.
451
+ */
452
+ nextToken?: string;
453
+ /**
454
+ * Creates a new `ApplicationLocalStatesResponse` object.
455
+ * @param appsLocalStates -
456
+ * @param currentRound - Round at which the results were computed.
457
+ * @param nextToken - Used for pagination, when making another request provide this token with the
458
+ * next parameter.
459
+ */
460
+ constructor({ appsLocalStates, currentRound, nextToken, }: {
461
+ appsLocalStates: ApplicationLocalState[];
462
+ currentRound: number | bigint;
463
+ nextToken?: string;
464
+ });
465
+ static from_obj_for_encoding(data: Record<string, any>): ApplicationLocalStatesResponse;
466
+ }
467
+ /**
468
+ * Stores the global information associated with an application.
469
+ */
470
+ export declare class ApplicationLogData extends BaseModel {
471
+ /**
472
+ * (lg) Logs for the application being executed by the transaction.
473
+ */
474
+ logs: Uint8Array[];
475
+ /**
476
+ * Transaction ID
477
+ */
478
+ txid: string;
479
+ /**
480
+ * Creates a new `ApplicationLogData` object.
481
+ * @param logs - (lg) Logs for the application being executed by the transaction.
482
+ * @param txid - Transaction ID
483
+ */
484
+ constructor({ logs, txid }: {
485
+ logs: Uint8Array[];
486
+ txid: string;
487
+ });
488
+ static from_obj_for_encoding(data: Record<string, any>): ApplicationLogData;
489
+ }
490
+ /**
491
+ *
492
+ */
493
+ export declare class ApplicationLogsResponse extends BaseModel {
494
+ /**
495
+ * (appidx) application index.
496
+ */
497
+ applicationId: number | bigint;
498
+ /**
499
+ * Round at which the results were computed.
500
+ */
501
+ currentRound: number | bigint;
502
+ logData?: ApplicationLogData[];
503
+ /**
504
+ * Used for pagination, when making another request provide this token with the
505
+ * next parameter.
506
+ */
507
+ nextToken?: string;
508
+ /**
509
+ * Creates a new `ApplicationLogsResponse` object.
510
+ * @param applicationId - (appidx) application index.
511
+ * @param currentRound - Round at which the results were computed.
512
+ * @param logData -
513
+ * @param nextToken - Used for pagination, when making another request provide this token with the
514
+ * next parameter.
515
+ */
516
+ constructor({ applicationId, currentRound, logData, nextToken, }: {
517
+ applicationId: number | bigint;
518
+ currentRound: number | bigint;
519
+ logData?: ApplicationLogData[];
520
+ nextToken?: string;
521
+ });
522
+ static from_obj_for_encoding(data: Record<string, any>): ApplicationLogsResponse;
523
+ }
524
+ /**
525
+ * Stores the global information associated with an application.
526
+ */
527
+ export declare class ApplicationParams extends BaseModel {
528
+ /**
529
+ * (approv) approval program.
530
+ */
531
+ approvalProgram: Uint8Array;
532
+ /**
533
+ * (clearp) approval program.
534
+ */
535
+ clearStateProgram: Uint8Array;
536
+ /**
537
+ * The address that created this application. This is the address where the
538
+ * parameters and global state for this application can be found.
539
+ */
540
+ creator?: string;
541
+ /**
542
+ * (epp) the amount of extra program pages available to this app.
543
+ */
544
+ extraProgramPages?: number | bigint;
545
+ /**
546
+ * [\gs) global schema
547
+ */
548
+ globalState?: TealKeyValue[];
549
+ /**
550
+ * [\gsch) global schema
551
+ */
552
+ globalStateSchema?: ApplicationStateSchema;
553
+ /**
554
+ * [\lsch) local schema
555
+ */
556
+ localStateSchema?: ApplicationStateSchema;
557
+ /**
558
+ * Creates a new `ApplicationParams` object.
559
+ * @param approvalProgram - (approv) approval program.
560
+ * @param clearStateProgram - (clearp) approval program.
561
+ * @param creator - The address that created this application. This is the address where the
562
+ * parameters and global state for this application can be found.
563
+ * @param extraProgramPages - (epp) the amount of extra program pages available to this app.
564
+ * @param globalState - [\gs) global schema
565
+ * @param globalStateSchema - [\gsch) global schema
566
+ * @param localStateSchema - [\lsch) local schema
567
+ */
568
+ constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, }: {
569
+ approvalProgram: string | Uint8Array;
570
+ clearStateProgram: string | Uint8Array;
571
+ creator?: string;
572
+ extraProgramPages?: number | bigint;
573
+ globalState?: TealKeyValue[];
574
+ globalStateSchema?: ApplicationStateSchema;
575
+ localStateSchema?: ApplicationStateSchema;
576
+ });
577
+ static from_obj_for_encoding(data: Record<string, any>): ApplicationParams;
578
+ }
579
+ /**
580
+ *
581
+ */
582
+ export declare class ApplicationResponse extends BaseModel {
583
+ /**
584
+ * Round at which the results were computed.
585
+ */
586
+ currentRound: number | bigint;
587
+ /**
588
+ * Application index and its parameters
589
+ */
590
+ application?: Application;
591
+ /**
592
+ * Creates a new `ApplicationResponse` object.
593
+ * @param currentRound - Round at which the results were computed.
594
+ * @param application - Application index and its parameters
595
+ */
596
+ constructor({ currentRound, application, }: {
597
+ currentRound: number | bigint;
598
+ application?: Application;
599
+ });
600
+ static from_obj_for_encoding(data: Record<string, any>): ApplicationResponse;
601
+ }
602
+ /**
603
+ * Specifies maximums on the number of each type that may be stored.
604
+ */
605
+ export declare class ApplicationStateSchema extends BaseModel {
606
+ /**
607
+ * (nbs) num of byte slices.
608
+ */
609
+ numByteSlice: number | bigint;
610
+ /**
611
+ * (nui) num of uints.
612
+ */
613
+ numUint: number | bigint;
614
+ /**
615
+ * Creates a new `ApplicationStateSchema` object.
616
+ * @param numByteSlice - (nbs) num of byte slices.
617
+ * @param numUint - (nui) num of uints.
618
+ */
619
+ constructor({ numByteSlice, numUint, }: {
620
+ numByteSlice: number | bigint;
621
+ numUint: number | bigint;
622
+ });
623
+ static from_obj_for_encoding(data: Record<string, any>): ApplicationStateSchema;
624
+ }
625
+ /**
626
+ *
627
+ */
628
+ export declare class ApplicationsResponse extends BaseModel {
629
+ applications: Application[];
630
+ /**
631
+ * Round at which the results were computed.
632
+ */
633
+ currentRound: number | bigint;
634
+ /**
635
+ * Used for pagination, when making another request provide this token with the
636
+ * next parameter.
637
+ */
638
+ nextToken?: string;
639
+ /**
640
+ * Creates a new `ApplicationsResponse` object.
641
+ * @param applications -
642
+ * @param currentRound - Round at which the results were computed.
643
+ * @param nextToken - Used for pagination, when making another request provide this token with the
644
+ * next parameter.
645
+ */
646
+ constructor({ applications, currentRound, nextToken, }: {
647
+ applications: Application[];
648
+ currentRound: number | bigint;
649
+ nextToken?: string;
650
+ });
651
+ static from_obj_for_encoding(data: Record<string, any>): ApplicationsResponse;
652
+ }
653
+ /**
654
+ * Specifies both the unique identifier and the parameters for an asset
655
+ */
656
+ export declare class Asset extends BaseModel {
657
+ /**
658
+ * unique asset identifier
659
+ */
660
+ index: number | bigint;
661
+ /**
662
+ * AssetParams specifies the parameters for an asset.
663
+ * (apar) when part of an AssetConfig transaction.
664
+ * Definition:
665
+ * data/transactions/asset.go : AssetParams
666
+ */
667
+ params: AssetParams;
668
+ /**
669
+ * Round during which this asset was created.
670
+ */
671
+ createdAtRound?: number | bigint;
672
+ /**
673
+ * Whether or not this asset is currently deleted.
674
+ */
675
+ deleted?: boolean;
676
+ /**
677
+ * Round during which this asset was destroyed.
678
+ */
679
+ destroyedAtRound?: number | bigint;
680
+ /**
681
+ * Creates a new `Asset` object.
682
+ * @param index - unique asset identifier
683
+ * @param params - AssetParams specifies the parameters for an asset.
684
+ * (apar) when part of an AssetConfig transaction.
685
+ * Definition:
686
+ * data/transactions/asset.go : AssetParams
687
+ * @param createdAtRound - Round during which this asset was created.
688
+ * @param deleted - Whether or not this asset is currently deleted.
689
+ * @param destroyedAtRound - Round during which this asset was destroyed.
690
+ */
691
+ constructor({ index, params, createdAtRound, deleted, destroyedAtRound, }: {
692
+ index: number | bigint;
693
+ params: AssetParams;
694
+ createdAtRound?: number | bigint;
695
+ deleted?: boolean;
696
+ destroyedAtRound?: number | bigint;
697
+ });
698
+ static from_obj_for_encoding(data: Record<string, any>): Asset;
699
+ }
700
+ /**
701
+ *
702
+ */
703
+ export declare class AssetBalancesResponse extends BaseModel {
704
+ balances: MiniAssetHolding[];
705
+ /**
706
+ * Round at which the results were computed.
707
+ */
708
+ currentRound: number | bigint;
709
+ /**
710
+ * Used for pagination, when making another request provide this token with the
711
+ * next parameter.
712
+ */
713
+ nextToken?: string;
714
+ /**
715
+ * Creates a new `AssetBalancesResponse` object.
716
+ * @param balances -
717
+ * @param currentRound - Round at which the results were computed.
718
+ * @param nextToken - Used for pagination, when making another request provide this token with the
719
+ * next parameter.
720
+ */
721
+ constructor({ balances, currentRound, nextToken, }: {
722
+ balances: MiniAssetHolding[];
723
+ currentRound: number | bigint;
724
+ nextToken?: string;
725
+ });
726
+ static from_obj_for_encoding(data: Record<string, any>): AssetBalancesResponse;
727
+ }
728
+ /**
729
+ * Describes an asset held by an account.
730
+ * Definition:
731
+ * data/basics/userBalance.go : AssetHolding
732
+ */
733
+ export declare class AssetHolding extends BaseModel {
734
+ /**
735
+ * (a) number of units held.
736
+ */
737
+ amount: number | bigint;
738
+ /**
739
+ * Asset ID of the holding.
740
+ */
741
+ assetId: number | bigint;
742
+ /**
743
+ * (f) whether or not the holding is frozen.
744
+ */
745
+ isFrozen: boolean;
746
+ /**
747
+ * Whether or not the asset holding is currently deleted from its account.
748
+ */
749
+ deleted?: boolean;
750
+ /**
751
+ * Round during which the account opted into this asset holding.
752
+ */
753
+ optedInAtRound?: number | bigint;
754
+ /**
755
+ * Round during which the account opted out of this asset holding.
756
+ */
757
+ optedOutAtRound?: number | bigint;
758
+ /**
759
+ * Creates a new `AssetHolding` object.
760
+ * @param amount - (a) number of units held.
761
+ * @param assetId - Asset ID of the holding.
762
+ * @param isFrozen - (f) whether or not the holding is frozen.
763
+ * @param deleted - Whether or not the asset holding is currently deleted from its account.
764
+ * @param optedInAtRound - Round during which the account opted into this asset holding.
765
+ * @param optedOutAtRound - Round during which the account opted out of this asset holding.
766
+ */
767
+ constructor({ amount, assetId, isFrozen, deleted, optedInAtRound, optedOutAtRound, }: {
768
+ amount: number | bigint;
769
+ assetId: number | bigint;
770
+ isFrozen: boolean;
771
+ deleted?: boolean;
772
+ optedInAtRound?: number | bigint;
773
+ optedOutAtRound?: number | bigint;
774
+ });
775
+ static from_obj_for_encoding(data: Record<string, any>): AssetHolding;
776
+ }
777
+ /**
778
+ *
779
+ */
780
+ export declare class AssetHoldingsResponse extends BaseModel {
781
+ assets: AssetHolding[];
782
+ /**
783
+ * Round at which the results were computed.
784
+ */
785
+ currentRound: number | bigint;
786
+ /**
787
+ * Used for pagination, when making another request provide this token with the
788
+ * next parameter.
789
+ */
790
+ nextToken?: string;
791
+ /**
792
+ * Creates a new `AssetHoldingsResponse` object.
793
+ * @param assets -
794
+ * @param currentRound - Round at which the results were computed.
795
+ * @param nextToken - Used for pagination, when making another request provide this token with the
796
+ * next parameter.
797
+ */
798
+ constructor({ assets, currentRound, nextToken, }: {
799
+ assets: AssetHolding[];
800
+ currentRound: number | bigint;
801
+ nextToken?: string;
802
+ });
803
+ static from_obj_for_encoding(data: Record<string, any>): AssetHoldingsResponse;
804
+ }
805
+ /**
806
+ * AssetParams specifies the parameters for an asset.
807
+ * (apar) when part of an AssetConfig transaction.
808
+ * Definition:
809
+ * data/transactions/asset.go : AssetParams
810
+ */
811
+ export declare class AssetParams extends BaseModel {
812
+ /**
813
+ * The address that created this asset. This is the address where the parameters
814
+ * for this asset can be found, and also the address where unwanted asset units can
815
+ * be sent in the worst case.
816
+ */
817
+ creator: string;
818
+ /**
819
+ * (dc) The number of digits to use after the decimal point when displaying this
820
+ * asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in
821
+ * tenths. If 2, the base unit of the asset is in hundredths, and so on. This value
822
+ * must be between 0 and 19 (inclusive).
823
+ */
824
+ decimals: number | bigint;
825
+ /**
826
+ * (t) The total number of units of this asset.
827
+ */
828
+ total: number | bigint;
829
+ /**
830
+ * (c) Address of account used to clawback holdings of this asset. If empty,
831
+ * clawback is not permitted.
832
+ */
833
+ clawback?: string;
834
+ /**
835
+ * (df) Whether holdings of this asset are frozen by default.
836
+ */
837
+ defaultFrozen?: boolean;
838
+ /**
839
+ * (f) Address of account used to freeze holdings of this asset. If empty, freezing
840
+ * is not permitted.
841
+ */
842
+ freeze?: string;
843
+ /**
844
+ * (m) Address of account used to manage the keys of this asset and to destroy it.
845
+ */
846
+ manager?: string;
847
+ /**
848
+ * (am) A commitment to some unspecified asset metadata. The format of this
849
+ * metadata is up to the application.
850
+ */
851
+ metadataHash?: Uint8Array;
852
+ /**
853
+ * (an) Name of this asset, as supplied by the creator. Included only when the
854
+ * asset name is composed of printable utf-8 characters.
855
+ */
856
+ name?: string;
857
+ /**
858
+ * Base64 encoded name of this asset, as supplied by the creator.
859
+ */
860
+ nameB64?: Uint8Array;
861
+ /**
862
+ * (r) Address of account holding reserve (non-minted) units of this asset.
863
+ */
864
+ reserve?: string;
865
+ /**
866
+ * (un) Name of a unit of this asset, as supplied by the creator. Included only
867
+ * when the name of a unit of this asset is composed of printable utf-8 characters.
868
+ */
869
+ unitName?: string;
870
+ /**
871
+ * Base64 encoded name of a unit of this asset, as supplied by the creator.
872
+ */
873
+ unitNameB64?: Uint8Array;
874
+ /**
875
+ * (au) URL where more information about the asset can be retrieved. Included only
876
+ * when the URL is composed of printable utf-8 characters.
877
+ */
878
+ url?: string;
879
+ /**
880
+ * Base64 encoded URL where more information about the asset can be retrieved.
881
+ */
882
+ urlB64?: Uint8Array;
883
+ /**
884
+ * Creates a new `AssetParams` object.
885
+ * @param creator - The address that created this asset. This is the address where the parameters
886
+ * for this asset can be found, and also the address where unwanted asset units can
887
+ * be sent in the worst case.
888
+ * @param decimals - (dc) The number of digits to use after the decimal point when displaying this
889
+ * asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in
890
+ * tenths. If 2, the base unit of the asset is in hundredths, and so on. This value
891
+ * must be between 0 and 19 (inclusive).
892
+ * @param total - (t) The total number of units of this asset.
893
+ * @param clawback - (c) Address of account used to clawback holdings of this asset. If empty,
894
+ * clawback is not permitted.
895
+ * @param defaultFrozen - (df) Whether holdings of this asset are frozen by default.
896
+ * @param freeze - (f) Address of account used to freeze holdings of this asset. If empty, freezing
897
+ * is not permitted.
898
+ * @param manager - (m) Address of account used to manage the keys of this asset and to destroy it.
899
+ * @param metadataHash - (am) A commitment to some unspecified asset metadata. The format of this
900
+ * metadata is up to the application.
901
+ * @param name - (an) Name of this asset, as supplied by the creator. Included only when the
902
+ * asset name is composed of printable utf-8 characters.
903
+ * @param nameB64 - Base64 encoded name of this asset, as supplied by the creator.
904
+ * @param reserve - (r) Address of account holding reserve (non-minted) units of this asset.
905
+ * @param unitName - (un) Name of a unit of this asset, as supplied by the creator. Included only
906
+ * when the name of a unit of this asset is composed of printable utf-8 characters.
907
+ * @param unitNameB64 - Base64 encoded name of a unit of this asset, as supplied by the creator.
908
+ * @param url - (au) URL where more information about the asset can be retrieved. Included only
909
+ * when the URL is composed of printable utf-8 characters.
910
+ * @param urlB64 - Base64 encoded URL where more information about the asset can be retrieved.
911
+ */
912
+ constructor({ creator, decimals, total, clawback, defaultFrozen, freeze, manager, metadataHash, name, nameB64, reserve, unitName, unitNameB64, url, urlB64, }: {
913
+ creator: string;
914
+ decimals: number | bigint;
915
+ total: number | bigint;
916
+ clawback?: string;
917
+ defaultFrozen?: boolean;
918
+ freeze?: string;
919
+ manager?: string;
920
+ metadataHash?: string | Uint8Array;
921
+ name?: string;
922
+ nameB64?: string | Uint8Array;
923
+ reserve?: string;
924
+ unitName?: string;
925
+ unitNameB64?: string | Uint8Array;
926
+ url?: string;
927
+ urlB64?: string | Uint8Array;
928
+ });
929
+ static from_obj_for_encoding(data: Record<string, any>): AssetParams;
930
+ }
931
+ /**
932
+ *
933
+ */
934
+ export declare class AssetResponse extends BaseModel {
935
+ /**
936
+ * Specifies both the unique identifier and the parameters for an asset
937
+ */
938
+ asset: Asset;
939
+ /**
940
+ * Round at which the results were computed.
941
+ */
942
+ currentRound: number | bigint;
943
+ /**
944
+ * Creates a new `AssetResponse` object.
945
+ * @param asset - Specifies both the unique identifier and the parameters for an asset
946
+ * @param currentRound - Round at which the results were computed.
947
+ */
948
+ constructor({ asset, currentRound, }: {
949
+ asset: Asset;
950
+ currentRound: number | bigint;
951
+ });
952
+ static from_obj_for_encoding(data: Record<string, any>): AssetResponse;
953
+ }
954
+ /**
955
+ *
956
+ */
957
+ export declare class AssetsResponse extends BaseModel {
958
+ assets: Asset[];
959
+ /**
960
+ * Round at which the results were computed.
961
+ */
962
+ currentRound: number | bigint;
963
+ /**
964
+ * Used for pagination, when making another request provide this token with the
965
+ * next parameter.
966
+ */
967
+ nextToken?: string;
968
+ /**
969
+ * Creates a new `AssetsResponse` object.
970
+ * @param assets -
971
+ * @param currentRound - Round at which the results were computed.
972
+ * @param nextToken - Used for pagination, when making another request provide this token with the
973
+ * next parameter.
974
+ */
975
+ constructor({ assets, currentRound, nextToken, }: {
976
+ assets: Asset[];
977
+ currentRound: number | bigint;
978
+ nextToken?: string;
979
+ });
980
+ static from_obj_for_encoding(data: Record<string, any>): AssetsResponse;
981
+ }
982
+ /**
983
+ * Block information.
984
+ * Definition:
985
+ * data/bookkeeping/block.go : Block
986
+ */
987
+ export declare class Block extends BaseModel {
988
+ /**
989
+ * (gh) hash to which this block belongs.
990
+ */
991
+ genesisHash: Uint8Array;
992
+ /**
993
+ * (gen) ID to which this block belongs.
994
+ */
995
+ genesisId: string;
996
+ /**
997
+ * (prev) Previous block hash.
998
+ */
999
+ previousBlockHash: Uint8Array;
1000
+ /**
1001
+ * (rnd) Current round on which this block was appended to the chain.
1002
+ */
1003
+ round: number | bigint;
1004
+ /**
1005
+ * (seed) Sortition seed.
1006
+ */
1007
+ seed: Uint8Array;
1008
+ /**
1009
+ * (ts) Block creation timestamp in seconds since eposh
1010
+ */
1011
+ timestamp: number | bigint;
1012
+ /**
1013
+ * (txn) TransactionsRoot authenticates the set of transactions appearing in the
1014
+ * block. More specifically, it's the root of a merkle tree whose leaves are the
1015
+ * block's Txids, in lexicographic order. For the empty block, it's 0. Note that
1016
+ * the TxnRoot does not authenticate the signatures on the transactions, only the
1017
+ * transactions themselves. Two blocks with the same transactions but in a
1018
+ * different order and with different signatures will have the same TxnRoot.
1019
+ */
1020
+ transactionsRoot: Uint8Array;
1021
+ /**
1022
+ * (txn256) TransactionsRootSHA256 is an auxiliary TransactionRoot, built using a
1023
+ * vector commitment instead of a merkle tree, and SHA256 hash function instead of
1024
+ * the default SHA512_256. This commitment can be used on environments where only
1025
+ * the SHA256 function exists.
1026
+ */
1027
+ transactionsRootSha256: Uint8Array;
1028
+ /**
1029
+ * Participation account data that needs to be checked/acted on by the network.
1030
+ */
1031
+ participationUpdates?: ParticipationUpdates;
1032
+ /**
1033
+ * Fields relating to rewards,
1034
+ */
1035
+ rewards?: BlockRewards;
1036
+ /**
1037
+ * Tracks the status of state proofs.
1038
+ */
1039
+ stateProofTracking?: StateProofTracking[];
1040
+ /**
1041
+ * (txns) list of transactions corresponding to a given round.
1042
+ */
1043
+ transactions?: Transaction[];
1044
+ /**
1045
+ * (tc) TxnCounter counts the number of transactions committed in the ledger, from
1046
+ * the time at which support for this feature was introduced.
1047
+ * Specifically, TxnCounter is the number of the next transaction that will be
1048
+ * committed after this block. It is 0 when no transactions have ever been
1049
+ * committed (since TxnCounter started being supported).
1050
+ */
1051
+ txnCounter?: number | bigint;
1052
+ /**
1053
+ * Fields relating to a protocol upgrade.
1054
+ */
1055
+ upgradeState?: BlockUpgradeState;
1056
+ /**
1057
+ * Fields relating to voting for a protocol upgrade.
1058
+ */
1059
+ upgradeVote?: BlockUpgradeVote;
1060
+ /**
1061
+ * Creates a new `Block` object.
1062
+ * @param genesisHash - (gh) hash to which this block belongs.
1063
+ * @param genesisId - (gen) ID to which this block belongs.
1064
+ * @param previousBlockHash - (prev) Previous block hash.
1065
+ * @param round - (rnd) Current round on which this block was appended to the chain.
1066
+ * @param seed - (seed) Sortition seed.
1067
+ * @param timestamp - (ts) Block creation timestamp in seconds since eposh
1068
+ * @param transactionsRoot - (txn) TransactionsRoot authenticates the set of transactions appearing in the
1069
+ * block. More specifically, it's the root of a merkle tree whose leaves are the
1070
+ * block's Txids, in lexicographic order. For the empty block, it's 0. Note that
1071
+ * the TxnRoot does not authenticate the signatures on the transactions, only the
1072
+ * transactions themselves. Two blocks with the same transactions but in a
1073
+ * different order and with different signatures will have the same TxnRoot.
1074
+ * @param transactionsRootSha256 - (txn256) TransactionsRootSHA256 is an auxiliary TransactionRoot, built using a
1075
+ * vector commitment instead of a merkle tree, and SHA256 hash function instead of
1076
+ * the default SHA512_256. This commitment can be used on environments where only
1077
+ * the SHA256 function exists.
1078
+ * @param participationUpdates - Participation account data that needs to be checked/acted on by the network.
1079
+ * @param rewards - Fields relating to rewards,
1080
+ * @param stateProofTracking - Tracks the status of state proofs.
1081
+ * @param transactions - (txns) list of transactions corresponding to a given round.
1082
+ * @param txnCounter - (tc) TxnCounter counts the number of transactions committed in the ledger, from
1083
+ * the time at which support for this feature was introduced.
1084
+ * Specifically, TxnCounter is the number of the next transaction that will be
1085
+ * committed after this block. It is 0 when no transactions have ever been
1086
+ * committed (since TxnCounter started being supported).
1087
+ * @param upgradeState - Fields relating to a protocol upgrade.
1088
+ * @param upgradeVote - Fields relating to voting for a protocol upgrade.
1089
+ */
1090
+ constructor({ genesisHash, genesisId, previousBlockHash, round, seed, timestamp, transactionsRoot, transactionsRootSha256, participationUpdates, rewards, stateProofTracking, transactions, txnCounter, upgradeState, upgradeVote, }: {
1091
+ genesisHash: string | Uint8Array;
1092
+ genesisId: string;
1093
+ previousBlockHash: string | Uint8Array;
1094
+ round: number | bigint;
1095
+ seed: string | Uint8Array;
1096
+ timestamp: number | bigint;
1097
+ transactionsRoot: string | Uint8Array;
1098
+ transactionsRootSha256: string | Uint8Array;
1099
+ participationUpdates?: ParticipationUpdates;
1100
+ rewards?: BlockRewards;
1101
+ stateProofTracking?: StateProofTracking[];
1102
+ transactions?: Transaction[];
1103
+ txnCounter?: number | bigint;
1104
+ upgradeState?: BlockUpgradeState;
1105
+ upgradeVote?: BlockUpgradeVote;
1106
+ });
1107
+ static from_obj_for_encoding(data: Record<string, any>): Block;
1108
+ }
1109
+ /**
1110
+ * Fields relating to rewards,
1111
+ */
1112
+ export declare class BlockRewards extends BaseModel {
1113
+ /**
1114
+ * (fees) accepts transaction fees, it can only spend to the incentive pool.
1115
+ */
1116
+ feeSink: string;
1117
+ /**
1118
+ * (rwcalr) number of leftover MicroAlgos after the distribution of rewards-rate
1119
+ * MicroAlgos for every reward unit in the next round.
1120
+ */
1121
+ rewardsCalculationRound: number | bigint;
1122
+ /**
1123
+ * (earn) How many rewards, in MicroAlgos, have been distributed to each RewardUnit
1124
+ * of MicroAlgos since genesis.
1125
+ */
1126
+ rewardsLevel: number | bigint;
1127
+ /**
1128
+ * (rwd) accepts periodic injections from the fee-sink and continually
1129
+ * redistributes them as rewards.
1130
+ */
1131
+ rewardsPool: string;
1132
+ /**
1133
+ * (rate) Number of new MicroAlgos added to the participation stake from rewards at
1134
+ * the next round.
1135
+ */
1136
+ rewardsRate: number | bigint;
1137
+ /**
1138
+ * (frac) Number of leftover MicroAlgos after the distribution of
1139
+ * RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.
1140
+ */
1141
+ rewardsResidue: number | bigint;
1142
+ /**
1143
+ * Creates a new `BlockRewards` object.
1144
+ * @param feeSink - (fees) accepts transaction fees, it can only spend to the incentive pool.
1145
+ * @param rewardsCalculationRound - (rwcalr) number of leftover MicroAlgos after the distribution of rewards-rate
1146
+ * MicroAlgos for every reward unit in the next round.
1147
+ * @param rewardsLevel - (earn) How many rewards, in MicroAlgos, have been distributed to each RewardUnit
1148
+ * of MicroAlgos since genesis.
1149
+ * @param rewardsPool - (rwd) accepts periodic injections from the fee-sink and continually
1150
+ * redistributes them as rewards.
1151
+ * @param rewardsRate - (rate) Number of new MicroAlgos added to the participation stake from rewards at
1152
+ * the next round.
1153
+ * @param rewardsResidue - (frac) Number of leftover MicroAlgos after the distribution of
1154
+ * RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.
1155
+ */
1156
+ constructor({ feeSink, rewardsCalculationRound, rewardsLevel, rewardsPool, rewardsRate, rewardsResidue, }: {
1157
+ feeSink: string;
1158
+ rewardsCalculationRound: number | bigint;
1159
+ rewardsLevel: number | bigint;
1160
+ rewardsPool: string;
1161
+ rewardsRate: number | bigint;
1162
+ rewardsResidue: number | bigint;
1163
+ });
1164
+ static from_obj_for_encoding(data: Record<string, any>): BlockRewards;
1165
+ }
1166
+ /**
1167
+ * Fields relating to a protocol upgrade.
1168
+ */
1169
+ export declare class BlockUpgradeState extends BaseModel {
1170
+ /**
1171
+ * (proto) The current protocol version.
1172
+ */
1173
+ currentProtocol: string;
1174
+ /**
1175
+ * (nextproto) The next proposed protocol version.
1176
+ */
1177
+ nextProtocol?: string;
1178
+ /**
1179
+ * (nextyes) Number of blocks which approved the protocol upgrade.
1180
+ */
1181
+ nextProtocolApprovals?: number | bigint;
1182
+ /**
1183
+ * (nextswitch) Round on which the protocol upgrade will take effect.
1184
+ */
1185
+ nextProtocolSwitchOn?: number | bigint;
1186
+ /**
1187
+ * (nextbefore) Deadline round for this protocol upgrade (No votes will be consider
1188
+ * after this round).
1189
+ */
1190
+ nextProtocolVoteBefore?: number | bigint;
1191
+ /**
1192
+ * Creates a new `BlockUpgradeState` object.
1193
+ * @param currentProtocol - (proto) The current protocol version.
1194
+ * @param nextProtocol - (nextproto) The next proposed protocol version.
1195
+ * @param nextProtocolApprovals - (nextyes) Number of blocks which approved the protocol upgrade.
1196
+ * @param nextProtocolSwitchOn - (nextswitch) Round on which the protocol upgrade will take effect.
1197
+ * @param nextProtocolVoteBefore - (nextbefore) Deadline round for this protocol upgrade (No votes will be consider
1198
+ * after this round).
1199
+ */
1200
+ constructor({ currentProtocol, nextProtocol, nextProtocolApprovals, nextProtocolSwitchOn, nextProtocolVoteBefore, }: {
1201
+ currentProtocol: string;
1202
+ nextProtocol?: string;
1203
+ nextProtocolApprovals?: number | bigint;
1204
+ nextProtocolSwitchOn?: number | bigint;
1205
+ nextProtocolVoteBefore?: number | bigint;
1206
+ });
1207
+ static from_obj_for_encoding(data: Record<string, any>): BlockUpgradeState;
1208
+ }
1209
+ /**
1210
+ * Fields relating to voting for a protocol upgrade.
1211
+ */
1212
+ export declare class BlockUpgradeVote extends BaseModel {
1213
+ /**
1214
+ * (upgradeyes) Indicates a yes vote for the current proposal.
1215
+ */
1216
+ upgradeApprove?: boolean;
1217
+ /**
1218
+ * (upgradedelay) Indicates the time between acceptance and execution.
1219
+ */
1220
+ upgradeDelay?: number | bigint;
1221
+ /**
1222
+ * (upgradeprop) Indicates a proposed upgrade.
1223
+ */
1224
+ upgradePropose?: string;
1225
+ /**
1226
+ * Creates a new `BlockUpgradeVote` object.
1227
+ * @param upgradeApprove - (upgradeyes) Indicates a yes vote for the current proposal.
1228
+ * @param upgradeDelay - (upgradedelay) Indicates the time between acceptance and execution.
1229
+ * @param upgradePropose - (upgradeprop) Indicates a proposed upgrade.
1230
+ */
1231
+ constructor({ upgradeApprove, upgradeDelay, upgradePropose, }: {
1232
+ upgradeApprove?: boolean;
1233
+ upgradeDelay?: number | bigint;
1234
+ upgradePropose?: string;
1235
+ });
1236
+ static from_obj_for_encoding(data: Record<string, any>): BlockUpgradeVote;
1237
+ }
1238
+ /**
1239
+ * Box name and its content.
1240
+ */
1241
+ export declare class Box extends BaseModel {
1242
+ /**
1243
+ * (name) box name, base64 encoded
1244
+ */
1245
+ name: Uint8Array;
1246
+ /**
1247
+ * (value) box value, base64 encoded.
1248
+ */
1249
+ value: Uint8Array;
1250
+ /**
1251
+ * Creates a new `Box` object.
1252
+ * @param name - (name) box name, base64 encoded
1253
+ * @param value - (value) box value, base64 encoded.
1254
+ */
1255
+ constructor({ name, value, }: {
1256
+ name: string | Uint8Array;
1257
+ value: string | Uint8Array;
1258
+ });
1259
+ static from_obj_for_encoding(data: Record<string, any>): Box;
1260
+ }
1261
+ /**
1262
+ * Box descriptor describes an app box without a value.
1263
+ */
1264
+ export declare class BoxDescriptor extends BaseModel {
1265
+ /**
1266
+ * Base64 encoded box name
1267
+ */
1268
+ name: Uint8Array;
1269
+ /**
1270
+ * Creates a new `BoxDescriptor` object.
1271
+ * @param name - Base64 encoded box name
1272
+ */
1273
+ constructor({ name }: {
1274
+ name: string | Uint8Array;
1275
+ });
1276
+ static from_obj_for_encoding(data: Record<string, any>): BoxDescriptor;
1277
+ }
1278
+ /**
1279
+ * Box names of an application
1280
+ */
1281
+ export declare class BoxesResponse extends BaseModel {
1282
+ /**
1283
+ * (appidx) application index.
1284
+ */
1285
+ applicationId: number | bigint;
1286
+ boxes: BoxDescriptor[];
1287
+ /**
1288
+ * Used for pagination, when making another request provide this token with the
1289
+ * next parameter.
1290
+ */
1291
+ nextToken?: string;
1292
+ /**
1293
+ * Creates a new `BoxesResponse` object.
1294
+ * @param applicationId - (appidx) application index.
1295
+ * @param boxes -
1296
+ * @param nextToken - Used for pagination, when making another request provide this token with the
1297
+ * next parameter.
1298
+ */
1299
+ constructor({ applicationId, boxes, nextToken, }: {
1300
+ applicationId: number | bigint;
1301
+ boxes: BoxDescriptor[];
1302
+ nextToken?: string;
1303
+ });
1304
+ static from_obj_for_encoding(data: Record<string, any>): BoxesResponse;
1305
+ }
1306
+ /**
1307
+ * Response for errors
1308
+ */
1309
+ export declare class ErrorResponse extends BaseModel {
1310
+ message: string;
1311
+ data?: Record<string, any>;
1312
+ /**
1313
+ * Creates a new `ErrorResponse` object.
1314
+ * @param message -
1315
+ * @param data -
1316
+ */
1317
+ constructor({ message, data, }: {
1318
+ message: string;
1319
+ data?: Record<string, any>;
1320
+ });
1321
+ static from_obj_for_encoding(data: Record<string, any>): ErrorResponse;
1322
+ }
1323
+ /**
1324
+ * Represents a TEAL value delta.
1325
+ */
1326
+ export declare class EvalDelta extends BaseModel {
1327
+ /**
1328
+ * (at) delta action.
1329
+ */
1330
+ action: number | bigint;
1331
+ /**
1332
+ * (bs) bytes value.
1333
+ */
1334
+ bytes?: string;
1335
+ /**
1336
+ * (ui) uint value.
1337
+ */
1338
+ uint?: number | bigint;
1339
+ /**
1340
+ * Creates a new `EvalDelta` object.
1341
+ * @param action - (at) delta action.
1342
+ * @param bytes - (bs) bytes value.
1343
+ * @param uint - (ui) uint value.
1344
+ */
1345
+ constructor({ action, bytes, uint, }: {
1346
+ action: number | bigint;
1347
+ bytes?: string;
1348
+ uint?: number | bigint;
1349
+ });
1350
+ static from_obj_for_encoding(data: Record<string, any>): EvalDelta;
1351
+ }
1352
+ /**
1353
+ * Key-value pairs for StateDelta.
1354
+ */
1355
+ export declare class EvalDeltaKeyValue extends BaseModel {
1356
+ key: string;
1357
+ /**
1358
+ * Represents a TEAL value delta.
1359
+ */
1360
+ value: EvalDelta;
1361
+ /**
1362
+ * Creates a new `EvalDeltaKeyValue` object.
1363
+ * @param key -
1364
+ * @param value - Represents a TEAL value delta.
1365
+ */
1366
+ constructor({ key, value }: {
1367
+ key: string;
1368
+ value: EvalDelta;
1369
+ });
1370
+ static from_obj_for_encoding(data: Record<string, any>): EvalDeltaKeyValue;
1371
+ }
1372
+ export declare class HashFactory extends BaseModel {
1373
+ /**
1374
+ * (t)
1375
+ */
1376
+ hashType?: number | bigint;
1377
+ /**
1378
+ * Creates a new `HashFactory` object.
1379
+ * @param hashType - (t)
1380
+ */
1381
+ constructor({ hashType }: {
1382
+ hashType?: number | bigint;
1383
+ });
1384
+ static from_obj_for_encoding(data: Record<string, any>): HashFactory;
1385
+ }
1386
+ /**
1387
+ * A health check response.
1388
+ */
1389
+ export declare class HealthCheck extends BaseModel {
1390
+ dbAvailable: boolean;
1391
+ isMigrating: boolean;
1392
+ message: string;
1393
+ round: number | bigint;
1394
+ /**
1395
+ * Current version.
1396
+ */
1397
+ version: string;
1398
+ data?: Record<string, any>;
1399
+ errors?: string[];
1400
+ /**
1401
+ * Creates a new `HealthCheck` object.
1402
+ * @param dbAvailable -
1403
+ * @param isMigrating -
1404
+ * @param message -
1405
+ * @param round -
1406
+ * @param version - Current version.
1407
+ * @param data -
1408
+ * @param errors -
1409
+ */
1410
+ constructor({ dbAvailable, isMigrating, message, round, version, data, errors, }: {
1411
+ dbAvailable: boolean;
1412
+ isMigrating: boolean;
1413
+ message: string;
1414
+ round: number | bigint;
1415
+ version: string;
1416
+ data?: Record<string, any>;
1417
+ errors?: string[];
1418
+ });
1419
+ static from_obj_for_encoding(data: Record<string, any>): HealthCheck;
1420
+ }
1421
+ export declare class IndexerStateProofMessage extends BaseModel {
1422
+ /**
1423
+ * (b)
1424
+ */
1425
+ blockHeadersCommitment?: Uint8Array;
1426
+ /**
1427
+ * (f)
1428
+ */
1429
+ firstAttestedRound?: number | bigint;
1430
+ /**
1431
+ * (l)
1432
+ */
1433
+ latestAttestedRound?: number | bigint;
1434
+ /**
1435
+ * (P)
1436
+ */
1437
+ lnProvenWeight?: number | bigint;
1438
+ /**
1439
+ * (v)
1440
+ */
1441
+ votersCommitment?: Uint8Array;
1442
+ /**
1443
+ * Creates a new `IndexerStateProofMessage` object.
1444
+ * @param blockHeadersCommitment - (b)
1445
+ * @param firstAttestedRound - (f)
1446
+ * @param latestAttestedRound - (l)
1447
+ * @param lnProvenWeight - (P)
1448
+ * @param votersCommitment - (v)
1449
+ */
1450
+ constructor({ blockHeadersCommitment, firstAttestedRound, latestAttestedRound, lnProvenWeight, votersCommitment, }: {
1451
+ blockHeadersCommitment?: string | Uint8Array;
1452
+ firstAttestedRound?: number | bigint;
1453
+ latestAttestedRound?: number | bigint;
1454
+ lnProvenWeight?: number | bigint;
1455
+ votersCommitment?: string | Uint8Array;
1456
+ });
1457
+ static from_obj_for_encoding(data: Record<string, any>): IndexerStateProofMessage;
1458
+ }
1459
+ export declare class MerkleArrayProof extends BaseModel {
1460
+ hashFactory?: HashFactory;
1461
+ /**
1462
+ * (pth)
1463
+ */
1464
+ path?: Uint8Array[];
1465
+ /**
1466
+ * (td)
1467
+ */
1468
+ treeDepth?: number | bigint;
1469
+ /**
1470
+ * Creates a new `MerkleArrayProof` object.
1471
+ * @param hashFactory -
1472
+ * @param path - (pth)
1473
+ * @param treeDepth - (td)
1474
+ */
1475
+ constructor({ hashFactory, path, treeDepth, }: {
1476
+ hashFactory?: HashFactory;
1477
+ path?: Uint8Array[];
1478
+ treeDepth?: number | bigint;
1479
+ });
1480
+ static from_obj_for_encoding(data: Record<string, any>): MerkleArrayProof;
1481
+ }
1482
+ /**
1483
+ * A simplified version of AssetHolding
1484
+ */
1485
+ export declare class MiniAssetHolding extends BaseModel {
1486
+ address: string;
1487
+ amount: number | bigint;
1488
+ isFrozen: boolean;
1489
+ /**
1490
+ * Whether or not this asset holding is currently deleted from its account.
1491
+ */
1492
+ deleted?: boolean;
1493
+ /**
1494
+ * Round during which the account opted into the asset.
1495
+ */
1496
+ optedInAtRound?: number | bigint;
1497
+ /**
1498
+ * Round during which the account opted out of the asset.
1499
+ */
1500
+ optedOutAtRound?: number | bigint;
1501
+ /**
1502
+ * Creates a new `MiniAssetHolding` object.
1503
+ * @param address -
1504
+ * @param amount -
1505
+ * @param isFrozen -
1506
+ * @param deleted - Whether or not this asset holding is currently deleted from its account.
1507
+ * @param optedInAtRound - Round during which the account opted into the asset.
1508
+ * @param optedOutAtRound - Round during which the account opted out of the asset.
1509
+ */
1510
+ constructor({ address, amount, isFrozen, deleted, optedInAtRound, optedOutAtRound, }: {
1511
+ address: string;
1512
+ amount: number | bigint;
1513
+ isFrozen: boolean;
1514
+ deleted?: boolean;
1515
+ optedInAtRound?: number | bigint;
1516
+ optedOutAtRound?: number | bigint;
1517
+ });
1518
+ static from_obj_for_encoding(data: Record<string, any>): MiniAssetHolding;
1519
+ }
1520
+ /**
1521
+ * Participation account data that needs to be checked/acted on by the network.
1522
+ */
1523
+ export declare class ParticipationUpdates extends BaseModel {
1524
+ /**
1525
+ * (partupdrmv) a list of online accounts that needs to be converted to offline
1526
+ * since their participation key expired.
1527
+ */
1528
+ expiredParticipationAccounts?: string[];
1529
+ /**
1530
+ * Creates a new `ParticipationUpdates` object.
1531
+ * @param expiredParticipationAccounts - (partupdrmv) a list of online accounts that needs to be converted to offline
1532
+ * since their participation key expired.
1533
+ */
1534
+ constructor({ expiredParticipationAccounts, }: {
1535
+ expiredParticipationAccounts?: string[];
1536
+ });
1537
+ static from_obj_for_encoding(data: Record<string, any>): ParticipationUpdates;
1538
+ }
1539
+ /**
1540
+ * (sp) represents a state proof.
1541
+ * Definition:
1542
+ * crypto/stateproof/structs.go : StateProof
1543
+ */
1544
+ export declare class StateProofFields extends BaseModel {
1545
+ /**
1546
+ * (P)
1547
+ */
1548
+ partProofs?: MerkleArrayProof;
1549
+ /**
1550
+ * (pr) Sequence of reveal positions.
1551
+ */
1552
+ positionsToReveal?: (number | bigint)[];
1553
+ /**
1554
+ * (r) Note that this is actually stored as a map[uint64] - Reveal in the actual
1555
+ * msgp
1556
+ */
1557
+ reveals?: StateProofReveal[];
1558
+ /**
1559
+ * (v) Salt version of the merkle signature.
1560
+ */
1561
+ saltVersion?: number | bigint;
1562
+ /**
1563
+ * (c)
1564
+ */
1565
+ sigCommit?: Uint8Array;
1566
+ /**
1567
+ * (S)
1568
+ */
1569
+ sigProofs?: MerkleArrayProof;
1570
+ /**
1571
+ * (w)
1572
+ */
1573
+ signedWeight?: number | bigint;
1574
+ /**
1575
+ * Creates a new `StateProofFields` object.
1576
+ * @param partProofs - (P)
1577
+ * @param positionsToReveal - (pr) Sequence of reveal positions.
1578
+ * @param reveals - (r) Note that this is actually stored as a map[uint64] - Reveal in the actual
1579
+ * msgp
1580
+ * @param saltVersion - (v) Salt version of the merkle signature.
1581
+ * @param sigCommit - (c)
1582
+ * @param sigProofs - (S)
1583
+ * @param signedWeight - (w)
1584
+ */
1585
+ constructor({ partProofs, positionsToReveal, reveals, saltVersion, sigCommit, sigProofs, signedWeight, }: {
1586
+ partProofs?: MerkleArrayProof;
1587
+ positionsToReveal?: (number | bigint)[];
1588
+ reveals?: StateProofReveal[];
1589
+ saltVersion?: number | bigint;
1590
+ sigCommit?: string | Uint8Array;
1591
+ sigProofs?: MerkleArrayProof;
1592
+ signedWeight?: number | bigint;
1593
+ });
1594
+ static from_obj_for_encoding(data: Record<string, any>): StateProofFields;
1595
+ }
1596
+ export declare class StateProofParticipant extends BaseModel {
1597
+ /**
1598
+ * (p)
1599
+ */
1600
+ verifier?: StateProofVerifier;
1601
+ /**
1602
+ * (w)
1603
+ */
1604
+ weight?: number | bigint;
1605
+ /**
1606
+ * Creates a new `StateProofParticipant` object.
1607
+ * @param verifier - (p)
1608
+ * @param weight - (w)
1609
+ */
1610
+ constructor({ verifier, weight, }: {
1611
+ verifier?: StateProofVerifier;
1612
+ weight?: number | bigint;
1613
+ });
1614
+ static from_obj_for_encoding(data: Record<string, any>): StateProofParticipant;
1615
+ }
1616
+ export declare class StateProofReveal extends BaseModel {
1617
+ /**
1618
+ * (p)
1619
+ */
1620
+ participant?: StateProofParticipant;
1621
+ /**
1622
+ * The position in the signature and participants arrays corresponding to this
1623
+ * entry.
1624
+ */
1625
+ position?: number | bigint;
1626
+ /**
1627
+ * (s)
1628
+ */
1629
+ sigSlot?: StateProofSigSlot;
1630
+ /**
1631
+ * Creates a new `StateProofReveal` object.
1632
+ * @param participant - (p)
1633
+ * @param position - The position in the signature and participants arrays corresponding to this
1634
+ * entry.
1635
+ * @param sigSlot - (s)
1636
+ */
1637
+ constructor({ participant, position, sigSlot, }: {
1638
+ participant?: StateProofParticipant;
1639
+ position?: number | bigint;
1640
+ sigSlot?: StateProofSigSlot;
1641
+ });
1642
+ static from_obj_for_encoding(data: Record<string, any>): StateProofReveal;
1643
+ }
1644
+ export declare class StateProofSigSlot extends BaseModel {
1645
+ /**
1646
+ * (l) The total weight of signatures in the lower-numbered slots.
1647
+ */
1648
+ lowerSigWeight?: number | bigint;
1649
+ signature?: StateProofSignature;
1650
+ /**
1651
+ * Creates a new `StateProofSigSlot` object.
1652
+ * @param lowerSigWeight - (l) The total weight of signatures in the lower-numbered slots.
1653
+ * @param signature -
1654
+ */
1655
+ constructor({ lowerSigWeight, signature, }: {
1656
+ lowerSigWeight?: number | bigint;
1657
+ signature?: StateProofSignature;
1658
+ });
1659
+ static from_obj_for_encoding(data: Record<string, any>): StateProofSigSlot;
1660
+ }
1661
+ export declare class StateProofSignature extends BaseModel {
1662
+ falconSignature?: Uint8Array;
1663
+ merkleArrayIndex?: number | bigint;
1664
+ proof?: MerkleArrayProof;
1665
+ /**
1666
+ * (vkey)
1667
+ */
1668
+ verifyingKey?: Uint8Array;
1669
+ /**
1670
+ * Creates a new `StateProofSignature` object.
1671
+ * @param falconSignature -
1672
+ * @param merkleArrayIndex -
1673
+ * @param proof -
1674
+ * @param verifyingKey - (vkey)
1675
+ */
1676
+ constructor({ falconSignature, merkleArrayIndex, proof, verifyingKey, }: {
1677
+ falconSignature?: string | Uint8Array;
1678
+ merkleArrayIndex?: number | bigint;
1679
+ proof?: MerkleArrayProof;
1680
+ verifyingKey?: string | Uint8Array;
1681
+ });
1682
+ static from_obj_for_encoding(data: Record<string, any>): StateProofSignature;
1683
+ }
1684
+ export declare class StateProofTracking extends BaseModel {
1685
+ /**
1686
+ * (n) Next round for which we will accept a state proof transaction.
1687
+ */
1688
+ nextRound?: number | bigint;
1689
+ /**
1690
+ * (t) The total number of microalgos held by the online accounts during the
1691
+ * StateProof round.
1692
+ */
1693
+ onlineTotalWeight?: number | bigint;
1694
+ /**
1695
+ * State Proof Type. Note the raw object uses map with this as key.
1696
+ */
1697
+ type?: number | bigint;
1698
+ /**
1699
+ * (v) Root of a vector commitment containing online accounts that will help sign
1700
+ * the proof.
1701
+ */
1702
+ votersCommitment?: Uint8Array;
1703
+ /**
1704
+ * Creates a new `StateProofTracking` object.
1705
+ * @param nextRound - (n) Next round for which we will accept a state proof transaction.
1706
+ * @param onlineTotalWeight - (t) The total number of microalgos held by the online accounts during the
1707
+ * StateProof round.
1708
+ * @param type - State Proof Type. Note the raw object uses map with this as key.
1709
+ * @param votersCommitment - (v) Root of a vector commitment containing online accounts that will help sign
1710
+ * the proof.
1711
+ */
1712
+ constructor({ nextRound, onlineTotalWeight, type, votersCommitment, }: {
1713
+ nextRound?: number | bigint;
1714
+ onlineTotalWeight?: number | bigint;
1715
+ type?: number | bigint;
1716
+ votersCommitment?: string | Uint8Array;
1717
+ });
1718
+ static from_obj_for_encoding(data: Record<string, any>): StateProofTracking;
1719
+ }
1720
+ export declare class StateProofVerifier extends BaseModel {
1721
+ /**
1722
+ * (cmt) Represents the root of the vector commitment tree.
1723
+ */
1724
+ commitment?: Uint8Array;
1725
+ /**
1726
+ * (lf) Key lifetime.
1727
+ */
1728
+ keyLifetime?: number | bigint;
1729
+ /**
1730
+ * Creates a new `StateProofVerifier` object.
1731
+ * @param commitment - (cmt) Represents the root of the vector commitment tree.
1732
+ * @param keyLifetime - (lf) Key lifetime.
1733
+ */
1734
+ constructor({ commitment, keyLifetime, }: {
1735
+ commitment?: string | Uint8Array;
1736
+ keyLifetime?: number | bigint;
1737
+ });
1738
+ static from_obj_for_encoding(data: Record<string, any>): StateProofVerifier;
1739
+ }
1740
+ /**
1741
+ * Represents a (apls) local-state or (apgs) global-state schema. These schemas
1742
+ * determine how much storage may be used in a local-state or global-state for an
1743
+ * application. The more space used, the larger minimum balance must be maintained
1744
+ * in the account holding the data.
1745
+ */
1746
+ export declare class StateSchema extends BaseModel {
1747
+ /**
1748
+ * Maximum number of TEAL byte slices that may be stored in the key/value store.
1749
+ */
1750
+ numByteSlice: number | bigint;
1751
+ /**
1752
+ * Maximum number of TEAL uints that may be stored in the key/value store.
1753
+ */
1754
+ numUint: number | bigint;
1755
+ /**
1756
+ * Creates a new `StateSchema` object.
1757
+ * @param numByteSlice - Maximum number of TEAL byte slices that may be stored in the key/value store.
1758
+ * @param numUint - Maximum number of TEAL uints that may be stored in the key/value store.
1759
+ */
1760
+ constructor({ numByteSlice, numUint, }: {
1761
+ numByteSlice: number | bigint;
1762
+ numUint: number | bigint;
1763
+ });
1764
+ static from_obj_for_encoding(data: Record<string, any>): StateSchema;
1765
+ }
1766
+ /**
1767
+ * Represents a key-value pair in an application store.
1768
+ */
1769
+ export declare class TealKeyValue extends BaseModel {
1770
+ key: string;
1771
+ /**
1772
+ * Represents a TEAL value.
1773
+ */
1774
+ value: TealValue;
1775
+ /**
1776
+ * Creates a new `TealKeyValue` object.
1777
+ * @param key -
1778
+ * @param value - Represents a TEAL value.
1779
+ */
1780
+ constructor({ key, value }: {
1781
+ key: string;
1782
+ value: TealValue;
1783
+ });
1784
+ static from_obj_for_encoding(data: Record<string, any>): TealKeyValue;
1785
+ }
1786
+ /**
1787
+ * Represents a TEAL value.
1788
+ */
1789
+ export declare class TealValue extends BaseModel {
1790
+ /**
1791
+ * (tb) bytes value.
1792
+ */
1793
+ bytes: string;
1794
+ /**
1795
+ * (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
1796
+ */
1797
+ type: number | bigint;
1798
+ /**
1799
+ * (ui) uint value.
1800
+ */
1801
+ uint: number | bigint;
1802
+ /**
1803
+ * Creates a new `TealValue` object.
1804
+ * @param bytes - (tb) bytes value.
1805
+ * @param type - (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
1806
+ * @param uint - (ui) uint value.
1807
+ */
1808
+ constructor({ bytes, type, uint, }: {
1809
+ bytes: string;
1810
+ type: number | bigint;
1811
+ uint: number | bigint;
1812
+ });
1813
+ static from_obj_for_encoding(data: Record<string, any>): TealValue;
1814
+ }
1815
+ /**
1816
+ * Contains all fields common to all transactions and serves as an envelope to all
1817
+ * transactions type. Represents both regular and inner transactions.
1818
+ * Definition:
1819
+ * data/transactions/signedtxn.go : SignedTxn
1820
+ * data/transactions/transaction.go : Transaction
1821
+ */
1822
+ export declare class Transaction extends BaseModel {
1823
+ /**
1824
+ * (fee) Transaction fee.
1825
+ */
1826
+ fee: number | bigint;
1827
+ /**
1828
+ * (fv) First valid round for this transaction.
1829
+ */
1830
+ firstValid: number | bigint;
1831
+ /**
1832
+ * (lv) Last valid round for this transaction.
1833
+ */
1834
+ lastValid: number | bigint;
1835
+ /**
1836
+ * (snd) Sender's address.
1837
+ */
1838
+ sender: string;
1839
+ /**
1840
+ * Fields for application transactions.
1841
+ * Definition:
1842
+ * data/transactions/application.go : ApplicationCallTxnFields
1843
+ */
1844
+ applicationTransaction?: TransactionApplication;
1845
+ /**
1846
+ * Fields for asset allocation, re-configuration, and destruction.
1847
+ * A zero value for asset-id indicates asset creation.
1848
+ * A zero value for the params indicates asset destruction.
1849
+ * Definition:
1850
+ * data/transactions/asset.go : AssetConfigTxnFields
1851
+ */
1852
+ assetConfigTransaction?: TransactionAssetConfig;
1853
+ /**
1854
+ * Fields for an asset freeze transaction.
1855
+ * Definition:
1856
+ * data/transactions/asset.go : AssetFreezeTxnFields
1857
+ */
1858
+ assetFreezeTransaction?: TransactionAssetFreeze;
1859
+ /**
1860
+ * Fields for an asset transfer transaction.
1861
+ * Definition:
1862
+ * data/transactions/asset.go : AssetTransferTxnFields
1863
+ */
1864
+ assetTransferTransaction?: TransactionAssetTransfer;
1865
+ /**
1866
+ * (sgnr) this is included with signed transactions when the signing address does
1867
+ * not equal the sender. The backend can use this to ensure that auth addr is equal
1868
+ * to the accounts auth addr.
1869
+ */
1870
+ authAddr?: string;
1871
+ /**
1872
+ * (rc) rewards applied to close-remainder-to account.
1873
+ */
1874
+ closeRewards?: number | bigint;
1875
+ /**
1876
+ * (ca) closing amount for transaction.
1877
+ */
1878
+ closingAmount?: number | bigint;
1879
+ /**
1880
+ * Round when the transaction was confirmed.
1881
+ */
1882
+ confirmedRound?: number | bigint;
1883
+ /**
1884
+ * Specifies an application index (ID) if an application was created with this
1885
+ * transaction.
1886
+ */
1887
+ createdApplicationIndex?: number | bigint;
1888
+ /**
1889
+ * Specifies an asset index (ID) if an asset was created with this transaction.
1890
+ */
1891
+ createdAssetIndex?: number | bigint;
1892
+ /**
1893
+ * (gh) Hash of genesis block.
1894
+ */
1895
+ genesisHash?: Uint8Array;
1896
+ /**
1897
+ * (gen) genesis block ID.
1898
+ */
1899
+ genesisId?: string;
1900
+ /**
1901
+ * (gd) Global state key/value changes for the application being executed by this
1902
+ * transaction.
1903
+ */
1904
+ globalStateDelta?: EvalDeltaKeyValue[];
1905
+ /**
1906
+ * (grp) Base64 encoded byte array of a sha512/256 digest. When present indicates
1907
+ * that this transaction is part of a transaction group and the value is the
1908
+ * sha512/256 hash of the transactions in that group.
1909
+ */
1910
+ group?: Uint8Array;
1911
+ /**
1912
+ * Transaction ID
1913
+ */
1914
+ id?: string;
1915
+ /**
1916
+ * Inner transactions produced by application execution.
1917
+ */
1918
+ innerTxns?: Transaction[];
1919
+ /**
1920
+ * Offset into the round where this transaction was confirmed.
1921
+ */
1922
+ intraRoundOffset?: number | bigint;
1923
+ /**
1924
+ * Fields for a keyreg transaction.
1925
+ * Definition:
1926
+ * data/transactions/keyreg.go : KeyregTxnFields
1927
+ */
1928
+ keyregTransaction?: TransactionKeyreg;
1929
+ /**
1930
+ * (lx) Base64 encoded 32-byte array. Lease enforces mutual exclusion of
1931
+ * transactions. If this field is nonzero, then once the transaction is confirmed,
1932
+ * it acquires the lease identified by the (Sender, Lease) pair of the transaction
1933
+ * until the LastValid round passes. While this transaction possesses the lease, no
1934
+ * other transaction specifying this lease can be confirmed.
1935
+ */
1936
+ lease?: Uint8Array;
1937
+ /**
1938
+ * (ld) Local state key/value changes for the application being executed by this
1939
+ * transaction.
1940
+ */
1941
+ localStateDelta?: AccountStateDelta[];
1942
+ /**
1943
+ * (lg) Logs for the application being executed by this transaction.
1944
+ */
1945
+ logs?: Uint8Array[];
1946
+ /**
1947
+ * (note) Free form data.
1948
+ */
1949
+ note?: Uint8Array;
1950
+ /**
1951
+ * Fields for a payment transaction.
1952
+ * Definition:
1953
+ * data/transactions/payment.go : PaymentTxnFields
1954
+ */
1955
+ paymentTransaction?: TransactionPayment;
1956
+ /**
1957
+ * (rr) rewards applied to receiver account.
1958
+ */
1959
+ receiverRewards?: number | bigint;
1960
+ /**
1961
+ * (rekey) when included in a valid transaction, the accounts auth addr will be
1962
+ * updated with this value and future signatures must be signed with the key
1963
+ * represented by this address.
1964
+ */
1965
+ rekeyTo?: string;
1966
+ /**
1967
+ * Time when the block this transaction is in was confirmed.
1968
+ */
1969
+ roundTime?: number | bigint;
1970
+ /**
1971
+ * (rs) rewards applied to sender account.
1972
+ */
1973
+ senderRewards?: number | bigint;
1974
+ /**
1975
+ * Validation signature associated with some data. Only one of the signatures
1976
+ * should be provided.
1977
+ */
1978
+ signature?: TransactionSignature;
1979
+ /**
1980
+ * Fields for a state proof transaction.
1981
+ * Definition:
1982
+ * data/transactions/stateproof.go : StateProofTxnFields
1983
+ */
1984
+ stateProofTransaction?: TransactionStateProof;
1985
+ /**
1986
+ * (type) Indicates what type of transaction this is. Different types have
1987
+ * different fields.
1988
+ * Valid types, and where their fields are stored:
1989
+ * * (pay) payment-transaction
1990
+ * * (keyreg) keyreg-transaction
1991
+ * * (acfg) asset-config-transaction
1992
+ * * (axfer) asset-transfer-transaction
1993
+ * * (afrz) asset-freeze-transaction
1994
+ * * (appl) application-transaction
1995
+ * * (stpf) state-proof-transaction
1996
+ */
1997
+ txType?: string;
1998
+ /**
1999
+ * Creates a new `Transaction` object.
2000
+ * @param fee - (fee) Transaction fee.
2001
+ * @param firstValid - (fv) First valid round for this transaction.
2002
+ * @param lastValid - (lv) Last valid round for this transaction.
2003
+ * @param sender - (snd) Sender's address.
2004
+ * @param applicationTransaction - Fields for application transactions.
2005
+ * Definition:
2006
+ * data/transactions/application.go : ApplicationCallTxnFields
2007
+ * @param assetConfigTransaction - Fields for asset allocation, re-configuration, and destruction.
2008
+ * A zero value for asset-id indicates asset creation.
2009
+ * A zero value for the params indicates asset destruction.
2010
+ * Definition:
2011
+ * data/transactions/asset.go : AssetConfigTxnFields
2012
+ * @param assetFreezeTransaction - Fields for an asset freeze transaction.
2013
+ * Definition:
2014
+ * data/transactions/asset.go : AssetFreezeTxnFields
2015
+ * @param assetTransferTransaction - Fields for an asset transfer transaction.
2016
+ * Definition:
2017
+ * data/transactions/asset.go : AssetTransferTxnFields
2018
+ * @param authAddr - (sgnr) this is included with signed transactions when the signing address does
2019
+ * not equal the sender. The backend can use this to ensure that auth addr is equal
2020
+ * to the accounts auth addr.
2021
+ * @param closeRewards - (rc) rewards applied to close-remainder-to account.
2022
+ * @param closingAmount - (ca) closing amount for transaction.
2023
+ * @param confirmedRound - Round when the transaction was confirmed.
2024
+ * @param createdApplicationIndex - Specifies an application index (ID) if an application was created with this
2025
+ * transaction.
2026
+ * @param createdAssetIndex - Specifies an asset index (ID) if an asset was created with this transaction.
2027
+ * @param genesisHash - (gh) Hash of genesis block.
2028
+ * @param genesisId - (gen) genesis block ID.
2029
+ * @param globalStateDelta - (gd) Global state key/value changes for the application being executed by this
2030
+ * transaction.
2031
+ * @param group - (grp) Base64 encoded byte array of a sha512/256 digest. When present indicates
2032
+ * that this transaction is part of a transaction group and the value is the
2033
+ * sha512/256 hash of the transactions in that group.
2034
+ * @param id - Transaction ID
2035
+ * @param innerTxns - Inner transactions produced by application execution.
2036
+ * @param intraRoundOffset - Offset into the round where this transaction was confirmed.
2037
+ * @param keyregTransaction - Fields for a keyreg transaction.
2038
+ * Definition:
2039
+ * data/transactions/keyreg.go : KeyregTxnFields
2040
+ * @param lease - (lx) Base64 encoded 32-byte array. Lease enforces mutual exclusion of
2041
+ * transactions. If this field is nonzero, then once the transaction is confirmed,
2042
+ * it acquires the lease identified by the (Sender, Lease) pair of the transaction
2043
+ * until the LastValid round passes. While this transaction possesses the lease, no
2044
+ * other transaction specifying this lease can be confirmed.
2045
+ * @param localStateDelta - (ld) Local state key/value changes for the application being executed by this
2046
+ * transaction.
2047
+ * @param logs - (lg) Logs for the application being executed by this transaction.
2048
+ * @param note - (note) Free form data.
2049
+ * @param paymentTransaction - Fields for a payment transaction.
2050
+ * Definition:
2051
+ * data/transactions/payment.go : PaymentTxnFields
2052
+ * @param receiverRewards - (rr) rewards applied to receiver account.
2053
+ * @param rekeyTo - (rekey) when included in a valid transaction, the accounts auth addr will be
2054
+ * updated with this value and future signatures must be signed with the key
2055
+ * represented by this address.
2056
+ * @param roundTime - Time when the block this transaction is in was confirmed.
2057
+ * @param senderRewards - (rs) rewards applied to sender account.
2058
+ * @param signature - Validation signature associated with some data. Only one of the signatures
2059
+ * should be provided.
2060
+ * @param stateProofTransaction - Fields for a state proof transaction.
2061
+ * Definition:
2062
+ * data/transactions/stateproof.go : StateProofTxnFields
2063
+ * @param txType - (type) Indicates what type of transaction this is. Different types have
2064
+ * different fields.
2065
+ * Valid types, and where their fields are stored:
2066
+ * * (pay) payment-transaction
2067
+ * * (keyreg) keyreg-transaction
2068
+ * * (acfg) asset-config-transaction
2069
+ * * (axfer) asset-transfer-transaction
2070
+ * * (afrz) asset-freeze-transaction
2071
+ * * (appl) application-transaction
2072
+ * * (stpf) state-proof-transaction
2073
+ */
2074
+ constructor({ fee, firstValid, lastValid, sender, applicationTransaction, assetConfigTransaction, assetFreezeTransaction, assetTransferTransaction, authAddr, closeRewards, closingAmount, confirmedRound, createdApplicationIndex, createdAssetIndex, genesisHash, genesisId, globalStateDelta, group, id, innerTxns, intraRoundOffset, keyregTransaction, lease, localStateDelta, logs, note, paymentTransaction, receiverRewards, rekeyTo, roundTime, senderRewards, signature, stateProofTransaction, txType, }: {
2075
+ fee: number | bigint;
2076
+ firstValid: number | bigint;
2077
+ lastValid: number | bigint;
2078
+ sender: string;
2079
+ applicationTransaction?: TransactionApplication;
2080
+ assetConfigTransaction?: TransactionAssetConfig;
2081
+ assetFreezeTransaction?: TransactionAssetFreeze;
2082
+ assetTransferTransaction?: TransactionAssetTransfer;
2083
+ authAddr?: string;
2084
+ closeRewards?: number | bigint;
2085
+ closingAmount?: number | bigint;
2086
+ confirmedRound?: number | bigint;
2087
+ createdApplicationIndex?: number | bigint;
2088
+ createdAssetIndex?: number | bigint;
2089
+ genesisHash?: string | Uint8Array;
2090
+ genesisId?: string;
2091
+ globalStateDelta?: EvalDeltaKeyValue[];
2092
+ group?: string | Uint8Array;
2093
+ id?: string;
2094
+ innerTxns?: Transaction[];
2095
+ intraRoundOffset?: number | bigint;
2096
+ keyregTransaction?: TransactionKeyreg;
2097
+ lease?: string | Uint8Array;
2098
+ localStateDelta?: AccountStateDelta[];
2099
+ logs?: Uint8Array[];
2100
+ note?: string | Uint8Array;
2101
+ paymentTransaction?: TransactionPayment;
2102
+ receiverRewards?: number | bigint;
2103
+ rekeyTo?: string;
2104
+ roundTime?: number | bigint;
2105
+ senderRewards?: number | bigint;
2106
+ signature?: TransactionSignature;
2107
+ stateProofTransaction?: TransactionStateProof;
2108
+ txType?: string;
2109
+ });
2110
+ static from_obj_for_encoding(data: Record<string, any>): Transaction;
2111
+ }
2112
+ /**
2113
+ * Fields for application transactions.
2114
+ * Definition:
2115
+ * data/transactions/application.go : ApplicationCallTxnFields
2116
+ */
2117
+ export declare class TransactionApplication extends BaseModel {
2118
+ /**
2119
+ * (apid) ID of the application being configured or empty if creating.
2120
+ */
2121
+ applicationId: number | bigint;
2122
+ /**
2123
+ * (apat) List of accounts in addition to the sender that may be accessed from the
2124
+ * application's approval-program and clear-state-program.
2125
+ */
2126
+ accounts?: string[];
2127
+ /**
2128
+ * (apaa) transaction specific arguments accessed from the application's
2129
+ * approval-program and clear-state-program.
2130
+ */
2131
+ applicationArgs?: Uint8Array[];
2132
+ /**
2133
+ * (apap) Logic executed for every application transaction, except when
2134
+ * on-completion is set to "clear". It can read and write global state for the
2135
+ * application, as well as account-specific local state. Approval programs may
2136
+ * reject the transaction.
2137
+ */
2138
+ approvalProgram?: Uint8Array;
2139
+ /**
2140
+ * (apsu) Logic executed for application transactions with on-completion set to
2141
+ * "clear". It can read and write global state for the application, as well as
2142
+ * account-specific local state. Clear state programs cannot reject the
2143
+ * transaction.
2144
+ */
2145
+ clearStateProgram?: Uint8Array;
2146
+ /**
2147
+ * (epp) specifies the additional app program len requested in pages.
2148
+ */
2149
+ extraProgramPages?: number | bigint;
2150
+ /**
2151
+ * (apfa) Lists the applications in addition to the application-id whose global
2152
+ * states may be accessed by this application's approval-program and
2153
+ * clear-state-program. The access is read-only.
2154
+ */
2155
+ foreignApps?: (number | bigint)[];
2156
+ /**
2157
+ * (apas) lists the assets whose parameters may be accessed by this application's
2158
+ * ApprovalProgram and ClearStateProgram. The access is read-only.
2159
+ */
2160
+ foreignAssets?: (number | bigint)[];
2161
+ /**
2162
+ * Represents a (apls) local-state or (apgs) global-state schema. These schemas
2163
+ * determine how much storage may be used in a local-state or global-state for an
2164
+ * application. The more space used, the larger minimum balance must be maintained
2165
+ * in the account holding the data.
2166
+ */
2167
+ globalStateSchema?: StateSchema;
2168
+ /**
2169
+ * Represents a (apls) local-state or (apgs) global-state schema. These schemas
2170
+ * determine how much storage may be used in a local-state or global-state for an
2171
+ * application. The more space used, the larger minimum balance must be maintained
2172
+ * in the account holding the data.
2173
+ */
2174
+ localStateSchema?: StateSchema;
2175
+ /**
2176
+ * (apan) defines the what additional actions occur with the transaction.
2177
+ * Valid types:
2178
+ * * noop
2179
+ * * optin
2180
+ * * closeout
2181
+ * * clear
2182
+ * * update
2183
+ * * update
2184
+ * * delete
2185
+ */
2186
+ onCompletion?: string;
2187
+ /**
2188
+ * Creates a new `TransactionApplication` object.
2189
+ * @param applicationId - (apid) ID of the application being configured or empty if creating.
2190
+ * @param accounts - (apat) List of accounts in addition to the sender that may be accessed from the
2191
+ * application's approval-program and clear-state-program.
2192
+ * @param applicationArgs - (apaa) transaction specific arguments accessed from the application's
2193
+ * approval-program and clear-state-program.
2194
+ * @param approvalProgram - (apap) Logic executed for every application transaction, except when
2195
+ * on-completion is set to "clear". It can read and write global state for the
2196
+ * application, as well as account-specific local state. Approval programs may
2197
+ * reject the transaction.
2198
+ * @param clearStateProgram - (apsu) Logic executed for application transactions with on-completion set to
2199
+ * "clear". It can read and write global state for the application, as well as
2200
+ * account-specific local state. Clear state programs cannot reject the
2201
+ * transaction.
2202
+ * @param extraProgramPages - (epp) specifies the additional app program len requested in pages.
2203
+ * @param foreignApps - (apfa) Lists the applications in addition to the application-id whose global
2204
+ * states may be accessed by this application's approval-program and
2205
+ * clear-state-program. The access is read-only.
2206
+ * @param foreignAssets - (apas) lists the assets whose parameters may be accessed by this application's
2207
+ * ApprovalProgram and ClearStateProgram. The access is read-only.
2208
+ * @param globalStateSchema - Represents a (apls) local-state or (apgs) global-state schema. These schemas
2209
+ * determine how much storage may be used in a local-state or global-state for an
2210
+ * application. The more space used, the larger minimum balance must be maintained
2211
+ * in the account holding the data.
2212
+ * @param localStateSchema - Represents a (apls) local-state or (apgs) global-state schema. These schemas
2213
+ * determine how much storage may be used in a local-state or global-state for an
2214
+ * application. The more space used, the larger minimum balance must be maintained
2215
+ * in the account holding the data.
2216
+ * @param onCompletion - (apan) defines the what additional actions occur with the transaction.
2217
+ * Valid types:
2218
+ * * noop
2219
+ * * optin
2220
+ * * closeout
2221
+ * * clear
2222
+ * * update
2223
+ * * update
2224
+ * * delete
2225
+ */
2226
+ constructor({ applicationId, accounts, applicationArgs, approvalProgram, clearStateProgram, extraProgramPages, foreignApps, foreignAssets, globalStateSchema, localStateSchema, onCompletion, }: {
2227
+ applicationId: number | bigint;
2228
+ accounts?: string[];
2229
+ applicationArgs?: Uint8Array[];
2230
+ approvalProgram?: string | Uint8Array;
2231
+ clearStateProgram?: string | Uint8Array;
2232
+ extraProgramPages?: number | bigint;
2233
+ foreignApps?: (number | bigint)[];
2234
+ foreignAssets?: (number | bigint)[];
2235
+ globalStateSchema?: StateSchema;
2236
+ localStateSchema?: StateSchema;
2237
+ onCompletion?: string;
2238
+ });
2239
+ static from_obj_for_encoding(data: Record<string, any>): TransactionApplication;
2240
+ }
2241
+ /**
2242
+ * Fields for asset allocation, re-configuration, and destruction.
2243
+ * A zero value for asset-id indicates asset creation.
2244
+ * A zero value for the params indicates asset destruction.
2245
+ * Definition:
2246
+ * data/transactions/asset.go : AssetConfigTxnFields
2247
+ */
2248
+ export declare class TransactionAssetConfig extends BaseModel {
2249
+ /**
2250
+ * (xaid) ID of the asset being configured or empty if creating.
2251
+ */
2252
+ assetId?: number | bigint;
2253
+ /**
2254
+ * AssetParams specifies the parameters for an asset.
2255
+ * (apar) when part of an AssetConfig transaction.
2256
+ * Definition:
2257
+ * data/transactions/asset.go : AssetParams
2258
+ */
2259
+ params?: AssetParams;
2260
+ /**
2261
+ * Creates a new `TransactionAssetConfig` object.
2262
+ * @param assetId - (xaid) ID of the asset being configured or empty if creating.
2263
+ * @param params - AssetParams specifies the parameters for an asset.
2264
+ * (apar) when part of an AssetConfig transaction.
2265
+ * Definition:
2266
+ * data/transactions/asset.go : AssetParams
2267
+ */
2268
+ constructor({ assetId, params, }: {
2269
+ assetId?: number | bigint;
2270
+ params?: AssetParams;
2271
+ });
2272
+ static from_obj_for_encoding(data: Record<string, any>): TransactionAssetConfig;
2273
+ }
2274
+ /**
2275
+ * Fields for an asset freeze transaction.
2276
+ * Definition:
2277
+ * data/transactions/asset.go : AssetFreezeTxnFields
2278
+ */
2279
+ export declare class TransactionAssetFreeze extends BaseModel {
2280
+ /**
2281
+ * (fadd) Address of the account whose asset is being frozen or thawed.
2282
+ */
2283
+ address: string;
2284
+ /**
2285
+ * (faid) ID of the asset being frozen or thawed.
2286
+ */
2287
+ assetId: number | bigint;
2288
+ /**
2289
+ * (afrz) The new freeze status.
2290
+ */
2291
+ newFreezeStatus: boolean;
2292
+ /**
2293
+ * Creates a new `TransactionAssetFreeze` object.
2294
+ * @param address - (fadd) Address of the account whose asset is being frozen or thawed.
2295
+ * @param assetId - (faid) ID of the asset being frozen or thawed.
2296
+ * @param newFreezeStatus - (afrz) The new freeze status.
2297
+ */
2298
+ constructor({ address, assetId, newFreezeStatus, }: {
2299
+ address: string;
2300
+ assetId: number | bigint;
2301
+ newFreezeStatus: boolean;
2302
+ });
2303
+ static from_obj_for_encoding(data: Record<string, any>): TransactionAssetFreeze;
2304
+ }
2305
+ /**
2306
+ * Fields for an asset transfer transaction.
2307
+ * Definition:
2308
+ * data/transactions/asset.go : AssetTransferTxnFields
2309
+ */
2310
+ export declare class TransactionAssetTransfer extends BaseModel {
2311
+ /**
2312
+ * (aamt) Amount of asset to transfer. A zero amount transferred to self allocates
2313
+ * that asset in the account's Assets map.
2314
+ */
2315
+ amount: number | bigint;
2316
+ /**
2317
+ * (xaid) ID of the asset being transferred.
2318
+ */
2319
+ assetId: number | bigint;
2320
+ /**
2321
+ * (arcv) Recipient address of the transfer.
2322
+ */
2323
+ receiver: string;
2324
+ /**
2325
+ * Number of assets transfered to the close-to account as part of the transaction.
2326
+ */
2327
+ closeAmount?: number | bigint;
2328
+ /**
2329
+ * (aclose) Indicates that the asset should be removed from the account's Assets
2330
+ * map, and specifies where the remaining asset holdings should be transferred.
2331
+ * It's always valid to transfer remaining asset holdings to the creator account.
2332
+ */
2333
+ closeTo?: string;
2334
+ /**
2335
+ * (asnd) The effective sender during a clawback transactions. If this is not a
2336
+ * zero value, the real transaction sender must be the Clawback address from the
2337
+ * AssetParams.
2338
+ */
2339
+ sender?: string;
2340
+ /**
2341
+ * Creates a new `TransactionAssetTransfer` object.
2342
+ * @param amount - (aamt) Amount of asset to transfer. A zero amount transferred to self allocates
2343
+ * that asset in the account's Assets map.
2344
+ * @param assetId - (xaid) ID of the asset being transferred.
2345
+ * @param receiver - (arcv) Recipient address of the transfer.
2346
+ * @param closeAmount - Number of assets transfered to the close-to account as part of the transaction.
2347
+ * @param closeTo - (aclose) Indicates that the asset should be removed from the account's Assets
2348
+ * map, and specifies where the remaining asset holdings should be transferred.
2349
+ * It's always valid to transfer remaining asset holdings to the creator account.
2350
+ * @param sender - (asnd) The effective sender during a clawback transactions. If this is not a
2351
+ * zero value, the real transaction sender must be the Clawback address from the
2352
+ * AssetParams.
2353
+ */
2354
+ constructor({ amount, assetId, receiver, closeAmount, closeTo, sender, }: {
2355
+ amount: number | bigint;
2356
+ assetId: number | bigint;
2357
+ receiver: string;
2358
+ closeAmount?: number | bigint;
2359
+ closeTo?: string;
2360
+ sender?: string;
2361
+ });
2362
+ static from_obj_for_encoding(data: Record<string, any>): TransactionAssetTransfer;
2363
+ }
2364
+ /**
2365
+ * Fields for a keyreg transaction.
2366
+ * Definition:
2367
+ * data/transactions/keyreg.go : KeyregTxnFields
2368
+ */
2369
+ export declare class TransactionKeyreg extends BaseModel {
2370
+ /**
2371
+ * (nonpart) Mark the account as participating or non-participating.
2372
+ */
2373
+ nonParticipation?: boolean;
2374
+ /**
2375
+ * (selkey) Public key used with the Verified Random Function (VRF) result during
2376
+ * committee selection.
2377
+ */
2378
+ selectionParticipationKey?: Uint8Array;
2379
+ /**
2380
+ * (sprfkey) State proof key used in key registration transactions.
2381
+ */
2382
+ stateProofKey?: Uint8Array;
2383
+ /**
2384
+ * (votefst) First round this participation key is valid.
2385
+ */
2386
+ voteFirstValid?: number | bigint;
2387
+ /**
2388
+ * (votekd) Number of subkeys in each batch of participation keys.
2389
+ */
2390
+ voteKeyDilution?: number | bigint;
2391
+ /**
2392
+ * (votelst) Last round this participation key is valid.
2393
+ */
2394
+ voteLastValid?: number | bigint;
2395
+ /**
2396
+ * (votekey) Participation public key used in key registration transactions.
2397
+ */
2398
+ voteParticipationKey?: Uint8Array;
2399
+ /**
2400
+ * Creates a new `TransactionKeyreg` object.
2401
+ * @param nonParticipation - (nonpart) Mark the account as participating or non-participating.
2402
+ * @param selectionParticipationKey - (selkey) Public key used with the Verified Random Function (VRF) result during
2403
+ * committee selection.
2404
+ * @param stateProofKey - (sprfkey) State proof key used in key registration transactions.
2405
+ * @param voteFirstValid - (votefst) First round this participation key is valid.
2406
+ * @param voteKeyDilution - (votekd) Number of subkeys in each batch of participation keys.
2407
+ * @param voteLastValid - (votelst) Last round this participation key is valid.
2408
+ * @param voteParticipationKey - (votekey) Participation public key used in key registration transactions.
2409
+ */
2410
+ constructor({ nonParticipation, selectionParticipationKey, stateProofKey, voteFirstValid, voteKeyDilution, voteLastValid, voteParticipationKey, }: {
2411
+ nonParticipation?: boolean;
2412
+ selectionParticipationKey?: string | Uint8Array;
2413
+ stateProofKey?: string | Uint8Array;
2414
+ voteFirstValid?: number | bigint;
2415
+ voteKeyDilution?: number | bigint;
2416
+ voteLastValid?: number | bigint;
2417
+ voteParticipationKey?: string | Uint8Array;
2418
+ });
2419
+ static from_obj_for_encoding(data: Record<string, any>): TransactionKeyreg;
2420
+ }
2421
+ /**
2422
+ * Fields for a payment transaction.
2423
+ * Definition:
2424
+ * data/transactions/payment.go : PaymentTxnFields
2425
+ */
2426
+ export declare class TransactionPayment extends BaseModel {
2427
+ /**
2428
+ * (amt) number of MicroAlgos intended to be transferred.
2429
+ */
2430
+ amount: number | bigint;
2431
+ /**
2432
+ * (rcv) receiver's address.
2433
+ */
2434
+ receiver: string;
2435
+ /**
2436
+ * Number of MicroAlgos that were sent to the close-remainder-to address when
2437
+ * closing the sender account.
2438
+ */
2439
+ closeAmount?: number | bigint;
2440
+ /**
2441
+ * (close) when set, indicates that the sending account should be closed and all
2442
+ * remaining funds be transferred to this address.
2443
+ */
2444
+ closeRemainderTo?: string;
2445
+ /**
2446
+ * Creates a new `TransactionPayment` object.
2447
+ * @param amount - (amt) number of MicroAlgos intended to be transferred.
2448
+ * @param receiver - (rcv) receiver's address.
2449
+ * @param closeAmount - Number of MicroAlgos that were sent to the close-remainder-to address when
2450
+ * closing the sender account.
2451
+ * @param closeRemainderTo - (close) when set, indicates that the sending account should be closed and all
2452
+ * remaining funds be transferred to this address.
2453
+ */
2454
+ constructor({ amount, receiver, closeAmount, closeRemainderTo, }: {
2455
+ amount: number | bigint;
2456
+ receiver: string;
2457
+ closeAmount?: number | bigint;
2458
+ closeRemainderTo?: string;
2459
+ });
2460
+ static from_obj_for_encoding(data: Record<string, any>): TransactionPayment;
2461
+ }
2462
+ /**
2463
+ *
2464
+ */
2465
+ export declare class TransactionResponse extends BaseModel {
2466
+ /**
2467
+ * Round at which the results were computed.
2468
+ */
2469
+ currentRound: number | bigint;
2470
+ /**
2471
+ * Contains all fields common to all transactions and serves as an envelope to all
2472
+ * transactions type. Represents both regular and inner transactions.
2473
+ * Definition:
2474
+ * data/transactions/signedtxn.go : SignedTxn
2475
+ * data/transactions/transaction.go : Transaction
2476
+ */
2477
+ transaction: Transaction;
2478
+ /**
2479
+ * Creates a new `TransactionResponse` object.
2480
+ * @param currentRound - Round at which the results were computed.
2481
+ * @param transaction - Contains all fields common to all transactions and serves as an envelope to all
2482
+ * transactions type. Represents both regular and inner transactions.
2483
+ * Definition:
2484
+ * data/transactions/signedtxn.go : SignedTxn
2485
+ * data/transactions/transaction.go : Transaction
2486
+ */
2487
+ constructor({ currentRound, transaction, }: {
2488
+ currentRound: number | bigint;
2489
+ transaction: Transaction;
2490
+ });
2491
+ static from_obj_for_encoding(data: Record<string, any>): TransactionResponse;
2492
+ }
2493
+ /**
2494
+ * Validation signature associated with some data. Only one of the signatures
2495
+ * should be provided.
2496
+ */
2497
+ export declare class TransactionSignature extends BaseModel {
2498
+ /**
2499
+ * (lsig) Programatic transaction signature.
2500
+ * Definition:
2501
+ * data/transactions/logicsig.go
2502
+ */
2503
+ logicsig?: TransactionSignatureLogicsig;
2504
+ /**
2505
+ * (msig) structure holding multiple subsignatures.
2506
+ * Definition:
2507
+ * crypto/multisig.go : MultisigSig
2508
+ */
2509
+ multisig?: TransactionSignatureMultisig;
2510
+ /**
2511
+ * (sig) Standard ed25519 signature.
2512
+ */
2513
+ sig?: Uint8Array;
2514
+ /**
2515
+ * Creates a new `TransactionSignature` object.
2516
+ * @param logicsig - (lsig) Programatic transaction signature.
2517
+ * Definition:
2518
+ * data/transactions/logicsig.go
2519
+ * @param multisig - (msig) structure holding multiple subsignatures.
2520
+ * Definition:
2521
+ * crypto/multisig.go : MultisigSig
2522
+ * @param sig - (sig) Standard ed25519 signature.
2523
+ */
2524
+ constructor({ logicsig, multisig, sig, }: {
2525
+ logicsig?: TransactionSignatureLogicsig;
2526
+ multisig?: TransactionSignatureMultisig;
2527
+ sig?: string | Uint8Array;
2528
+ });
2529
+ static from_obj_for_encoding(data: Record<string, any>): TransactionSignature;
2530
+ }
2531
+ /**
2532
+ * (lsig) Programatic transaction signature.
2533
+ * Definition:
2534
+ * data/transactions/logicsig.go
2535
+ */
2536
+ export declare class TransactionSignatureLogicsig extends BaseModel {
2537
+ /**
2538
+ * (l) Program signed by a signature or multi signature, or hashed to be the
2539
+ * address of ana ccount. Base64 encoded TEAL program.
2540
+ */
2541
+ logic: Uint8Array;
2542
+ /**
2543
+ * (arg) Logic arguments, base64 encoded.
2544
+ */
2545
+ args?: Uint8Array[];
2546
+ /**
2547
+ * (msig) structure holding multiple subsignatures.
2548
+ * Definition:
2549
+ * crypto/multisig.go : MultisigSig
2550
+ */
2551
+ multisigSignature?: TransactionSignatureMultisig;
2552
+ /**
2553
+ * (sig) ed25519 signature.
2554
+ */
2555
+ signature?: Uint8Array;
2556
+ /**
2557
+ * Creates a new `TransactionSignatureLogicsig` object.
2558
+ * @param logic - (l) Program signed by a signature or multi signature, or hashed to be the
2559
+ * address of ana ccount. Base64 encoded TEAL program.
2560
+ * @param args - (arg) Logic arguments, base64 encoded.
2561
+ * @param multisigSignature - (msig) structure holding multiple subsignatures.
2562
+ * Definition:
2563
+ * crypto/multisig.go : MultisigSig
2564
+ * @param signature - (sig) ed25519 signature.
2565
+ */
2566
+ constructor({ logic, args, multisigSignature, signature, }: {
2567
+ logic: string | Uint8Array;
2568
+ args?: Uint8Array[];
2569
+ multisigSignature?: TransactionSignatureMultisig;
2570
+ signature?: string | Uint8Array;
2571
+ });
2572
+ static from_obj_for_encoding(data: Record<string, any>): TransactionSignatureLogicsig;
2573
+ }
2574
+ /**
2575
+ * (msig) structure holding multiple subsignatures.
2576
+ * Definition:
2577
+ * crypto/multisig.go : MultisigSig
2578
+ */
2579
+ export declare class TransactionSignatureMultisig extends BaseModel {
2580
+ /**
2581
+ * (subsig) holds pairs of public key and signatures.
2582
+ */
2583
+ subsignature?: TransactionSignatureMultisigSubsignature[];
2584
+ /**
2585
+ * (thr)
2586
+ */
2587
+ threshold?: number | bigint;
2588
+ /**
2589
+ * (v)
2590
+ */
2591
+ version?: number | bigint;
2592
+ /**
2593
+ * Creates a new `TransactionSignatureMultisig` object.
2594
+ * @param subsignature - (subsig) holds pairs of public key and signatures.
2595
+ * @param threshold - (thr)
2596
+ * @param version - (v)
2597
+ */
2598
+ constructor({ subsignature, threshold, version, }: {
2599
+ subsignature?: TransactionSignatureMultisigSubsignature[];
2600
+ threshold?: number | bigint;
2601
+ version?: number | bigint;
2602
+ });
2603
+ static from_obj_for_encoding(data: Record<string, any>): TransactionSignatureMultisig;
2604
+ }
2605
+ export declare class TransactionSignatureMultisigSubsignature extends BaseModel {
2606
+ /**
2607
+ * (pk)
2608
+ */
2609
+ publicKey?: Uint8Array;
2610
+ /**
2611
+ * (s)
2612
+ */
2613
+ signature?: Uint8Array;
2614
+ /**
2615
+ * Creates a new `TransactionSignatureMultisigSubsignature` object.
2616
+ * @param publicKey - (pk)
2617
+ * @param signature - (s)
2618
+ */
2619
+ constructor({ publicKey, signature, }: {
2620
+ publicKey?: string | Uint8Array;
2621
+ signature?: string | Uint8Array;
2622
+ });
2623
+ static from_obj_for_encoding(data: Record<string, any>): TransactionSignatureMultisigSubsignature;
2624
+ }
2625
+ /**
2626
+ * Fields for a state proof transaction.
2627
+ * Definition:
2628
+ * data/transactions/stateproof.go : StateProofTxnFields
2629
+ */
2630
+ export declare class TransactionStateProof extends BaseModel {
2631
+ /**
2632
+ * (spmsg)
2633
+ */
2634
+ message?: IndexerStateProofMessage;
2635
+ /**
2636
+ * (sp) represents a state proof.
2637
+ * Definition:
2638
+ * crypto/stateproof/structs.go : StateProof
2639
+ */
2640
+ stateProof?: StateProofFields;
2641
+ /**
2642
+ * (sptype) Type of the state proof. Integer representing an entry defined in
2643
+ * protocol/stateproof.go
2644
+ */
2645
+ stateProofType?: number | bigint;
2646
+ /**
2647
+ * Creates a new `TransactionStateProof` object.
2648
+ * @param message - (spmsg)
2649
+ * @param stateProof - (sp) represents a state proof.
2650
+ * Definition:
2651
+ * crypto/stateproof/structs.go : StateProof
2652
+ * @param stateProofType - (sptype) Type of the state proof. Integer representing an entry defined in
2653
+ * protocol/stateproof.go
2654
+ */
2655
+ constructor({ message, stateProof, stateProofType, }: {
2656
+ message?: IndexerStateProofMessage;
2657
+ stateProof?: StateProofFields;
2658
+ stateProofType?: number | bigint;
2659
+ });
2660
+ static from_obj_for_encoding(data: Record<string, any>): TransactionStateProof;
2661
+ }
2662
+ /**
2663
+ *
2664
+ */
2665
+ export declare class TransactionsResponse extends BaseModel {
2666
+ /**
2667
+ * Round at which the results were computed.
2668
+ */
2669
+ currentRound: number | bigint;
2670
+ transactions: Transaction[];
2671
+ /**
2672
+ * Used for pagination, when making another request provide this token with the
2673
+ * next parameter.
2674
+ */
2675
+ nextToken?: string;
2676
+ /**
2677
+ * Creates a new `TransactionsResponse` object.
2678
+ * @param currentRound - Round at which the results were computed.
2679
+ * @param transactions -
2680
+ * @param nextToken - Used for pagination, when making another request provide this token with the
2681
+ * next parameter.
2682
+ */
2683
+ constructor({ currentRound, transactions, nextToken, }: {
2684
+ currentRound: number | bigint;
2685
+ transactions: Transaction[];
2686
+ nextToken?: string;
2687
+ });
2688
+ static from_obj_for_encoding(data: Record<string, any>): TransactionsResponse;
2689
+ }