@algorandfoundation/algorand-typescript-testing 1.0.0-beta.4 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +4 -2
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/{runtime-helpers-BYjWzlmi.js → runtime-helpers-DHsiw5ur.js} +12 -12
- package/runtime-helpers-DHsiw5ur.js.map +1 -0
- package/runtime-helpers.mjs +1 -1
- package/value-generators/avm.d.ts +2 -0
- package/runtime-helpers-BYjWzlmi.js.map +0 -1
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bytes, Uint64, Account, internal, op, BigUint, arc4, Base64, TransactionType, Asset, Application, BaseContract, Contract } from '@algorandfoundation/algorand-typescript';
|
|
2
|
-
import { a as asMaybeUint64Cls, l as lazyContext, b as asUint64, g as getObjectReference, c as getApplicationAddress, M as MIN_TXN_FEE, D as DEFAULT_ACCOUNT_MIN_BALANCE, d as DEFAULT_MAX_TXN_LIFE, Z as ZERO_ADDRESS, e as DEFAULT_ASSET_CREATE_MIN_BALANCE, f as DEFAULT_ASSET_OPT_IN_MIN_BALANCE, h as DEFAULT_GLOBAL_GENESIS_HASH, i as asMaybeBytesCls, j as asMaybeBigUintCls, B as BytesBackedCls, U as Uint64BackedCls, k as asUint64Cls, m as encodeArc4Impl, n as nameOfType, o as getArc4Encoder, A as AccountCls, p as ApplicationCls, q as AssetCls, r as arc4Encoders, s as asUint8Array, t as asBytes, u as getRandomBytes, v as asNumber, w as MAX_BOX_SIZE, x as asBytesCls, y as conactUint8Arrays, z as asBigUint, C as BITS_IN_BYTE, E as MAX_BYTES_SIZE, F as testInvariant, G as MAX_UINT8, H as binaryStringToBytes, I as UINT64_SIZE, J as notImplementedError, K as MAX_UINT64, L as EllipticCurve, N as ecdsaPkDecompress, O as ecdsaPkRecover, P as ecdsaVerify, Q as ed25519verify, R as ed25519verifyBare, S as keccak256, T as sha256, V as sha3_256, W as sha512_256, X as vrfVerify, Y as combineIntoMaxBytePages, _ as MAX_ITEMS_IN_LOG, $ as ABI_RETURN_VALUE_LOG_PREFIX, a0 as AccountMap, a1 as getGenericTypeInfo, a2 as getArc4Selector, a3 as isContractProxy, a4 as getContractMethodAbiMetadata, a5 as copyAbiMetadatas, a6 as getContractAbiMetadata, a7 as BytesMap, a8 as iterBigInt, a9 as Uint64Map, aa as AssetHolding$1, ab as AccountData, ac as asBigInt, ad as TRANSACTION_GROUP_MAX_SIZE, ae as getRandomBigInt, af as ApplicationData, ag as AddressImpl, ah as UintNImpl, ai as getRandomNumber, aj as MAX_UINT16, ak as MAX_UINT32, al as MAX_UINT128, am as MAX_UINT256, an as MAX_UINT512, ao as DynamicBytesImpl, ap as StrImpl, aq as captureMethodConfig, ar as DEFAULT_TEMPLATE_VAR_PREFIX } from './runtime-helpers-
|
|
2
|
+
import { a as asMaybeUint64Cls, l as lazyContext, b as asUint64, g as getObjectReference, c as getApplicationAddress, M as MIN_TXN_FEE, D as DEFAULT_ACCOUNT_MIN_BALANCE, d as DEFAULT_MAX_TXN_LIFE, Z as ZERO_ADDRESS, e as DEFAULT_ASSET_CREATE_MIN_BALANCE, f as DEFAULT_ASSET_OPT_IN_MIN_BALANCE, h as DEFAULT_GLOBAL_GENESIS_HASH, i as asMaybeBytesCls, j as asMaybeBigUintCls, B as BytesBackedCls, U as Uint64BackedCls, k as asUint64Cls, m as encodeArc4Impl, n as nameOfType, o as getArc4Encoder, A as AccountCls, p as ApplicationCls, q as AssetCls, r as arc4Encoders, s as asUint8Array, t as asBytes, u as getRandomBytes, v as asNumber, w as MAX_BOX_SIZE, x as asBytesCls, y as conactUint8Arrays, z as asBigUint, C as BITS_IN_BYTE, E as MAX_BYTES_SIZE, F as testInvariant, G as MAX_UINT8, H as binaryStringToBytes, I as UINT64_SIZE, J as notImplementedError, K as MAX_UINT64, L as EllipticCurve, N as ecdsaPkDecompress, O as ecdsaPkRecover, P as ecdsaVerify, Q as ed25519verify, R as ed25519verifyBare, S as keccak256, T as sha256, V as sha3_256, W as sha512_256, X as vrfVerify, Y as combineIntoMaxBytePages, _ as MAX_ITEMS_IN_LOG, $ as ABI_RETURN_VALUE_LOG_PREFIX, a0 as AccountMap, a1 as getGenericTypeInfo, a2 as getArc4Selector, a3 as isContractProxy, a4 as getContractMethodAbiMetadata, a5 as copyAbiMetadatas, a6 as getContractAbiMetadata, a7 as BytesMap, a8 as iterBigInt, a9 as Uint64Map, aa as AssetHolding$1, ab as AccountData, ac as asBigInt, ad as TRANSACTION_GROUP_MAX_SIZE, ae as getRandomBigInt, af as ApplicationData, ag as AddressImpl, ah as UintNImpl, ai as getRandomNumber, aj as MAX_UINT16, ak as MAX_UINT32, al as MAX_UINT128, am as MAX_UINT256, an as MAX_UINT512, ao as DynamicBytesImpl, ap as StrImpl, aq as captureMethodConfig, ar as DEFAULT_TEMPLATE_VAR_PREFIX } from './runtime-helpers-DHsiw5ur.js';
|
|
3
3
|
import { ARC4Encoded } from '@algorandfoundation/algorand-typescript/arc4';
|
|
4
4
|
import { randomBytes } from 'crypto';
|
|
5
5
|
import '@algorandfoundation/puya-ts';
|
|
@@ -4191,8 +4191,10 @@ class AvmValueGenerator {
|
|
|
4191
4191
|
internal.errors.internalError('Account with such address already exists in testing context. Use `context.ledger.getAccount(address)` to retrieve the existing account.');
|
|
4192
4192
|
}
|
|
4193
4193
|
const data = new AccountData();
|
|
4194
|
-
const { address, optedAssetBalances, optedApplications, incentiveEligible, ...accountData } = input ?? {};
|
|
4194
|
+
const { address, optedAssetBalances, optedApplications, incentiveEligible, lastProposed, lastHeartbeat, ...accountData } = input ?? {};
|
|
4195
4195
|
data.incentiveEligible = incentiveEligible ?? false;
|
|
4196
|
+
data.lastProposed = lastProposed;
|
|
4197
|
+
data.lastHeartbeat = lastHeartbeat;
|
|
4196
4198
|
data.account = {
|
|
4197
4199
|
...data.account,
|
|
4198
4200
|
...accountData,
|