algosdk 2.7.0 → 2.9.0

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 (40) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.map +1 -1
  4. package/dist/cjs/abi/contract.js +2 -0
  5. package/dist/cjs/abi/contract.js.map +1 -1
  6. package/dist/cjs/abi/event.js +3 -0
  7. package/dist/cjs/abi/event.js.map +1 -0
  8. package/dist/cjs/abi/method.js +4 -0
  9. package/dist/cjs/abi/method.js.map +1 -1
  10. package/dist/cjs/client/v2/algod/models/types.js +194 -7
  11. package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
  12. package/dist/cjs/client/v2/indexer/models/types.js +110 -67
  13. package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
  14. package/dist/cjs/makeTxn.js +26 -0
  15. package/dist/cjs/makeTxn.js.map +1 -1
  16. package/dist/esm/abi/contract.js +2 -0
  17. package/dist/esm/abi/contract.js.map +1 -1
  18. package/dist/esm/abi/event.js +2 -0
  19. package/dist/esm/abi/event.js.map +1 -0
  20. package/dist/esm/abi/method.js +4 -0
  21. package/dist/esm/abi/method.js.map +1 -1
  22. package/dist/esm/client/v2/algod/models/types.js +188 -5
  23. package/dist/esm/client/v2/algod/models/types.js.map +1 -1
  24. package/dist/esm/client/v2/indexer/models/types.js +110 -67
  25. package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
  26. package/dist/esm/makeTxn.js +26 -0
  27. package/dist/esm/makeTxn.js.map +1 -1
  28. package/dist/types/abi/contract.d.ts +4 -0
  29. package/dist/types/abi/event.d.ts +16 -0
  30. package/dist/types/abi/method.d.ts +7 -0
  31. package/dist/types/client/v2/algod/models/types.d.ts +175 -5
  32. package/dist/types/client/v2/indexer/models/types.d.ts +189 -131
  33. package/dist/types/makeTxn.d.ts +29 -1
  34. package/package.json +2 -2
  35. package/src/abi/contract.ts +6 -0
  36. package/src/abi/event.ts +16 -0
  37. package/src/abi/method.ts +12 -0
  38. package/src/client/v2/algod/models/types.ts +337 -0
  39. package/src/client/v2/indexer/models/types.ts +241 -127
  40. package/src/makeTxn.ts +29 -1
@@ -13,6 +13,7 @@ class ABIContract {
13
13
  this.description = params.desc;
14
14
  this.networks = params.networks ? { ...params.networks } : {};
15
15
  this.methods = params.methods.map((method) => new method_1.ABIMethod(method));
16
+ this.events = params.events;
16
17
  }
17
18
  toJSON() {
18
19
  return {
@@ -20,6 +21,7 @@ class ABIContract {
20
21
  desc: this.description,
21
22
  networks: this.networks,
22
23
  methods: this.methods.map((method) => method.toJSON()),
24
+ events: this.events,
23
25
  };
24
26
  }
25
27
  getMethodByName(name) {
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../../src/abi/contract.ts"],"names":[],"mappings":";;;AAAA,qCAAuE;AAiBvE,MAAa,WAAW;IAMtB,YAAY,MAAyB;QACnC,IACE,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ;YAC/B,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;YAC9B,CAAC,MAAM,CAAC,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,EACxD;YACA,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACnD;QAED,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,kBAAS,CAAC,MAAM,CAAC,CAAC,CAAC;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AC;IAC9B,CAAC;IAED,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,WAAW;YACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACtD,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;IAED,eAAe,CAAC,IAAY;QAC1B,OAAO,IAAA,wBAAe,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;CACF;AArCD,kCAqCC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../../src/abi/event.ts"],"names":[],"mappings":""}
@@ -67,6 +67,8 @@ class ABIMethod {
67
67
  : abi_type_1.ABIType.from(params.returns.type),
68
68
  description: params.returns.desc,
69
69
  };
70
+ this.events = params.events;
71
+ this.readonly = params.readonly;
70
72
  }
71
73
  getSignature() {
72
74
  const args = this.args.map((arg) => arg.type.toString()).join(',');
@@ -99,6 +101,8 @@ class ABIMethod {
99
101
  type: this.returns.type.toString(),
100
102
  desc: this.returns.description,
101
103
  },
104
+ events: this.events,
105
+ readonly: this.readonly,
102
106
  };
103
107
  }
