@algorandfoundation/algorand-typescript-testing 1.0.0-beta.1 → 1.0.0-beta.11
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/context-helpers/internal-context.d.ts +2 -0
- package/impl/account.d.ts +3 -0
- package/impl/block.d.ts +14 -1
- package/impl/crypto.d.ts +2 -1
- package/impl/global.d.ts +4 -0
- package/impl/index.d.ts +2 -0
- package/impl/online-stake.d.ts +2 -0
- package/impl/pure.d.ts +2 -1
- package/impl/voter-params.d.ts +7 -0
- package/index.mjs +815 -686
- package/index.mjs.map +1 -1
- package/package.json +3 -3
- package/{runtime-helpers-DEtwEuFb.js → runtime-helpers-Bq9M2MMd.js} +30 -17
- package/runtime-helpers-Bq9M2MMd.js.map +1 -0
- package/runtime-helpers.mjs +1 -1
- package/subcontexts/ledger-context.d.ts +8 -7
- package/test-transformer/index.mjs +2 -2
- package/test-transformer/index.mjs.map +1 -1
- package/value-generators/avm.d.ts +3 -0
- package/runtime-helpers-DEtwEuFb.js.map +0 -1
|
@@ -2,6 +2,7 @@ import { Account, BaseContract, internal } from '@algorandfoundation/algorand-ty
|
|
|
2
2
|
import { AccountData } from '../impl/account';
|
|
3
3
|
import { ApplicationData } from '../impl/application';
|
|
4
4
|
import { AssetData } from '../impl/asset';
|
|
5
|
+
import { VoterData } from '../impl/voter-params';
|
|
5
6
|
import { TransactionGroup } from '../subcontexts/transaction-context';
|
|
6
7
|
import { TestExecutionContext } from '../test-execution-context';
|
|
7
8
|
/**
|
|
@@ -21,6 +22,7 @@ declare class InternalContext {
|
|
|
21
22
|
getAccountData(account: Account): AccountData;
|
|
22
23
|
getAssetData(id: internal.primitives.StubUint64Compat): AssetData;
|
|
23
24
|
getApplicationData(id: internal.primitives.StubUint64Compat | BaseContract): ApplicationData;
|
|
25
|
+
getVoterData(account: Account): VoterData;
|
|
24
26
|
}
|
|
25
27
|
export declare const lazyContext: InternalContext;
|
|
26
28
|
export {};
|
package/impl/account.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export declare class AssetHolding {
|
|
|
10
10
|
export declare class AccountData {
|
|
11
11
|
optedAssets: Uint64Map<AssetHolding>;
|
|
12
12
|
optedApplications: Uint64Map<Application>;
|
|
13
|
+
incentiveEligible: boolean;
|
|
14
|
+
lastProposed?: uint64;
|
|
15
|
+
lastHeartbeat?: uint64;
|
|
13
16
|
account: Mutable<Omit<Account, 'bytes' | 'isOptedIn'>>;
|
|
14
17
|
constructor();
|
|
15
18
|
}
|
package/impl/block.d.ts
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
import { internal } from '@algorandfoundation/algorand-typescript';
|
|
1
|
+
import { Account, bytes, internal, uint64 } from '@algorandfoundation/algorand-typescript';
|
|
2
|
+
export declare class BlockData {
|
|
3
|
+
seed: bytes;
|
|
4
|
+
timestamp: uint64;
|
|
5
|
+
proposer: Account;
|
|
6
|
+
feesCollected: uint64;
|
|
7
|
+
bonus: uint64;
|
|
8
|
+
branch: bytes;
|
|
9
|
+
feeSink: Account;
|
|
10
|
+
protocol: bytes;
|
|
11
|
+
txnCounter: uint64;
|
|
12
|
+
proposerPayout: uint64;
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
2
15
|
export declare const Block: internal.opTypes.BlockType;
|
package/impl/crypto.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bytes, Ecdsa, internal, VrfVerify } from '@algorandfoundation/algorand-typescript';
|
|
1
|
+
import { bytes, Ecdsa, internal, MimcConfigurations, VrfVerify } from '@algorandfoundation/algorand-typescript';
|
|
2
2
|
export declare const sha256: (a: internal.primitives.StubBytesCompat) => bytes;
|
|
3
3
|
export declare const sha3_256: (a: internal.primitives.StubBytesCompat) => bytes;
|
|
4
4
|
export declare const keccak256: (a: internal.primitives.StubBytesCompat) => bytes;
|
|
@@ -10,3 +10,4 @@ export declare const ecdsaPkRecover: (v: Ecdsa, a: internal.primitives.StubBytes
|
|
|
10
10
|
export declare const ecdsaPkDecompress: (v: Ecdsa, a: internal.primitives.StubBytesCompat) => readonly [bytes, bytes];
|
|
11
11
|
export declare const vrfVerify: (_s: VrfVerify, _a: internal.primitives.StubBytesCompat, _b: internal.primitives.StubBytesCompat, _c: internal.primitives.StubBytesCompat) => readonly [bytes, boolean];
|
|
12
12
|
export declare const EllipticCurve: internal.opTypes.EllipticCurveType;
|
|
13
|
+
export declare const mimc: (_c: MimcConfigurations, _a: internal.primitives.StubBytesCompat) => bytes;
|
package/impl/global.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ export declare class GlobalData {
|
|
|
13
13
|
assetOptInMinBalance: uint64;
|
|
14
14
|
genesisHash: bytes;
|
|
15
15
|
opcodeBudget?: uint64;
|
|
16
|
+
payoutsEnabled: boolean;
|
|
17
|
+
payoutsGoOnlineFee: uint64;
|
|
18
|
+
payoutsPercent: uint64;
|
|
19
|
+
payoutsMinBalance: uint64;
|
|
16
20
|
constructor();
|
|
17
21
|
}
|
|
18
22
|
export declare const Global: internal.opTypes.GlobalType;
|
package/impl/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export { Global } from './global';
|
|
|
11
11
|
export { GTxn } from './gtxn';
|
|
12
12
|
export { GITxn, ITxn, ITxnCreate } from './itxn';
|
|
13
13
|
export { arg } from './logicSigArg';
|
|
14
|
+
export { onlineStake } from './online-stake';
|
|
14
15
|
export * from './pure';
|
|
15
16
|
export { gloadBytes, gloadUint64, Scratch } from './scratch';
|
|
16
17
|
export { gaid, Txn } from './txn';
|
|
18
|
+
export { VoterParams } from './voter-params';
|
package/impl/pure.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ export declare const divmodw: (a: internal.primitives.StubUint64Compat, b: inter
|
|
|
10
10
|
export declare const divw: (a: internal.primitives.StubUint64Compat, b: internal.primitives.StubUint64Compat, c: internal.primitives.StubUint64Compat) => uint64;
|
|
11
11
|
export declare const exp: (a: internal.primitives.StubUint64Compat, b: internal.primitives.StubUint64Compat) => uint64;
|
|
12
12
|
export declare const expw: (a: internal.primitives.StubUint64Compat, b: internal.primitives.StubUint64Compat) => readonly [uint64, uint64];
|
|
13
|
-
|
|
13
|
+
type ExtractType = ((a: internal.primitives.StubBytesCompat, b: internal.primitives.StubUint64Compat) => bytes) & ((a: internal.primitives.StubBytesCompat, b: internal.primitives.StubUint64Compat, c: internal.primitives.StubUint64Compat) => bytes);
|
|
14
|
+
export declare const extract: ExtractType;
|
|
14
15
|
export declare const extractUint16: (a: internal.primitives.StubBytesCompat, b: internal.primitives.StubUint64Compat) => uint64;
|
|
15
16
|
export declare const extractUint32: (a: internal.primitives.StubBytesCompat, b: internal.primitives.StubUint64Compat) => uint64;
|
|
16
17
|
export declare const extractUint64: (a: internal.primitives.StubBytesCompat, b: internal.primitives.StubUint64Compat) => uint64;
|