ValueGenerator
Defined in: src/value-generators/index.ts:5
Extends
Section titled “Extends”AvmValueGenerator
Properties
Section titled “Properties”arc4:
Arc4ValueGenerator
Defined in: src/value-generators/index.ts:7
txn:
TxnValueGenerator
Defined in: src/value-generators/index.ts:6
Methods
Section titled “Methods”account()
Section titled “account()”account(
input?):Account
Defined in: src/value-generators/avm.ts:97
Generates a random account with the specified context data.
Parameters
Section titled “Parameters”input?
Section titled “input?”AccountContextData
The context data for the account.
Returns
Section titled “Returns”Account
- A random account.
Inherited from
Section titled “Inherited from”AvmValueGenerator.account
application()
Section titled “application()”application(
input?):Application
Defined in: src/value-generators/avm.ts:155
Generates a random application with the specified context data.
Parameters
Section titled “Parameters”input?
Section titled “input?”ApplicationContextData
The context data for the application.
Returns
Section titled “Returns”Application
- A random application.
Inherited from
Section titled “Inherited from”AvmValueGenerator.application
asset()
Section titled “asset()”asset(
input?):Asset
Defined in: src/value-generators/avm.ts:135
Generates a random asset with the specified context data.
Parameters
Section titled “Parameters”input?
Section titled “input?”AssetContextData
The context data for the asset.
Returns
Section titled “Returns”Asset
- A random asset.
Inherited from
Section titled “Inherited from”AvmValueGenerator.asset
biguint()
Section titled “biguint()”biguint(
minValue?):biguint
Defined in: src/value-generators/avm.ts:60
Generates a random biguint value within the specified range.
Parameters
Section titled “Parameters”minValue?
Section titled “minValue?”BigUintCompat = 0n
The minimum value (inclusive).
Returns
Section titled “Returns”biguint
- A random biguint value.
Inherited from
Section titled “Inherited from”AvmValueGenerator.biguint
bytes()
Section titled “bytes()”bytes(
length?):bytes
Defined in: src/value-generators/avm.ts:74
Generates a random bytes of the specified length.
Parameters
Section titled “Parameters”length?
Section titled “length?”number = MAX_BYTES_SIZE
The length of the bytes.
Returns
Section titled “Returns”bytes
- A random bytes.
Inherited from
Section titled “Inherited from”AvmValueGenerator.bytes
string()
Section titled “string()”string(
length?):string
Defined in: src/value-generators/avm.ts:83
Generates a random string of the specified length.
Parameters
Section titled “Parameters”length?
Section titled “length?”number = 11
The length of the string.
Returns
Section titled “Returns”string
- A random string.
Inherited from
Section titled “Inherited from”AvmValueGenerator.string
uint64()
Section titled “uint64()”uint64(
minValue?,maxValue?):uint64
Defined in: src/value-generators/avm.ts:40
Generates a random uint64 value within the specified range.
Parameters
Section titled “Parameters”minValue?
Section titled “minValue?”Uint64Compat = 0n
The minimum value (inclusive).
maxValue?
Section titled “maxValue?”Uint64Compat = MAX_UINT64
The maximum value (inclusive).
Returns
Section titled “Returns”uint64
- A random uint64 value.
Inherited from
Section titled “Inherited from”AvmValueGenerator.uint64