104
108
  static fromSignature(signature) {
@@ -1 +1 @@
1
- {"version":3,"file":"method.js","sourceRoot":"","sources":["../../../src/abi/method.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AACnD,yCAAmD;AACnD,+CAAyE;AACzE,2CAAmE;AAEnE,SAAS,oBAAoB,CAC3B,SAAiB;IAEjB,MAAM,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzC,IAAI,SAAS,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AE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;YACxC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B,CAAC,CAAC;IACL,CAAC;CACF;AAnGD,8BAmGC;AAED,SAAgB,eAAe,CAAC,OAAoB,EAAE,IAAY;IAChE,IACE,OAAO,KAAK,IAAI;QAChB,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QACvB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,YAAY,SAAS,CAAC;QAEnD,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAE3E,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IAC1E,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC;QAC5B,MAAM,IAAI,KAAK,CACb,SACE,eAAe,CAAC,MAClB,+BAA+B,eAAe;aAC3C,GAAG,CAAC,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;aACvC,IAAI,CAAC,GAAG,CAAC,EAAE,CACf,CAAC;IAEJ,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,iCAAiC,IAAI,EAAE,CAAC,CAAC;IAE3D,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC;AAC5B,CAAC;AAtBD,0CAsBC"}
@@ -6,8 +6,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6
6
  return (mod && mod.__esModule) ? mod : { "default": mod };
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.SimulateRequestTransactionGroup = exports.SimulateRequest = exports.SimulateInitialStates = exports.ScratchChange = exports.PostTransactionsResponse = exports.PendingTransactionsResponse = exports.PendingTransactionResponse = exports.NodeStatusResponse = exports.LightBlockHeaderProof = exports.LedgerStateDeltaForTransactionGroup = exports.KvDelta = exports.GetSyncRoundResponse = exports.GetBlockTimeStampOffsetResponse = exports.EvalDeltaKeyValue = exports.EvalDelta = exports.ErrorResponse = exports.DryrunTxnResult = exports.DryrunState = exports.DryrunSource = exports.DryrunResponse = exports.DryrunRequest = exports.DisassembleResponse = exports.CompileResponse = exports.BuildVersion = exports.BoxesResponse = exports.BoxReference = exports.BoxDescriptor = exports.Box = exports.BlockTxidsResponse = exports.BlockResponse = exports.BlockHashResponse = exports.AvmValue = exports.AvmKeyValue = exports.AssetParams = exports.AssetHoldingReference = exports.AssetHolding = exports.Asset = exports.ApplicationStateSchema = exports.ApplicationStateOperation = exports.ApplicationParams = exports.ApplicationLocalState = exports.ApplicationLocalReference = exports.ApplicationKVStorage = exports.ApplicationInitialStates = exports.Application = exports.AccountStateDelta = exports.AccountParticipation = exports.AccountAssetResponse = exports.AccountApplicationResponse = exports.Account = void 0;
10
- exports.Version = exports.TransactionProofResponse = exports.TransactionParametersResponse = exports.TransactionGroupLedgerStateDeltasForRoundResponse = exports.TealValue = exports.TealKeyValue = exports.SupplyResponse = exports.StateProofMessage = exports.StateProof = exports.SimulationTransactionExecTrace = exports.SimulationOpcodeTraceUnit = exports.SimulationEvalOverrides = exports.SimulateUnnamedResourcesAccessed = exports.SimulateTransactionResult = exports.SimulateTransactionGroupResult = exports.SimulateTraceConfig = exports.SimulateResponse = void 0;
9
+ exports.PostTransactionsResponse = exports.PendingTransactionsResponse = exports.PendingTransactionResponse = exports.NodeStatusResponse = exports.LightBlockHeaderProof = exports.LedgerStateDeltaForTransactionGroup = exports.KvDelta = exports.GetSyncRoundResponse = exports.GetBlockTimeStampOffsetResponse = exports.EvalDeltaKeyValue = exports.EvalDelta = exports.ErrorResponse = exports.DryrunTxnResult = exports.DryrunState = exports.DryrunSource = exports.DryrunResponse = exports.DryrunRequest = exports.DisassembleResponse = exports.CompileResponse = exports.BuildVersion = exports.BoxesResponse = exports.BoxReference = exports.BoxDescriptor = exports.Box = exports.BlockTxidsResponse = exports.BlockResponse = exports.BlockLogsResponse = exports.BlockHashResponse = exports.AvmValue = exports.AvmKeyValue = exports.AssetParams = exports.AssetHoldingReference = exports.AssetHolding = exports.Asset = exports.ApplicationStateSchema = exports.ApplicationStateOperation = exports.ApplicationParams = exports.ApplicationLocalState = exports.ApplicationLocalReference = exports.ApplicationKVStorage = exports.ApplicationInitialStates = exports.Application = exports.AppCallLogs = exports.AccountStateDelta = exports.AccountParticipation = exports.AccountAssetsInformationResponse = exports.AccountAssetResponse = exports.AccountAssetHolding = exports.AccountApplicationResponse = exports.Account = void 0;
10
+ exports.Version = exports.TransactionProofResponse = exports.TransactionParametersResponse = exports.TransactionGroupLedgerStateDeltasForRoundResponse = exports.TealValue = exports.TealKeyValue = exports.SupplyResponse = exports.StateProofMessage = exports.StateProof = exports.SimulationTransactionExecTrace = exports.SimulationOpcodeTraceUnit = exports.SimulationEvalOverrides = exports.SimulateUnnamedResourcesAccessed = exports.SimulateTransactionResult = exports.SimulateTransactionGroupResult = exports.SimulateTraceConfig = exports.SimulateResponse = exports.SimulateRequestTransactionGroup = exports.SimulateRequest = exports.SimulateInitialStates = exports.ScratchChange = void 0;
11
11
  /* eslint-disable no-use-before-define */
12
12
  const buffer_1 = require("buffer");
13
13
  const basemodel_1 = __importDefault(require("../../basemodel"));
@@ -56,6 +56,11 @@ class Account extends basemodel_1.default {
56
56
  * Note: the raw account uses `map[int] -> AppParams` for this type.
57
57
  * @param createdAssets - (apar) parameters of assets created by this account.
58
58
  * Note: the raw account uses `map[int] -> Asset` for this type.
59
+ * @param incentiveEligible - Whether or not the account can receive block incentives if its balance is in
60
+ * range at proposal time.
61
+ * @param lastHeartbeat - The round in which this account last went online, or explicitly renewed their
62
+ * online status.
63
+ * @param lastProposed - The round in which this account last proposed the block.
59
64
  * @param participation - AccountParticipation describes the parameters used by this account in consensus
60
65
  * protocol.
61
66
  * @param rewardBase - (ebase) used as part of the rewards computation. Only applicable to accounts
@@ -68,7 +73,7 @@ class Account extends basemodel_1.default {
68
73
  * values.
69
74
  * @param totalBoxes - (tbx) The number of existing boxes created by this account's app.
70
75
  */
71
- constructor({ address, amount, amountWithoutPendingRewards, minBalance, pendingRewards, rewards, round, status, totalAppsOptedIn, totalAssetsOptedIn, totalCreatedApps, totalCreatedAssets, appsLocalState, appsTotalExtraPages, appsTotalSchema, assets, authAddr, createdApps, createdAssets, participation, rewardBase, sigType, totalBoxBytes, totalBoxes, }) {
76
+ constructor({ address, amount, amountWithoutPendingRewards, minBalance, pendingRewards, rewards, round, status, totalAppsOptedIn, totalAssetsOptedIn, totalCreatedApps, totalCreatedAssets, appsLocalState, appsTotalExtraPages, appsTotalSchema, assets, authAddr, createdApps, createdAssets, incentiveEligible, lastHeartbeat, lastProposed, participation, rewardBase, sigType, totalBoxBytes, totalBoxes, }) {
72
77
  super();
73
78
  this.address = address;
74
79
  this.amount = amount;
@@ -89,6 +94,9 @@ class Account extends basemodel_1.default {
89
94
  this.authAddr = authAddr;
90
95
  this.createdApps = createdApps;
91
96
  this.createdAssets = createdAssets;
97
+ this.incentiveEligible = incentiveEligible;
98
+ this.lastHeartbeat = lastHeartbeat;
99
+ this.lastProposed = lastProposed;
92
100
  this.participation = participation;
93
101
  this.rewardBase = rewardBase;
94
102
  this.sigType = sigType;
@@ -114,6 +122,9 @@ class Account extends basemodel_1.default {
114
122
  authAddr: 'auth-addr',
115
123
  createdApps: 'created-apps',
116
124
  createdAssets: 'created-assets',
125
+ incentiveEligible: 'incentive-eligible',
126
+ lastHeartbeat: 'last-heartbeat',
127
+ lastProposed: 'last-proposed',
117
128
  participation: 'participation',
118
129
  rewardBase: 'reward-base',
119
130
  sigType: 'sig-type',
@@ -178,6 +189,9 @@ class Account extends basemodel_1.default {
178
189
  createdAssets: typeof data['created-assets'] !== 'undefined'
179
190
  ? data['created-assets'].map(Asset.from_obj_for_encoding)
180
191
  : undefined,
192
+ incentiveEligible: data['incentive-eligible'],
193
+ lastHeartbeat: data['last-heartbeat'],
194
+ lastProposed: data['last-proposed'],
181
195
  participation: typeof data['participation'] !== 'undefined'
182
196
  ? AccountParticipation.from_obj_for_encoding(data['participation'])
183
197
  : undefined,
@@ -235,6 +249,42 @@ class AccountApplicationResponse extends basemodel_1.default {
235
249
  }
236
250
  }
237
251
  exports.AccountApplicationResponse = AccountApplicationResponse;
252
+ /**
253
+ * AccountAssetHolding describes the account's asset holding and asset parameters
254
+ * (if either exist) for a specific asset ID.
255
+ */
256
+ class AccountAssetHolding extends basemodel_1.default {
257
+ /**
258
+ * Creates a new `AccountAssetHolding` object.
259
+ * @param assetHolding - (asset) Details about the asset held by this account.
260
+ * The raw account uses `AssetHolding` for this type.
261
+ * @param assetParams - (apar) parameters of the asset held by this account.
262
+ * The raw account uses `AssetParams` for this type.
263
+ */
264
+ constructor({ assetHolding, assetParams, }) {
265
+ super();
266
+ this.assetHolding = assetHolding;
267
+ this.assetParams = assetParams;
268
+ this.attribute_map = {
269
+ assetHolding: 'asset-holding',
270
+ assetParams: 'asset-params',
271
+ };
272
+ }
273
+ // eslint-disable-next-line camelcase
274
+ static from_obj_for_encoding(data) {
275
+ /* eslint-disable dot-notation */
276
+ if (typeof data['asset-holding'] === 'undefined')
277
+ throw new Error(`Response is missing required field 'asset-holding': ${data}`);
278
+ return new AccountAssetHolding({
279
+ assetHolding: AssetHolding.from_obj_for_encoding(data['asset-holding']),
280
+ assetParams: typeof data['asset-params'] !== 'undefined'
281
+ ? AssetParams.from_obj_for_encoding(data['asset-params'])
282
+ : undefined,
283
+ });
284
+ /* eslint-enable dot-notation */
285
+ }
286
+ }
287
+ exports.AccountAssetHolding = AccountAssetHolding;
238
288
  /**
239
289
  * AccountAssetResponse describes the account's asset holding and asset parameters
240
290
  * (if either exist) for a specific asset ID. Asset parameters will only be
@@ -278,6 +328,44 @@ class AccountAssetResponse extends basemodel_1.default {
278
328
  }
279
329
  }
280
330
  exports.AccountAssetResponse = AccountAssetResponse;
331
+ /**
332
+ * AccountAssetsInformationResponse contains a list of assets held by an account.
333
+ */
334
+ class AccountAssetsInformationResponse extends basemodel_1.default {
335
+ /**
336
+ * Creates a new `AccountAssetsInformationResponse` object.
337
+ * @param round - The round for which this information is relevant.
338
+ * @param assetHoldings -
339
+ * @param nextToken - Used for pagination, when making another request provide this token with the
340
+ * next parameter.
341
+ */
342
+ constructor({ round, assetHoldings, nextToken, }) {
343
+ super();
344
+ this.round = round;
345
+ this.assetHoldings = assetHoldings;
346
+ this.nextToken = nextToken;
347
+ this.attribute_map = {
348
+ round: 'round',
349
+ assetHoldings: 'asset-holdings',
350
+ nextToken: 'next-token',
351
+ };
352
+ }
353
+ // eslint-disable-next-line camelcase
354
+ static from_obj_for_encoding(data) {
355
+ /* eslint-disable dot-notation */
356
+ if (typeof data['round'] === 'undefined')
357
+ throw new Error(`Response is missing required field 'round': ${data}`);
358
+ return new AccountAssetsInformationResponse({
359
+ round: data['round'],
360
+ assetHoldings: typeof data['asset-holdings'] !== 'undefined'
361
+ ? data['asset-holdings'].map(AccountAssetHolding.from_obj_for_encoding)
362
+ : undefined,
363
+ nextToken: data['next-token'],
364
+ });
365
+ /* eslint-enable dot-notation */
366
+ }
367
+ }
368
+ exports.AccountAssetsInformationResponse = AccountAssetsInformationResponse;
281
369
  /**
282
370
  * AccountParticipation describes the parameters used by this account in consensus
283
371
  * protocol.
@@ -377,6 +465,46 @@ class AccountStateDelta extends basemodel_1.default {
377
465
  }
378
466
  }
379
467
  exports.AccountStateDelta = AccountStateDelta;
468
+ /**
469
+ * The logged messages from an app call along with the app ID and outer transaction
470
+ * ID. Logs appear in the same order that they were emitted.
471
+ */
472
+ class AppCallLogs extends basemodel_1.default {
473
+ /**
474
+ * Creates a new `AppCallLogs` object.
475
+ * @param applicationIndex - The application from which the logs were generated
476
+ * @param logs - An array of logs
477
+ * @param txid - The transaction ID of the outer app call that lead to these logs
478
+ */
479
+ constructor({ applicationIndex, logs, txid, }) {
480
+ super();
481
+ this.applicationIndex = applicationIndex;
482
+ this.logs = logs;
483
+ this.txid = txid;
484
+ this.attribute_map = {
485
+ applicationIndex: 'application-index',
486
+ logs: 'logs',
487
+ txid: 'txId',
488
+ };
489
+ }
490
+ // eslint-disable-next-line camelcase
491
+ static from_obj_for_encoding(data) {
492
+ /* eslint-disable dot-notation */
493
+ if (typeof data['application-index'] === 'undefined')
494
+ throw new Error(`Response is missing required field 'application-index': ${data}`);
495
+ if (!Array.isArray(data['logs']))
496
+ throw new Error(`Response is missing required array field 'logs': ${data}`);
497
+ if (typeof data['txId'] === 'undefined')
498
+ throw new Error(`Response is missing required field 'txId': ${data}`);
499
+ return new AppCallLogs({
500
+ applicationIndex: data['application-index'],
501
+ logs: data['logs'],
502
+ txid: data['txId'],
503
+ });
504
+ /* eslint-enable dot-notation */
505
+ }
506
+ }
507
+ exports.AppCallLogs = AppCallLogs;
380
508
  /**
381
509
  * Application index and its parameters
382
510
  */
@@ -1038,6 +1166,39 @@ class BlockHashResponse extends basemodel_1.default {
1038
1166
  }
1039
1167
  }
1040
1168
  exports.BlockHashResponse = BlockHashResponse;
1169
+ /**
1170
+ * All logs emitted in the given round. Each app call, whether top-level or inner,
1171
+ * that contains logs results in a separate AppCallLogs object. Therefore there may
1172
+ * be multiple AppCallLogs with the same application ID and outer transaction ID in
1173
+ * the event of multiple inner app calls to the same app. App calls with no logs
1174
+ * are not included in the response. AppCallLogs are returned in the same order
1175
+ * that their corresponding app call appeared in the block (pre-order traversal of
1176
+ * inner app calls)
1177
+ */
1178
+ class BlockLogsResponse extends basemodel_1.default {
1179
+ /**
1180
+ * Creates a new `BlockLogsResponse` object.
1181
+ * @param logs -
1182
+ */
1183
+ constructor({ logs }) {
1184
+ super();
1185
+ this.logs = logs;
1186
+ this.attribute_map = {
1187
+ logs: 'logs',
1188
+ };
1189
+ }
1190
+ // eslint-disable-next-line camelcase
1191
+ static from_obj_for_encoding(data) {
1192
+ /* eslint-disable dot-notation */
1193
+ if (!Array.isArray(data['logs']))
1194
+ throw new Error(`Response is missing required array field 'logs': ${data}`);
1195
+ return new BlockLogsResponse({
1196
+ logs: data['logs'].map(AppCallLogs.from_obj_for_encoding),
1197
+ });
1198
+ /* eslint-enable dot-notation */
1199
+ }
1200
+ }
1201
+ exports.BlockLogsResponse = BlockLogsResponse;
1041
1202
  /**
1042
1203
  * Encoded block object.
1043
1204
  */
@@ -2275,12 +2436,14 @@ class SimulateRequest extends basemodel_1.default {
2275
2436
  * @param allowUnnamedResources - Allows access to unnamed resources during simulation.
2276
2437
  * @param execTraceConfig - An object that configures simulation execution trace.
2277
2438
  * @param extraOpcodeBudget - Applies extra opcode budget during simulation for each transaction group.
2439
+ * @param fixSigners - If true, signers for transactions that are missing signatures will be fixed
2440
+ * during evaluation.
2278
2441
  * @param round - If provided, specifies the round preceding the simulation. State changes through
2279
2442
  * this round will be used to run this simulation. Usually only the 4 most recent
2280
2443
  * rounds will be available (controlled by the node config value MaxAcctLookback).
2281
2444
  * If not specified, defaults to the latest available round.
2282
2445
  */
2283
- constructor({ txnGroups, allowEmptySignatures, allowMoreLogging, allowUnnamedResources, execTraceConfig, extraOpcodeBudget, round, }) {
2446
+ constructor({ txnGroups, allowEmptySignatures, allowMoreLogging, allowUnnamedResources, execTraceConfig, extraOpcodeBudget, fixSigners, round, }) {
2284
2447
  super();
2285
2448
  this.txnGroups = txnGroups;
2286
2449
  this.allowEmptySignatures = allowEmptySignatures;
@@ -2288,6 +2451,7 @@ class SimulateRequest extends basemodel_1.default {
2288
2451
  this.allowUnnamedResources = allowUnnamedResources;
2289
2452
  this.execTraceConfig = execTraceConfig;
2290
2453
  this.extraOpcodeBudget = extraOpcodeBudget;
2454
+ this.fixSigners = fixSigners;
2291
2455
  this.round = round;
2292
2456
  this.attribute_map = {
2293
2457
  txnGroups: 'txn-groups',
@@ -2296,6 +2460,7 @@ class SimulateRequest extends basemodel_1.default {
2296
2460
  allowUnnamedResources: 'allow-unnamed-resources',
2297
2461
  execTraceConfig: 'exec-trace-config',
2298
2462
  extraOpcodeBudget: 'extra-opcode-budget',
2463
+ fixSigners: 'fix-signers',
2299
2464
  round: 'round',
2300
2465
  };
2301
2466
  }
@@ -2313,6 +2478,7 @@ class SimulateRequest extends basemodel_1.default {
2313
2478
  ? SimulateTraceConfig.from_obj_for_encoding(data['exec-trace-config'])
2314
2479
  : undefined,
2315
2480
  extraOpcodeBudget: data['extra-opcode-budget'],
2481
+ fixSigners: data['fix-signers'],
2316
2482
  round: data['round'],
2317
2483
  });
2318
2484
  /* eslint-enable dot-notation */
@@ -2519,6 +2685,8 @@ class SimulateTransactionResult extends basemodel_1.default {
2519
2685
  * budged used by inner app calls spawned by this transaction.
2520
2686
  * @param execTrace - The execution trace of calling an app or a logic sig, containing the inner app
2521
2687
  * call trace in a recursive way.
2688
+ * @param fixedSigner - The account that needed to sign this transaction when no signature was provided
2689
+ * and the provided signer was incorrect.
2522
2690
  * @param logicSigBudgetConsumed - Budget used during execution of a logic sig transaction.
2523
2691
  * @param unnamedResourcesAccessed - These are resources that were accessed by this group that would normally have
2524
2692
  * caused failure, but were allowed in simulation. Depending on where this object
@@ -2530,17 +2698,19 @@ class SimulateTransactionResult extends basemodel_1.default {
2530
2698
  * transaction of the group; otherwise, resources must be placed in the same
2531
2699
  * transaction which accessed them.
2532
2700
  */
2533
- constructor({ txnResult, appBudgetConsumed, execTrace, logicSigBudgetConsumed, unnamedResourcesAccessed, }) {
2701
+ constructor({ txnResult, appBudgetConsumed, execTrace, fixedSigner, logicSigBudgetConsumed, unnamedResourcesAccessed, }) {
2534
2702
  super();
2535
2703
  this.txnResult = txnResult;
2536
2704
  this.appBudgetConsumed = appBudgetConsumed;
2537
2705
  this.execTrace = execTrace;
2706
+ this.fixedSigner = fixedSigner;
2538
2707
  this.logicSigBudgetConsumed = logicSigBudgetConsumed;
2539
2708
  this.unnamedResourcesAccessed = unnamedResourcesAccessed;
2540
2709
  this.attribute_map = {
2541
2710
  txnResult: 'txn-result',
2542
2711
  appBudgetConsumed: 'app-budget-consumed',
2543
2712
  execTrace: 'exec-trace',
2713
+ fixedSigner: 'fixed-signer',
2544
2714
  logicSigBudgetConsumed: 'logic-sig-budget-consumed',
2545
2715
  unnamedResourcesAccessed: 'unnamed-resources-accessed',
2546
2716
  };
@@ -2556,6 +2726,7 @@ class SimulateTransactionResult extends basemodel_1.default {
2556
2726
  execTrace: typeof data['exec-trace'] !== 'undefined'
2557
2727
  ? SimulationTransactionExecTrace.from_obj_for_encoding(data['exec-trace'])
2558
2728
  : undefined,
2729
+ fixedSigner: data['fixed-signer'],
2559
2730
  logicSigBudgetConsumed: data['logic-sig-budget-consumed'],
2560
2731
  unnamedResourcesAccessed: typeof data['unnamed-resources-accessed'] !== 'undefined'
2561
2732
  ? SimulateUnnamedResourcesAccessed.from_obj_for_encoding(data['unnamed-resources-accessed'])
@@ -2645,20 +2816,24 @@ class SimulationEvalOverrides extends basemodel_1.default {
2645
2816
  * were properly signed.
2646
2817
  * @param allowUnnamedResources - If true, allows access to unnamed resources during simulation.
2647
2818
  * @param extraOpcodeBudget - The extra opcode budget added to each transaction group during simulation
2819
+ * @param fixSigners - If true, signers for transactions that are missing signatures will be fixed
2820
+ * during evaluation.
2648
2821
  * @param maxLogCalls - The maximum log calls one can make during simulation
2649
2822
  * @param maxLogSize - The maximum byte number to log during simulation
2650
2823
  */
2651
- constructor({ allowEmptySignatures, allowUnnamedResources, extraOpcodeBudget, maxLogCalls, maxLogSize, }) {
2824
+ constructor({ allowEmptySignatures, allowUnnamedResources, extraOpcodeBudget, fixSigners, maxLogCalls, maxLogSize, }) {
2652
2825
  super();
2653
2826
  this.allowEmptySignatures = allowEmptySignatures;
2654
2827
  this.allowUnnamedResources = allowUnnamedResources;
2655
2828
  this.extraOpcodeBudget = extraOpcodeBudget;
2829
+ this.fixSigners = fixSigners;
2656
2830
  this.maxLogCalls = maxLogCalls;
2657
2831
  this.maxLogSize = maxLogSize;
2658
2832
  this.attribute_map = {
2659
2833
  allowEmptySignatures: 'allow-empty-signatures',
2660
2834
  allowUnnamedResources: 'allow-unnamed-resources',
2661
2835
  extraOpcodeBudget: 'extra-opcode-budget',
2836
+ fixSigners: 'fix-signers',
2662
2837
  maxLogCalls: 'max-log-calls',
2663
2838
  maxLogSize: 'max-log-size',
2664
2839
  };
@@ -2670,6 +2845,7 @@ class SimulationEvalOverrides extends basemodel_1.default {
2670
2845
  allowEmptySignatures: data['allow-empty-signatures'],
2671
2846
  allowUnnamedResources: data['allow-unnamed-resources'],
2672
2847
  extraOpcodeBudget: data['extra-opcode-budget'],
2848
+ fixSigners: data['fix-signers'],
2673
2849
  maxLogCalls: data['max-log-calls'],
2674
2850
  maxLogSize: data['max-log-size'],
2675
2851
  });
@@ -2741,12 +2917,17 @@ class SimulationTransactionExecTrace extends basemodel_1.default {
2741
2917
  * @param approvalProgramTrace - Program trace that contains a trace of opcode effects in an approval program.
2742
2918
  * @param clearStateProgramHash - SHA512_256 hash digest of the clear state program executed in transaction.
2743
2919
  * @param clearStateProgramTrace - Program trace that contains a trace of opcode effects in a clear state program.
2920
+ * @param clearStateRollback - If true, indicates that the clear state program failed and any persistent state
2921
+ * changes it produced should be reverted once the program exits.
2922
+ * @param clearStateRollbackError - The error message explaining why the clear state program failed. This field will
2923
+ * only be populated if clear-state-rollback is true and the failure was due to an
2924
+ * execution error.
2744
2925
  * @param innerTrace - An array of SimulationTransactionExecTrace representing the execution trace of
2745
2926
  * any inner transactions executed.
2746
2927
  * @param logicSigHash - SHA512_256 hash digest of the logic sig executed in transaction.
2747
2928
  * @param logicSigTrace - Program trace that contains a trace of opcode effects in a logic sig.
2748
2929
  */
2749
- constructor({ approvalProgramHash, approvalProgramTrace, clearStateProgramHash, clearStateProgramTrace, innerTrace, logicSigHash, logicSigTrace, }) {
2930
+ constructor({ approvalProgramHash, approvalProgramTrace, clearStateProgramHash, clearStateProgramTrace, clearStateRollback, clearStateRollbackError, innerTrace, logicSigHash, logicSigTrace, }) {
2750
2931
  super();
2751
2932
  this.approvalProgramHash =
2752
2933
  typeof approvalProgramHash === 'string'
@@ -2758,6 +2939,8 @@ class SimulationTransactionExecTrace extends basemodel_1.default {
2758
2939
  ? new Uint8Array(buffer_1.Buffer.from(clearStateProgramHash, 'base64'))
2759
2940
  : clearStateProgramHash;
2760
2941
  this.clearStateProgramTrace = clearStateProgramTrace;
2942
+ this.clearStateRollback = clearStateRollback;
2943
+ this.clearStateRollbackError = clearStateRollbackError;
2761
2944
  this.innerTrace = innerTrace;
2762
2945
  this.logicSigHash =
2763
2946
  typeof logicSigHash === 'string'
@@ -2769,6 +2952,8 @@ class SimulationTransactionExecTrace extends basemodel_1.default {
2769
2952
  approvalProgramTrace: 'approval-program-trace',
2770
2953
  clearStateProgramHash: 'clear-state-program-hash',
2771
2954
  clearStateProgramTrace: 'clear-state-program-trace',
2955
+ clearStateRollback: 'clear-state-rollback',
2956
+ clearStateRollbackError: 'clear-state-rollback-error',
2772
2957
  innerTrace: 'inner-trace',
2773
2958
  logicSigHash: 'logic-sig-hash',
2774
2959
  logicSigTrace: 'logic-sig-trace',
@@ -2786,6 +2971,8 @@ class SimulationTransactionExecTrace extends basemodel_1.default {
2786
2971
  clearStateProgramTrace: typeof data['clear-state-program-trace'] !== 'undefined'
2787
2972
  ? data['clear-state-program-trace'].map(SimulationOpcodeTraceUnit.from_obj_for_encoding)
2788
2973
  : undefined,
2974
+ clearStateRollback: data['clear-state-rollback'],
2975
+ clearStateRollbackError: data['clear-state-rollback-error'],
2789
2976
  innerTrace: typeof data['inner-trace'] !== 'undefined'
2790
2977
  ? data['inner-trace'].map(SimulationTransactionExecTrace.from_obj_for_encoding)
2791
2978
  : undefined,