Skip to content

ValueGenerator

Defined in: src/value-generators/index.ts:5

  • AvmValueGenerator

arc4: Arc4ValueGenerator

Defined in: src/value-generators/index.ts:7


txn: TxnValueGenerator

Defined in: src/value-generators/index.ts:6

account(input?): Account

Defined in: src/value-generators/avm.ts:97

Generates a random account with the specified context data.

AccountContextData

The context data for the account.

Account

  • A random account.

AvmValueGenerator.account


application(input?): Application

Defined in: src/value-generators/avm.ts:155

Generates a random application with the specified context data.

ApplicationContextData

The context data for the application.

Application

  • A random application.

AvmValueGenerator.application


asset(input?): Asset

Defined in: src/value-generators/avm.ts:135

Generates a random asset with the specified context data.

AssetContextData

The context data for the asset.

Asset

  • A random asset.

AvmValueGenerator.asset


biguint(minValue?): biguint

Defined in: src/value-generators/avm.ts:60

Generates a random biguint value within the specified range.

BigUintCompat = 0n

The minimum value (inclusive).

biguint

  • A random biguint value.

AvmValueGenerator.biguint


bytes(length?): bytes

Defined in: src/value-generators/avm.ts:74

Generates a random bytes of the specified length.

number = MAX_BYTES_SIZE

The length of the bytes.

bytes

  • A random bytes.

AvmValueGenerator.bytes


string(length?): string

Defined in: src/value-generators/avm.ts:83

Generates a random string of the specified length.

number = 11

The length of the string.

string

  • A random string.

AvmValueGenerator.string


uint64(minValue?, maxValue?): uint64

Defined in: src/value-generators/avm.ts:40

Generates a random uint64 value within the specified range.

Uint64Compat = 0n

The minimum value (inclusive).

Uint64Compat = MAX_UINT64

The maximum value (inclusive).

uint64

  • A random uint64 value.

AvmValueGenerator.uint64