diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..4c762ecd --- /dev/null +++ b/404.html @@ -0,0 +1,20 @@ + + + + + + LiteSVM + + + + + + + + +

404

Looks like we've got some broken links.
+ Take me home. +
+ + + diff --git a/api/classes/Account.html b/api/classes/Account.html new file mode 100644 index 00000000..8c2583aa --- /dev/null +++ b/api/classes/Account.html @@ -0,0 +1,30 @@ + + + + + + Class: Account | LiteSVM + + + + + + + + +

# Class: Account

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new Account(lamports, data, owner, executable, rentEpoch)

# Parameters

Name Type
lamports bigint
data Uint8Array
owner Uint8Array
executable boolean
rentEpoch bigint

# Defined in

internal.d.ts:103 (opens new window)

# Methods

# data

data(): Uint8Array

# Returns

Uint8Array

# Defined in

internal.d.ts:105 (opens new window)


# executable

executable(): boolean

# Returns

boolean

# Defined in

internal.d.ts:107 (opens new window)


# lamports

lamports(): bigint

# Returns

bigint

# Defined in

internal.d.ts:104 (opens new window)


# owner

owner(): Uint8Array

# Returns

Uint8Array

# Defined in

internal.d.ts:106 (opens new window)


# rentEpoch

rentEpoch(): bigint

# Returns

bigint

# Defined in

internal.d.ts:108 (opens new window)


# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:109 (opens new window)

+ + + diff --git a/api/classes/Clock.html b/api/classes/Clock.html new file mode 100644 index 00000000..d84e25ec --- /dev/null +++ b/api/classes/Clock.html @@ -0,0 +1,30 @@ + + + + + + Class: Clock | LiteSVM + + + + + + + + +

# Class: Clock

A representation of network time.

All members of Clock start from 0 upon network boot.

# Table of contents

# Constructors

# Accessors

# Methods

# Constructors

# constructor

new Clock(slot, epochStartTimestamp, epoch, leaderScheduleEpoch, unixTimestamp)

# Parameters

Name Type Description
slot bigint The current Slot.
epochStartTimestamp bigint The timestamp of the first Slot in this Epoch.
epoch bigint The current epoch.
leaderScheduleEpoch bigint The future Epoch for which the leader schedule has most recently been calculated.
unixTimestamp bigint The approximate real world time of the current slot.

# Defined in

internal.d.ts:224 (opens new window)

# Accessors

# epoch

get epoch(): bigint

The current epoch.

# Returns

bigint

# Defined in

internal.d.ts:229 (opens new window)

set epoch(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:230 (opens new window)


# epochStartTimestamp

get epochStartTimestamp(): bigint

The timestamp of the first Slot in this Epoch.

# Returns

bigint

# Defined in

internal.d.ts:232 (opens new window)

set epochStartTimestamp(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:233 (opens new window)


# leaderScheduleEpoch

get leaderScheduleEpoch(): bigint

The future Epoch for which the leader schedule has most recently been calculated.

# Returns

bigint

# Defined in

internal.d.ts:235 (opens new window)

set leaderScheduleEpoch(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:236 (opens new window)


# slot

get slot(): bigint

The current Slot.

# Returns

bigint

# Defined in

internal.d.ts:226 (opens new window)

set slot(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:227 (opens new window)


# unixTimestamp

get unixTimestamp(): bigint

The approximate real world time of the current slot.

# Returns

bigint

# Defined in

internal.d.ts:238 (opens new window)

set unixTimestamp(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:239 (opens new window)

# Methods

# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:240 (opens new window)

+ + + diff --git a/api/classes/ComputeBudget.html b/api/classes/ComputeBudget.html new file mode 100644 index 00000000..8b71e033 --- /dev/null +++ b/api/classes/ComputeBudget.html @@ -0,0 +1,30 @@ + + + + + + Class: ComputeBudget | LiteSVM + + + + + + + + +

# Class: ComputeBudget

# Table of contents

# Constructors

# Accessors

# Constructors

# constructor

new ComputeBudget()

# Defined in

internal.d.ts:112 (opens new window)

# Accessors

# altBn128AdditionCost

get altBn128AdditionCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:178 (opens new window)

set altBn128AdditionCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:177 (opens new window)


# altBn128G1Compress

get altBn128G1Compress(): bigint

# Returns

bigint

# Defined in

internal.d.ts:196 (opens new window)

set altBn128G1Compress(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:195 (opens new window)


# altBn128G1Decompress

get altBn128G1Decompress(): bigint

# Returns

bigint

# Defined in

internal.d.ts:198 (opens new window)

set altBn128G1Decompress(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:197 (opens new window)


# altBn128G2Compress

get altBn128G2Compress(): bigint

# Returns

bigint

# Defined in

internal.d.ts:200 (opens new window)

set altBn128G2Compress(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:199 (opens new window)


# altBn128G2Decompress

get altBn128G2Decompress(): bigint

# Returns

bigint

# Defined in

internal.d.ts:202 (opens new window)

set altBn128G2Decompress(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:201 (opens new window)


# altBn128MultiplicationCost

get altBn128MultiplicationCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:180 (opens new window)

set altBn128MultiplicationCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:179 (opens new window)


# altBn128PairingOnePairCostFirst

get altBn128PairingOnePairCostFirst(): bigint

# Returns

bigint

# Defined in

internal.d.ts:182 (opens new window)

set altBn128PairingOnePairCostFirst(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:181 (opens new window)


# altBn128PairingOnePairCostOther

get altBn128PairingOnePairCostOther(): bigint

# Returns

bigint

# Defined in

internal.d.ts:184 (opens new window)

set altBn128PairingOnePairCostOther(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:183 (opens new window)


# bigModularExponentiationBaseCost

get bigModularExponentiationBaseCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:186 (opens new window)

set bigModularExponentiationBaseCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:185 (opens new window)


# bigModularExponentiationCostDivisor

get bigModularExponentiationCostDivisor(): bigint

# Returns

bigint

# Defined in

internal.d.ts:188 (opens new window)

set bigModularExponentiationCostDivisor(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:187 (opens new window)


# computeUnitLimit

get computeUnitLimit(): bigint

# Returns

bigint

# Defined in

internal.d.ts:113 (opens new window)

set computeUnitLimit(limit): void

# Parameters

Name Type
limit bigint

# Returns

void

# Defined in

internal.d.ts:114 (opens new window)


# cpiBytesPerUnit

get cpiBytesPerUnit(): bigint

# Returns

bigint

# Defined in

internal.d.ts:140 (opens new window)

set cpiBytesPerUnit(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:139 (opens new window)


# createProgramAddressUnits

get createProgramAddressUnits(): bigint

# Returns

bigint

# Defined in

internal.d.ts:118 (opens new window)

set createProgramAddressUnits(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:117 (opens new window)


# curve25519EdwardsAddCost

get curve25519EdwardsAddCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:150 (opens new window)

set curve25519EdwardsAddCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:149 (opens new window)


# curve25519EdwardsMsmBaseCost

get curve25519EdwardsMsmBaseCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:156 (opens new window)

set curve25519EdwardsMsmBaseCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:155 (opens new window)


# curve25519EdwardsMsmIncrementalCost

get curve25519EdwardsMsmIncrementalCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:158 (opens new window)

set curve25519EdwardsMsmIncrementalCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:157 (opens new window)


# curve25519EdwardsMultiplyCost

get curve25519EdwardsMultiplyCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:154 (opens new window)

set curve25519EdwardsMultiplyCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:153 (opens new window)


# curve25519EdwardsSubtractCost

get curve25519EdwardsSubtractCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:152 (opens new window)

set curve25519EdwardsSubtractCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:151 (opens new window)


# curve25519EdwardsValidatePointCost

get curve25519EdwardsValidatePointCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:148 (opens new window)

set curve25519EdwardsValidatePointCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:147 (opens new window)


# curve25519RistrettoAddCost

get curve25519RistrettoAddCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:162 (opens new window)

set curve25519RistrettoAddCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:161 (opens new window)


# curve25519RistrettoMsmBaseCost

get curve25519RistrettoMsmBaseCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:168 (opens new window)

set curve25519RistrettoMsmBaseCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:167 (opens new window)


# curve25519RistrettoMsmIncrementalCost

get curve25519RistrettoMsmIncrementalCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:170 (opens new window)

set curve25519RistrettoMsmIncrementalCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:169 (opens new window)


# curve25519RistrettoMultiplyCost

get curve25519RistrettoMultiplyCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:166 (opens new window)

set curve25519RistrettoMultiplyCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:165 (opens new window)


# curve25519RistrettoSubtractCost

get curve25519RistrettoSubtractCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:164 (opens new window)

set curve25519RistrettoSubtractCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:163 (opens new window)


# curve25519RistrettoValidatePointCost

get curve25519RistrettoValidatePointCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:160 (opens new window)

set curve25519RistrettoValidatePointCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:159 (opens new window)


# getRemainingComputeUnitsCost

get getRemainingComputeUnitsCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:194 (opens new window)

set getRemainingComputeUnitsCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:193 (opens new window)


# heapCost

get heapCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:174 (opens new window)

set heapCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:173 (opens new window)


# heapSize

get heapSize(): number

# Returns

number

# Defined in

internal.d.ts:172 (opens new window)

set heapSize(val): void

# Parameters

Name Type
val number

# Returns

void

# Defined in

internal.d.ts:171 (opens new window)


# invokeUnits

get invokeUnits(): bigint

# Returns

bigint

# Defined in

internal.d.ts:120 (opens new window)

set invokeUnits(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:119 (opens new window)


# log64Units

get log64Units(): bigint

# Returns

bigint

# Defined in

internal.d.ts:116 (opens new window)

set log64Units(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:115 (opens new window)


# logPubkeyUnits

get logPubkeyUnits(): bigint

# Returns

bigint

# Defined in

internal.d.ts:136 (opens new window)

set logPubkeyUnits(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:135 (opens new window)


# maxCallDepth

get maxCallDepth(): bigint

# Returns

bigint

# Defined in

internal.d.ts:132 (opens new window)

set maxCallDepth(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:131 (opens new window)


# maxCpiInstructionSize

get maxCpiInstructionSize(): bigint

# Returns

bigint

# Defined in

internal.d.ts:138 (opens new window)

set maxCpiInstructionSize(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:137 (opens new window)


# maxInstructionStackDepth

get maxInstructionStackDepth(): bigint

# Returns

bigint

# Defined in

internal.d.ts:122 (opens new window)

set maxInstructionStackDepth(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:121 (opens new window)


# maxInstructionTraceLength

get maxInstructionTraceLength(): bigint

# Returns

bigint

# Defined in

internal.d.ts:124 (opens new window)

set maxInstructionTraceLength(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:123 (opens new window)


# memOpBaseCost

get memOpBaseCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:176 (opens new window)

set memOpBaseCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:175 (opens new window)


# poseidonCostCoefficientA

get poseidonCostCoefficientA(): bigint

# Returns

bigint

# Defined in

internal.d.ts:190 (opens new window)

set poseidonCostCoefficientA(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:189 (opens new window)


# poseidonCostCoefficientC

get poseidonCostCoefficientC(): bigint

# Returns

bigint

# Defined in

internal.d.ts:192 (opens new window)

set poseidonCostCoefficientC(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:191 (opens new window)


# secp256K1RecoverCost

get secp256K1RecoverCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:144 (opens new window)

set secp256K1RecoverCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:143 (opens new window)


# sha256BaseCost

get sha256BaseCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:126 (opens new window)

set sha256BaseCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:125 (opens new window)


# sha256ByteCost

get sha256ByteCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:128 (opens new window)

set sha256ByteCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:127 (opens new window)


# sha256MaxSlices

get sha256MaxSlices(): bigint

# Returns

bigint

# Defined in

internal.d.ts:130 (opens new window)

set sha256MaxSlices(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:129 (opens new window)


# stackFrameSize

get stackFrameSize(): bigint

# Returns

bigint

# Defined in

internal.d.ts:134 (opens new window)

set stackFrameSize(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:133 (opens new window)


# syscallBaseCost

get syscallBaseCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:146 (opens new window)

set syscallBaseCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:145 (opens new window)


# sysvarBaseCost

get sysvarBaseCost(): bigint

# Returns

bigint

# Defined in

internal.d.ts:142 (opens new window)

set sysvarBaseCost(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:141 (opens new window)

+ + + diff --git a/api/classes/EpochRewards.html b/api/classes/EpochRewards.html new file mode 100644 index 00000000..dfe2554d --- /dev/null +++ b/api/classes/EpochRewards.html @@ -0,0 +1,38 @@ + + + + + + Class: EpochRewards | LiteSVM + + + + + + + + +

# Class: EpochRewards

A type to hold data for the EpochRewards sysvar.

# Table of contents

# Constructors

# Accessors

# Constructors

# constructor

new EpochRewards(distributionStartingBlockHeight, numPartitions, parentBlockhash, totalPoints, totalRewards, distributedRewards, active)

# Parameters

Name Type Description
distributionStartingBlockHeight bigint -
numPartitions bigint -
parentBlockhash string -
totalPoints bigint -
totalRewards bigint -
distributedRewards bigint -
active boolean Whether the rewards period (including calculation and distribution) is active

# Defined in

internal.d.ts:253 (opens new window)

# Accessors

# active

get active(): boolean

Whether the rewards period (including calculation and distribution) is +active

# Returns

boolean

# Defined in

internal.d.ts:293 (opens new window)

set active(val): void

# Parameters

Name Type
val boolean

# Returns

void

# Defined in

internal.d.ts:294 (opens new window)


# distributedRewards

get distributedRewards(): bigint

The rewards currently distributed for the current epoch, in lamports

# Returns

bigint

# Defined in

internal.d.ts:287 (opens new window)

set distributedRewards(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:288 (opens new window)


# distributionStartingBlockHeight

get distributionStartingBlockHeight(): bigint

The starting block height of the rewards distribution in the current +epoch

# Returns

bigint

# Defined in

internal.d.ts:258 (opens new window)

set distributionStartingBlockHeight(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:259 (opens new window)


# numPartitions

get numPartitions(): bigint

Number of partitions in the rewards distribution in the current epoch, +used to generate an EpochRewardsHasher

# Returns

bigint

# Defined in

internal.d.ts:264 (opens new window)

set numPartitions(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:265 (opens new window)


# parentBlockhash

get parentBlockhash(): string

The blockhash of the parent block of the first block in the epoch, used +to seed an EpochRewardsHasher

# Returns

string

# Defined in

internal.d.ts:270 (opens new window)

set parentBlockhash(val): void

# Parameters

Name Type
val string

# Returns

void

# Defined in

internal.d.ts:271 (opens new window)


# totalPoints

get totalPoints(): bigint

The total rewards points calculated for the current epoch, where points +equals the sum of (delegated stake * credits observed) for all +delegations

# Returns

bigint

# Defined in

internal.d.ts:277 (opens new window)

set totalPoints(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:278 (opens new window)


# totalRewards

get totalRewards(): bigint

The total rewards calculated for the current epoch. This may be greater +than the total distributed_rewards at the end of the rewards period, +due to rounding and inability to deliver rewards smaller than 1 lamport.

# Returns

bigint

# Defined in

internal.d.ts:284 (opens new window)

set totalRewards(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:285 (opens new window)

+ + + diff --git a/api/classes/EpochSchedule.html b/api/classes/EpochSchedule.html new file mode 100644 index 00000000..0f92016b --- /dev/null +++ b/api/classes/EpochSchedule.html @@ -0,0 +1,31 @@ + + + + + + Class: EpochSchedule | LiteSVM + + + + + + + + +

# Class: EpochSchedule

Configuration for epochs and slots.

# Table of contents

# Constructors

# Accessors

# Constructors

# constructor

new EpochSchedule(slotsPerEpoch, leaderScheduleSlotOffset, warmup, firstNormalEpoch, firstNormalSlot)

# Parameters

Name Type Description
slotsPerEpoch bigint -
leaderScheduleSlotOffset bigint -
warmup boolean Whether epochs start short and grow.
firstNormalEpoch bigint -
firstNormalSlot bigint -

# Defined in

internal.d.ts:305 (opens new window)

# Accessors

# firstNormalEpoch

get firstNormalEpoch(): bigint

The first epoch after the warmup period.

Basically: log2(slots_per_epoch) - log2(MINIMUM_SLOTS_PER_EPOCH).

# Returns

bigint

# Defined in

internal.d.ts:323 (opens new window)

set firstNormalEpoch(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:324 (opens new window)


# firstNormalSlot

get firstNormalSlot(): bigint

The first slot after the warmup period.

Basically: MINIMUM_SLOTS_PER_EPOCH * (2.pow(first_normal_epoch) - 1).

# Returns

bigint

# Defined in

internal.d.ts:330 (opens new window)

set firstNormalSlot(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:331 (opens new window)


# leaderScheduleSlotOffset

get leaderScheduleSlotOffset(): bigint

A number of slots before beginning of an epoch to calculate +a leader schedule for that epoch.

# Returns

bigint

# Defined in

internal.d.ts:313 (opens new window)

set leaderScheduleSlotOffset(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:314 (opens new window)


# slotsPerEpoch

get slotsPerEpoch(): bigint

The maximum number of slots in each epoch.

# Returns

bigint

# Defined in

internal.d.ts:307 (opens new window)

set slotsPerEpoch(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:308 (opens new window)


# warmup

get warmup(): boolean

Whether epochs start short and grow.

# Returns

boolean

# Defined in

internal.d.ts:316 (opens new window)

set warmup(val): void

# Parameters

Name Type
val boolean

# Returns

void

# Defined in

internal.d.ts:317 (opens new window)

+ + + diff --git a/api/classes/FailedTransactionMetadata.html b/api/classes/FailedTransactionMetadata.html new file mode 100644 index 00000000..62fd8b81 --- /dev/null +++ b/api/classes/FailedTransactionMetadata.html @@ -0,0 +1,30 @@ + + + + + + Class: FailedTransactionMetadata | LiteSVM + + + + + + + + +

# Class: FailedTransactionMetadata

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new FailedTransactionMetadata()

# Methods

# err

err(): TransactionErrorInstructionError | TransactionErrorDuplicateInstruction | TransactionErrorInsufficientFundsForRent | TransactionErrorProgramExecutionTemporarilyRestricted | TransactionErrorFieldless

# Returns

TransactionErrorInstructionError | TransactionErrorDuplicateInstruction | TransactionErrorInsufficientFundsForRent | TransactionErrorProgramExecutionTemporarilyRestricted | TransactionErrorFieldless

# Defined in

internal.d.ts:502 (opens new window)


# meta

meta(): TransactionMetadata

# Returns

TransactionMetadata

# Defined in

internal.d.ts:503 (opens new window)


# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:504 (opens new window)

+ + + diff --git a/api/classes/FeatureSet.html b/api/classes/FeatureSet.html new file mode 100644 index 00000000..c623417a --- /dev/null +++ b/api/classes/FeatureSet.html @@ -0,0 +1,30 @@ + + + + + + Class: FeatureSet | LiteSVM + + + + + + + + +

# Class: FeatureSet

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new FeatureSet()

# Defined in

internal.d.ts:205 (opens new window)

# Methods

# activatedSlot

activatedSlot(featureId): bigint

# Parameters

Name Type
featureId Uint8Array

# Returns

bigint

# Defined in

internal.d.ts:208 (opens new window)


# isActive

isActive(featureId): boolean

# Parameters

Name Type
featureId Uint8Array

# Returns

boolean

# Defined in

internal.d.ts:207 (opens new window)


# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:209 (opens new window)


# allEnabled

Static allEnabled(): FeatureSet

# Returns

FeatureSet

# Defined in

internal.d.ts:206 (opens new window)

+ + + diff --git a/api/classes/InnerInstruction.html b/api/classes/InnerInstruction.html new file mode 100644 index 00000000..d44856dc --- /dev/null +++ b/api/classes/InnerInstruction.html @@ -0,0 +1,30 @@ + + + + + + Class: InnerInstruction | LiteSVM + + + + + + + + +

# Class: InnerInstruction

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new InnerInstruction()

# Methods

# instruction

instruction(): CompiledInstruction

# Returns

CompiledInstruction

# Defined in

internal.d.ts:484 (opens new window)


# stackHeight

stackHeight(): number

# Returns

number

# Defined in

internal.d.ts:485 (opens new window)


# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:486 (opens new window)

+ + + diff --git a/api/classes/LiteSVM.html b/api/classes/LiteSVM.html new file mode 100644 index 00000000..ac2fe17c --- /dev/null +++ b/api/classes/LiteSVM.html @@ -0,0 +1,37 @@ + + + + + + Class: LiteSVM | LiteSVM + + + + + + + + +

# Class: LiteSVM

The main class in the litesvm library.

Use this to send transactions, query accounts and configure the runtime.

# Table of contents

# Constructors

# Properties

# Methods

# Constructors

# constructor

new LiteSVM()

Create a new LiteSVM instance with standard functionality enabled

# Defined in

index.ts:94 (opens new window)

# Properties

# inner

Private inner: LiteSvm

# Defined in

index.ts:98 (opens new window)

# Methods

# addProgram

addProgram(programId, programBytes): void

Adds am SBF program to the test environment.

# Parameters

Name Type Description
programId PublicKey The program ID.
programBytes Uint8Array The raw bytes of the compiled program.

# Returns

void

# Defined in

index.ts:300 (opens new window)


# addProgramFromFile

addProgramFromFile(programId, path): void

Adds an SBF program to the test environment from the file specified.

# Parameters

Name Type Description
programId PublicKey The program ID.
path string The path to the .so file.

# Returns

void

# Defined in

index.ts:291 (opens new window)


# airdrop

airdrop(address, lamports): TransactionMetadata | FailedTransactionMetadata

Airdrops the lamport amount specified to the given address.

# Parameters

Name Type Description
address PublicKey The airdrop recipient.
lamports bigint The amount to airdrop.

# Returns

TransactionMetadata | FailedTransactionMetadata

The transaction result.

# Defined in

index.ts:279 (opens new window)


# expireBlockhash

expireBlockhash(): void

Expires the current blockhash. +The return value of latestBlockhash() will be different after calling this.

# Returns

void

# Defined in

index.ts:344 (opens new window)


# getAccount

getAccount(address): AccountInfoBytes

Return the account at the given address. +If the account is not found, None is returned.

# Parameters

Name Type Description
address PublicKey The account address to look up.

# Returns

AccountInfoBytes

The account object, if the account exists.

# Defined in

index.ts:224 (opens new window)


# getBalance

getBalance(address): bigint

Gets the balance of the provided account address.

# Parameters

Name Type Description
address PublicKey The account address.

# Returns

bigint

The account's balance in lamports.

# Defined in

index.ts:249 (opens new window)


# getClock

getClock(): Clock

Get the cluster clock.

# Returns

Clock

the clock object.

# Defined in

index.ts:361 (opens new window)


# getEpochRewards

getEpochRewards(): EpochRewards

Get the EpochRewards sysvar.

# Returns

EpochRewards

the EpochRewards object.

# Defined in

index.ts:377 (opens new window)


# getEpochSchedule

getEpochSchedule(): EpochSchedule

Get the EpochSchedule sysvar.

# Returns

EpochSchedule

the EpochSchedule object.

# Defined in

index.ts:393 (opens new window)


# getLastRestartSlot

getLastRestartSlot(): bigint

Get the last restart slot sysvar.

# Returns

bigint

the last restart slot.

# Defined in

index.ts:409 (opens new window)


# getRent

getRent(): Rent

Get the cluster rent.

# Returns

Rent

The rent object.

# Defined in

index.ts:425 (opens new window)


# getSlotHashes

getSlotHashes(): SlotHash[]

Get the SlotHashes sysvar.

# Returns

SlotHash[]

The SlotHash array.

# Defined in

index.ts:441 (opens new window)


# getSlotHistory

getSlotHistory(): SlotHistory

Get the SlotHistory sysvar.

# Returns

SlotHistory

The SlotHistory object.

# Defined in

index.ts:457 (opens new window)


# getStakeHistory

getStakeHistory(): StakeHistory

Get the StakeHistory sysvar.

# Returns

StakeHistory

The StakeHistory object.

# Defined in

index.ts:473 (opens new window)


# getTransaction

getTransaction(signature): TransactionMetadata | FailedTransactionMetadata

Gets a transaction from the transaction history.

# Parameters

Name Type Description
signature Uint8Array The transaction signature bytes

# Returns

TransactionMetadata | FailedTransactionMetadata

The transaction, if it is found in the history.

# Defined in

index.ts:267 (opens new window)


# latestBlockhash

latestBlockhash(): string

Gets the latest blockhash. +Since LiteSVM doesn't have blocks, this is an arbitrary value controlled by LiteSVM

# Returns

string

The designated latest blockhash.

# Defined in

index.ts:258 (opens new window)


# minimumBalanceForRentExemption

minimumBalanceForRentExemption(dataLen): bigint

Calculates the minimum balance required to make an account with specified data length rent exempt.

# Parameters

Name Type Description
dataLen bigint The number of bytes in the account.

# Returns

bigint

The required balance in lamports

# Defined in

index.ts:214 (opens new window)


# sendTransaction

sendTransaction(tx): TransactionMetadata | FailedTransactionMetadata

Processes a transaction and returns the result.

# Parameters

Name Type Description
tx Transaction | VersionedTransaction The transaction to send.

# Returns

TransactionMetadata | FailedTransactionMetadata

TransactionMetadata if the transaction succeeds, else FailedTransactionMetadata

# Defined in

index.ts:309 (opens new window)


# setAccount

setAccount(address, account): void

Create or overwrite an account, subverting normal runtime checks.

This method exists to make it easier to set up artificial situations +that would be difficult to replicate by sending individual transactions. +Beware that it can be used to create states that would not be reachable +by sending transactions!

# Parameters

Name Type Description
address PublicKey The address to write to.
account AccountInfoBytes The account object to write.

# Returns

void

# Defined in

index.ts:240 (opens new window)


# setClock

setClock(clock): void

Overwrite the clock sysvar.

# Parameters

Name Type Description
clock Clock The clock object.

# Returns

void

# Defined in

index.ts:369 (opens new window)


# setEpochRewards

setEpochRewards(rewards): void

Overwrite the EpochRewards sysvar.

# Parameters

Name Type Description
rewards EpochRewards The EpochRewards object.

# Returns

void

# Defined in

index.ts:385 (opens new window)


# setEpochSchedule

setEpochSchedule(schedule): void

Overwrite the EpochSchedule sysvar.

# Parameters

Name Type Description
schedule EpochSchedule The EpochSchedule object.

# Returns

void

# Defined in

index.ts:401 (opens new window)


# setLastRestartSlot

setLastRestartSlot(slot): void

Overwrite the last restart slot sysvar.

# Parameters

Name Type Description
slot bigint The last restart slot.

# Returns

void

# Defined in

index.ts:417 (opens new window)


# setRent

setRent(rent): void

Overwrite the rent sysvar.

# Parameters

Name Type Description
rent Rent The new rent object.

# Returns

void

# Defined in

index.ts:433 (opens new window)


# setSlotHashes

setSlotHashes(hashes): void

Overwrite the SlotHashes sysvar.

# Parameters

Name Type Description
hashes SlotHash[] The SlotHash array.

# Returns

void

# Defined in

index.ts:449 (opens new window)


# setSlotHistory

setSlotHistory(history): void

Overwrite the SlotHistory sysvar.

# Parameters

Name Type Description
history SlotHistory The SlotHistory object

# Returns

void

# Defined in

index.ts:465 (opens new window)


# setStakeHistory

setStakeHistory(history): void

Overwrite the StakeHistory sysvar.

# Parameters

Name Type Description
history StakeHistory The StakeHistory object

# Returns

void

# Defined in

index.ts:481 (opens new window)


# simulateTransaction

simulateTransaction(tx): FailedTransactionMetadata | SimulatedTransactionInfo

Simulates a transaction

# Parameters

Name Type Description
tx Transaction | VersionedTransaction The transaction to simulate

# Returns

FailedTransactionMetadata | SimulatedTransactionInfo

SimulatedTransactionInfo if simulation succeeds, else FailedTransactionMetadata

# Defined in

index.ts:326 (opens new window)


# warpToSlot

warpToSlot(slot): void

Warps the clock to the specified slot. This is a convenience wrapper +around setClock().

# Parameters

Name Type Description
slot bigint The new slot.

# Returns

void

# Defined in

index.ts:353 (opens new window)


# withBlockhashCheck

withBlockhashCheck(check): LiteSVM

Enables or disables transaction blockhash checking.

# Parameters

Name Type Description
check boolean If false, the blockhash check will be skipped

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:133 (opens new window)


# withBuiltins

withBuiltins(featureSet?): LiteSVM

Adds the standard builtin programs.

# Parameters

Name Type Description
featureSet? FeatureSet if provided, decides what builtins to add based on what features are active

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:153 (opens new window)


# withComputeBudget

withComputeBudget(budget): LiteSVM

Set the compute budget

# Parameters

Name Type Description
budget ComputeBudget The new compute budget

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:113 (opens new window)


# withLamports

withLamports(lamports): LiteSVM

Changes the initial lamports in LiteSVM's airdrop account.

# Parameters

Name Type Description
lamports bigint The number of lamports to set in the airdrop account

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:163 (opens new window)


# withLogBytesLimit

withLogBytesLimit(limit?): LiteSVM

Set a limit for transaction logs, beyond which they will be truncated.

# Parameters

Name Type Description
limit? bigint The limit in bytes. If null, no limit is enforced.

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:193 (opens new window)


# withPrecompiles

withPrecompiles(featureSet?): LiteSVM

Adds the standard precompiles.

# Parameters

Name Type Description
featureSet? FeatureSet if provided, decides what precompiles to add based on what features are active

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:204 (opens new window)


# withSigverify

withSigverify(sigverify): LiteSVM

Enable or disable sigverify

# Parameters

Name Type Description
sigverify boolean if false, transaction signatures will not be checked.

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:123 (opens new window)


# withSplPrograms

withSplPrograms(): LiteSVM

Adds the standard SPL programs.

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:172 (opens new window)


# withSysvars

withSysvars(): LiteSVM

Sets up the standard sysvars.

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:142 (opens new window)


# withTransactionHistory

withTransactionHistory(capacity): LiteSVM

Changes the capacity of the transaction history.

# Parameters

Name Type Description
capacity bigint How many transactions to store in history. Set this to 0 to disable transaction history and allow duplicate transactions.

# Returns

LiteSVM

The modified LiteSVM instance

# Defined in

index.ts:183 (opens new window)


# default

Static default(): LiteSVM

Create a new LiteSVM instance with minimal functionality enabled

# Returns

LiteSVM

# Defined in

index.ts:101 (opens new window)

+ + + diff --git a/api/classes/Rent.html b/api/classes/Rent.html new file mode 100644 index 00000000..5dba2ad1 --- /dev/null +++ b/api/classes/Rent.html @@ -0,0 +1,34 @@ + + + + + + Class: Rent | LiteSVM + + + + + + + + +

# Class: Rent

Configuration of network rent.

# Table of contents

# Constructors

# Accessors

# Methods

# Constructors

# constructor

new Rent(lamportsPerByteYear, exemptionThreshold, burnPercent)

# Parameters

Name Type Description
lamportsPerByteYear bigint Rental rate in lamports/byte-year.
exemptionThreshold number Amount of time (in years) a balance must include rent for the account to be rent exempt.
burnPercent number The percentage of collected rent that is burned.

# Defined in

internal.d.ts:340 (opens new window)

# Accessors

# burnPercent

get burnPercent(): number

The percentage of collected rent that is burned.

# Returns

number

# Defined in

internal.d.ts:350 (opens new window)

set burnPercent(val): void

# Parameters

Name Type
val number

# Returns

void

# Defined in

internal.d.ts:351 (opens new window)


# exemptionThreshold

get exemptionThreshold(): number

Amount of time (in years) a balance must include rent for the account to be rent exempt.

# Returns

number

# Defined in

internal.d.ts:347 (opens new window)

set exemptionThreshold(val): void

# Parameters

Name Type
val number

# Returns

void

# Defined in

internal.d.ts:348 (opens new window)


# lamportsPerByteYear

get lamportsPerByteYear(): bigint

Rental rate in lamports/byte-year.

# Returns

bigint

# Defined in

internal.d.ts:344 (opens new window)

set lamportsPerByteYear(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:345 (opens new window)

# Methods

# calculateBurn

calculateBurn(rentCollected): [bigint, bigint]

Calculate how much rent to burn from the collected rent.

The first value returned is the amount burned. The second is the amount +to distribute to validators.

# Parameters

Name Type
rentCollected bigint

# Returns

[bigint, bigint]

The amount burned and the amount to distribute to validators.

# Defined in

internal.d.ts:361 (opens new window)


# due

due(balance, dataLen, yearsElapsed): bigint

Rent due on account's data length with balance.

# Parameters

Name Type Description
balance bigint The account balance.
dataLen bigint The account data length.
yearsElapsed number Time elapsed in years.

# Returns

bigint

The rent due.

# Defined in

internal.d.ts:384 (opens new window)


# dueAmount

dueAmount(dataLen, yearsElapsed): bigint

Rent due for account that is known to be not exempt.

# Parameters

Name Type Description
dataLen bigint The account data length.
yearsElapsed number Time elapsed in years.

# Returns

bigint

The amount due.

# Defined in

internal.d.ts:392 (opens new window)


# isExempt

isExempt(balance, dataLen): boolean

Whether a given balance and data length would be exempt.

# Parameters

Name Type
balance bigint
dataLen bigint

# Returns

boolean

# Defined in

internal.d.ts:375 (opens new window)


# minimumBalance

minimumBalance(dataLen): bigint

Minimum balance due for rent-exemption of a given account data size.

Note: a stripped-down version of this calculation is used in +calculate_split_rent_exempt_reserve in the stake program. When this +function is updated, eg. when making rent variable, the stake program +will need to be refactored.

# Parameters

Name Type Description
dataLen bigint The account data size.

# Returns

bigint

The minimum balance due.

# Defined in

internal.d.ts:373 (opens new window)


# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:406 (opens new window)


# default

Static default(): Rent

Initialize rent with the default Solana settings.

# Returns

Rent

# Defined in

internal.d.ts:342 (opens new window)


# free

Static free(): Rent

Creates a Rent that charges no lamports.

This is used for testing.

# Returns

Rent

# Defined in

internal.d.ts:399 (opens new window)


# withSlotsPerEpoch

Static withSlotsPerEpoch(slotsPerEpoch): Rent

Creates a Rent that is scaled based on the number of slots in an epoch.

This is used for testing.

# Parameters

Name Type
slotsPerEpoch bigint

# Returns

Rent

# Defined in

internal.d.ts:405 (opens new window)

+ + + diff --git a/api/classes/SimulatedTransactionInfo.html b/api/classes/SimulatedTransactionInfo.html new file mode 100644 index 00000000..65db1ab2 --- /dev/null +++ b/api/classes/SimulatedTransactionInfo.html @@ -0,0 +1,30 @@ + + + + + + Class: SimulatedTransactionInfo | LiteSVM + + + + + + + + +

# Class: SimulatedTransactionInfo

# Table of contents

# Constructors

# Properties

# Methods

# Constructors

# constructor

new SimulatedTransactionInfo(inner)

# Parameters

Name Type
inner SimulatedTransactionInfo

# Defined in

index.ts:75 (opens new window)

# Properties

# inner

Private inner: SimulatedTransactionInfo

# Defined in

index.ts:78 (opens new window)

# Methods

# meta

meta(): TransactionMetadata

# Returns

TransactionMetadata

# Defined in

index.ts:79 (opens new window)


# postAccounts

postAccounts(): [PublicKey, Account][]

# Returns

[PublicKey, Account][]

# Defined in

index.ts:82 (opens new window)

+ + + diff --git a/api/classes/SlotHash.html b/api/classes/SlotHash.html new file mode 100644 index 00000000..2f037609 --- /dev/null +++ b/api/classes/SlotHash.html @@ -0,0 +1,30 @@ + + + + + + Class: SlotHash | LiteSVM + + + + + + + + +

# Class: SlotHash

# Table of contents

# Constructors

# Properties

# Constructors

# constructor

new SlotHash()

# Properties

# hash

hash: string

# Defined in

internal.d.ts:410 (opens new window)


# slot

slot: bigint

# Defined in

internal.d.ts:409 (opens new window)

+ + + diff --git a/api/classes/SlotHistory.html b/api/classes/SlotHistory.html new file mode 100644 index 00000000..b14b6b60 --- /dev/null +++ b/api/classes/SlotHistory.html @@ -0,0 +1,30 @@ + + + + + + Class: SlotHistory | LiteSVM + + + + + + + + +

# Class: SlotHistory

A bitvector indicating which slots are present in the past epoch.

# Table of contents

# Constructors

# Accessors

# Methods

# Constructors

# constructor

new SlotHistory(bits, nextSlot)

# Parameters

Name Type
bits BigUint64Array
nextSlot bigint

# Defined in

internal.d.ts:414 (opens new window)

# Accessors

# bits

get bits(): BigUint64Array

# Returns

BigUint64Array

# Defined in

internal.d.ts:416 (opens new window)

set bits(bits): void

# Parameters

Name Type
bits BigUint64Array

# Returns

void

# Defined in

internal.d.ts:417 (opens new window)


# nextSlot

get nextSlot(): bigint

# Returns

bigint

# Defined in

internal.d.ts:418 (opens new window)

set nextSlot(slot): void

# Parameters

Name Type
slot bigint

# Returns

void

# Defined in

internal.d.ts:419 (opens new window)

# Methods

# add

add(slot): void

# Parameters

Name Type
slot bigint

# Returns

void

# Defined in

internal.d.ts:420 (opens new window)


# check

check(slot): SlotHistoryCheck

# Parameters

Name Type
slot bigint

# Returns

SlotHistoryCheck

# Defined in

internal.d.ts:421 (opens new window)


# newest

newest(): bigint

# Returns

bigint

# Defined in

internal.d.ts:423 (opens new window)


# oldest

oldest(): bigint

# Returns

bigint

# Defined in

internal.d.ts:422 (opens new window)


# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:424 (opens new window)


# default

Static default(): SlotHistory

# Returns

SlotHistory

# Defined in

internal.d.ts:415 (opens new window)

+ + + diff --git a/api/classes/StakeHistory.html b/api/classes/StakeHistory.html new file mode 100644 index 00000000..e24b99e1 --- /dev/null +++ b/api/classes/StakeHistory.html @@ -0,0 +1,30 @@ + + + + + + Class: StakeHistory | LiteSVM + + + + + + + + +

# Class: StakeHistory

A type to hold data for the StakeHistory sysvar.

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new StakeHistory()

# Defined in

internal.d.ts:446 (opens new window)

# Methods

# add

add(epoch, entry): void

# Parameters

Name Type
epoch bigint
entry StakeHistoryEntry

# Returns

void

# Defined in

internal.d.ts:448 (opens new window)


# get

get(epoch): StakeHistoryEntry

# Parameters

Name Type
epoch bigint

# Returns

StakeHistoryEntry

# Defined in

internal.d.ts:447 (opens new window)

+ + + diff --git a/api/classes/StakeHistoryEntry.html b/api/classes/StakeHistoryEntry.html new file mode 100644 index 00000000..abcb2a07 --- /dev/null +++ b/api/classes/StakeHistoryEntry.html @@ -0,0 +1,30 @@ + + + + + + Class: StakeHistoryEntry | LiteSVM + + + + + + + + +

# Class: StakeHistoryEntry

# Table of contents

# Constructors

# Accessors

# Methods

# Constructors

# constructor

new StakeHistoryEntry(effective, activating, deactivating)

# Parameters

Name Type Description
effective bigint effective stake at this epoch
activating bigint sum of portion of stakes not fully warmed up
deactivating bigint -

# Defined in

internal.d.ts:432 (opens new window)

# Accessors

# activating

get activating(): bigint

sum of portion of stakes not fully warmed up

# Returns

bigint

# Defined in

internal.d.ts:437 (opens new window)

set activating(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:438 (opens new window)


# deactivating

get deactivating(): bigint

requested to be cooled down, not fully deactivated yet

# Returns

bigint

# Defined in

internal.d.ts:440 (opens new window)

set deactivating(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:441 (opens new window)


# effective

get effective(): bigint

effective stake at this epoch

# Returns

bigint

# Defined in

internal.d.ts:434 (opens new window)

set effective(val): void

# Parameters

Name Type
val bigint

# Returns

void

# Defined in

internal.d.ts:435 (opens new window)

# Methods

# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:442 (opens new window)

+ + + diff --git a/api/classes/TransactionMetadata.html b/api/classes/TransactionMetadata.html new file mode 100644 index 00000000..f7b50a15 --- /dev/null +++ b/api/classes/TransactionMetadata.html @@ -0,0 +1,30 @@ + + + + + + Class: TransactionMetadata | LiteSVM + + + + + + + + +

# Class: TransactionMetadata

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new TransactionMetadata()

# Methods

# computeUnitsConsumed

computeUnitsConsumed(): bigint

# Returns

bigint

# Defined in

internal.d.ts:497 (opens new window)


# innerInstructions

innerInstructions(): InnerInstruction[][]

# Returns

InnerInstruction[][]

# Defined in

internal.d.ts:496 (opens new window)


# logs

logs(): string[]

# Returns

string[]

# Defined in

internal.d.ts:495 (opens new window)


# returnData

returnData(): TransactionReturnData

# Returns

TransactionReturnData

# Defined in

internal.d.ts:498 (opens new window)


# signature

signature(): Uint8Array

# Returns

Uint8Array

# Defined in

internal.d.ts:494 (opens new window)


# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:499 (opens new window)

+ + + diff --git a/api/classes/TransactionReturnData.html b/api/classes/TransactionReturnData.html new file mode 100644 index 00000000..4fe4ac94 --- /dev/null +++ b/api/classes/TransactionReturnData.html @@ -0,0 +1,30 @@ + + + + + + Class: TransactionReturnData | LiteSVM + + + + + + + + +

# Class: TransactionReturnData

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new TransactionReturnData()

# Methods

# data

data(): Uint8Array

# Returns

Uint8Array

# Defined in

internal.d.ts:490 (opens new window)


# programId

programId(): Uint8Array

# Returns

Uint8Array

# Defined in

internal.d.ts:489 (opens new window)


# toString

toString(): string

# Returns

string

# Defined in

internal.d.ts:491 (opens new window)

+ + + diff --git a/api/enums/SlotHistoryCheck.html b/api/enums/SlotHistoryCheck.html new file mode 100644 index 00000000..e50046b2 --- /dev/null +++ b/api/enums/SlotHistoryCheck.html @@ -0,0 +1,30 @@ + + + + + + Enumeration: SlotHistoryCheck | LiteSVM + + + + + + + + +

# Enumeration: SlotHistoryCheck

# Table of contents

# Enumeration Members

# Enumeration Members

# Found

Found = 2

# Defined in

internal.d.ts:9 (opens new window)


# Future

Future = 0

# Defined in

internal.d.ts:7 (opens new window)


# NotFound

NotFound = 3

# Defined in

internal.d.ts:10 (opens new window)


# TooOld

TooOld = 1

# Defined in

internal.d.ts:8 (opens new window)

+ + + diff --git a/api/index.html b/api/index.html new file mode 100644 index 00000000..6580597f --- /dev/null +++ b/api/index.html @@ -0,0 +1,30 @@ + + + + + + API Reference - v0.1.0 | LiteSVM + + + + + + + + +
+ + + diff --git a/assets/css/0.styles.fca07d9d.css b/assets/css/0.styles.fca07d9d.css new file mode 100644 index 00000000..8fd34879 --- /dev/null +++ b/assets/css/0.styles.fca07d9d.css @@ -0,0 +1 @@ +code[class*=language-],pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}.theme-default-content code{color:#476582;padding:.25rem .5rem;margin:0;font-size:.85em;background-color:rgba(27,31,35,.05);border-radius:3px}.theme-default-content code .token.deleted{color:#ec5975}.theme-default-content code .token.inserted{color:#3eaf7c}.theme-default-content pre,.theme-default-content pre[class*=language-]{line-height:1.4;padding:1.25rem 1.5rem;margin:.85rem 0;background-color:#282c34;border-radius:6px;overflow:auto}.theme-default-content pre[class*=language-] code,.theme-default-content pre code{color:#fff;padding:0;background-color:transparent;border-radius:0}div[class*=language-]{position:relative;background-color:#282c34;border-radius:6px}div[class*=language-] .highlight-lines{-webkit-user-select:none;user-select:none;padding-top:1.3rem;position:absolute;top:0;left:0;width:100%;line-height:1.4}div[class*=language-] .highlight-lines .highlighted{background-color:rgba(0,0,0,.66)}div[class*=language-] pre,div[class*=language-] pre[class*=language-]{background:transparent;position:relative;z-index:1}div[class*=language-]:before{position:absolute;z-index:3;top:.8em;right:1em;font-size:.75rem;color:hsla(0,0%,100%,.4)}div[class*=language-]:not(.line-numbers-mode) .line-numbers-wrapper{display:none}div[class*=language-].line-numbers-mode .highlight-lines .highlighted{position:relative}div[class*=language-].line-numbers-mode .highlight-lines .highlighted:before{content:" ";position:absolute;z-index:3;left:0;top:0;display:block;width:3.5rem;height:100%;background-color:rgba(0,0,0,.66)}div[class*=language-].line-numbers-mode pre{padding-left:4.5rem;vertical-align:middle}div[class*=language-].line-numbers-mode .line-numbers-wrapper{position:absolute;top:0;width:3.5rem;text-align:center;color:hsla(0,0%,100%,.3);padding:1.25rem 0;line-height:1.4}div[class*=language-].line-numbers-mode .line-numbers-wrapper br{-webkit-user-select:none;user-select:none}div[class*=language-].line-numbers-mode .line-numbers-wrapper .line-number{position:relative;z-index:4;-webkit-user-select:none;user-select:none;font-size:.85em}div[class*=language-].line-numbers-mode:after{content:"";position:absolute;z-index:2;top:0;left:0;width:3.5rem;height:100%;border-radius:6px 0 0 6px;border-right:1px solid rgba(0,0,0,.66);background-color:#282c34}div[class~=language-js]:before{content:"js"}div[class~=language-ts]:before{content:"ts"}div[class~=language-html]:before{content:"html"}div[class~=language-md]:before{content:"md"}div[class~=language-vue]:before{content:"vue"}div[class~=language-css]:before{content:"css"}div[class~=language-sass]:before{content:"sass"}div[class~=language-scss]:before{content:"scss"}div[class~=language-less]:before{content:"less"}div[class~=language-stylus]:before{content:"stylus"}div[class~=language-go]:before{content:"go"}div[class~=language-java]:before{content:"java"}div[class~=language-c]:before{content:"c"}div[class~=language-sh]:before{content:"sh"}div[class~=language-yaml]:before{content:"yaml"}div[class~=language-py]:before{content:"py"}div[class~=language-docker]:before{content:"docker"}div[class~=language-dockerfile]:before{content:"dockerfile"}div[class~=language-makefile]:before{content:"makefile"}div[class~=language-javascript]:before{content:"js"}div[class~=language-typescript]:before{content:"ts"}div[class~=language-markup]:before{content:"html"}div[class~=language-markdown]:before{content:"md"}div[class~=language-json]:before{content:"json"}div[class~=language-ruby]:before{content:"rb"}div[class~=language-python]:before{content:"py"}div[class~=language-bash]:before{content:"sh"}div[class~=language-php]:before{content:"php"}.custom-block .custom-block-title{font-weight:600;margin-bottom:-.4rem}.custom-block.danger,.custom-block.tip,.custom-block.warning{padding:.1rem 1.5rem;border-left-width:.5rem;border-left-style:solid;margin:1rem 0}.custom-block.tip{background-color:#f3f5f7;border-color:#42b983}.custom-block.warning{background-color:rgba(255,229,100,.3);border-color:#e7c000;color:#6b5900}.custom-block.warning .custom-block-title{color:#b29400}.custom-block.warning a{color:#2c3e50}.custom-block.danger{background-color:#ffe6e6;border-color:#c00;color:#4d0000}.custom-block.danger .custom-block-title{color:#900}.custom-block.danger a{color:#2c3e50}.custom-block.details{display:block;position:relative;border-radius:2px;margin:1.6em 0;padding:1.6em;background-color:#eee}.custom-block.details h4{margin-top:0}.custom-block.details figure:last-child,.custom-block.details p:last-child{margin-bottom:0;padding-bottom:0}.custom-block.details summary{outline:none;cursor:pointer}.arrow{display:inline-block;width:0;height:0}.arrow.up{border-bottom:6px solid #ccc}.arrow.down,.arrow.up{border-left:4px solid transparent;border-right:4px solid transparent}.arrow.down{border-top:6px solid #ccc}.arrow.right{border-left:6px solid #ccc}.arrow.left,.arrow.right{border-top:4px solid transparent;border-bottom:4px solid transparent}.arrow.left{border-right:6px solid #ccc}.theme-default-content:not(.custom){max-width:740px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.theme-default-content:not(.custom){padding:2rem}}@media (max-width:419px){.theme-default-content:not(.custom){padding:1.5rem}}.table-of-contents .badge{vertical-align:middle}body,html{padding:0;margin:0;background-color:#fff}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;color:#2c3e50}.page{padding-left:20rem}.navbar{z-index:20;right:0;height:3.6rem;background-color:#fff;box-sizing:border-box;border-bottom:1px solid #eaecef}.navbar,.sidebar-mask{position:fixed;top:0;left:0}.sidebar-mask{z-index:9;width:100vw;height:100vh;display:none}.sidebar{font-size:16px;background-color:#fff;width:20rem;position:fixed;z-index:10;margin:0;top:3.6rem;left:0;bottom:0;box-sizing:border-box;border-right:1px solid #eaecef;overflow-y:auto}.theme-default-content:not(.custom)>:first-child{margin-top:3.6rem}.theme-default-content:not(.custom) a:hover{text-decoration:underline}.theme-default-content:not(.custom) p.demo{padding:1rem 1.5rem;border:1px solid #ddd;border-radius:4px}.theme-default-content:not(.custom) img{max-width:100%}.theme-default-content.custom{padding:0;margin:0}.theme-default-content.custom img{max-width:100%}a{font-weight:500;text-decoration:none}a,p a code{color:#3eaf7c}p a code{font-weight:400}kbd{background:#eee;border:.15rem solid #ddd;border-bottom:.25rem solid #ddd;border-radius:.15rem;padding:0 .15em}blockquote{font-size:1rem;color:#999;border-left:.2rem solid #dfe2e5;margin:1rem 0;padding:.25rem 0 .25rem 1rem}blockquote>p{margin:0}ol,ul{padding-left:1.2em}strong{font-weight:600}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.25}.theme-default-content:not(.custom)>h1,.theme-default-content:not(.custom)>h2,.theme-default-content:not(.custom)>h3,.theme-default-content:not(.custom)>h4,.theme-default-content:not(.custom)>h5,.theme-default-content:not(.custom)>h6{margin-top:-3.1rem;padding-top:4.6rem;margin-bottom:0}.theme-default-content:not(.custom)>h1:first-child,.theme-default-content:not(.custom)>h2:first-child,.theme-default-content:not(.custom)>h3:first-child,.theme-default-content:not(.custom)>h4:first-child,.theme-default-content:not(.custom)>h5:first-child,.theme-default-content:not(.custom)>h6:first-child{margin-top:-1.5rem;margin-bottom:1rem}.theme-default-content:not(.custom)>h1:first-child+.custom-block,.theme-default-content:not(.custom)>h1:first-child+p,.theme-default-content:not(.custom)>h1:first-child+pre,.theme-default-content:not(.custom)>h2:first-child+.custom-block,.theme-default-content:not(.custom)>h2:first-child+p,.theme-default-content:not(.custom)>h2:first-child+pre,.theme-default-content:not(.custom)>h3:first-child+.custom-block,.theme-default-content:not(.custom)>h3:first-child+p,.theme-default-content:not(.custom)>h3:first-child+pre,.theme-default-content:not(.custom)>h4:first-child+.custom-block,.theme-default-content:not(.custom)>h4:first-child+p,.theme-default-content:not(.custom)>h4:first-child+pre,.theme-default-content:not(.custom)>h5:first-child+.custom-block,.theme-default-content:not(.custom)>h5:first-child+p,.theme-default-content:not(.custom)>h5:first-child+pre,.theme-default-content:not(.custom)>h6:first-child+.custom-block,.theme-default-content:not(.custom)>h6:first-child+p,.theme-default-content:not(.custom)>h6:first-child+pre{margin-top:2rem}h1:focus .header-anchor,h1:hover .header-anchor,h2:focus .header-anchor,h2:hover .header-anchor,h3:focus .header-anchor,h3:hover .header-anchor,h4:focus .header-anchor,h4:hover .header-anchor,h5:focus .header-anchor,h5:hover .header-anchor,h6:focus .header-anchor,h6:hover .header-anchor{opacity:1}h1{font-size:2.2rem}h2{font-size:1.65rem;padding-bottom:.3rem;border-bottom:1px solid #eaecef}h3{font-size:1.35rem}a.header-anchor{font-size:.85em;float:left;margin-left:-.87em;padding-right:.23em;margin-top:.125em;-webkit-user-select:none;user-select:none;opacity:0}a.header-anchor:focus,a.header-anchor:hover{text-decoration:none}.line-number,code,kbd{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}ol,p,ul{line-height:1.7}hr{border:0;border-top:1px solid #eaecef}table{border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto}tr{border-top:1px solid #dfe2e5}tr:nth-child(2n){background-color:#f6f8fa}td,th{border:1px solid #dfe2e5;padding:.6em 1em}.theme-container.sidebar-open .sidebar-mask{display:block}.theme-container.no-navbar .theme-default-content:not(.custom)>h1,.theme-container.no-navbar h2,.theme-container.no-navbar h3,.theme-container.no-navbar h4,.theme-container.no-navbar h5,.theme-container.no-navbar h6{margin-top:1.5rem;padding-top:0}.theme-container.no-navbar .sidebar{top:0}@media (min-width:720px){.theme-container.no-sidebar .sidebar{display:none}.theme-container.no-sidebar .page{padding-left:0}}@media (max-width:959px){.sidebar{font-size:15px;width:16.4rem}.page{padding-left:16.4rem}}@media (max-width:719px){.sidebar{top:0;padding-top:3.6rem;transform:translateX(-100%);transition:transform .2s ease}.page{padding-left:0}.theme-container.sidebar-open .sidebar{transform:translateX(0)}.theme-container.no-navbar .sidebar{padding-top:0}}@media (max-width:419px){h1{font-size:1.9rem}.theme-default-content div[class*=language-]{margin:.85rem -1.5rem;border-radius:0}}#nprogress{pointer-events:none}#nprogress .bar{background:#3eaf7c;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #3eaf7c,0 0 5px #3eaf7c;opacity:1;transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border-color:#3eaf7c transparent transparent #3eaf7c;border-style:solid;border-width:2px;border-radius:50%;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.icon.outbound{color:#aaa;display:inline-block;vertical-align:middle;position:relative;top:-1px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.algolia-search-wrapper>span{vertical-align:middle}.algolia-search-wrapper .algolia-autocomplete{line-height:normal}.algolia-search-wrapper .algolia-autocomplete .ds-dropdown-menu{background-color:#fff;border:1px solid #999;border-radius:4px;font-size:16px;margin:6px 0 0;padding:4px;text-align:left}.algolia-search-wrapper .algolia-autocomplete .ds-dropdown-menu:before{border-color:#999}.algolia-search-wrapper .algolia-autocomplete .ds-dropdown-menu [class*=ds-dataset-]{border:none;padding:0}.algolia-search-wrapper .algolia-autocomplete .ds-dropdown-menu .ds-suggestions{margin-top:0}.algolia-search-wrapper .algolia-autocomplete .ds-dropdown-menu .ds-suggestion{border-bottom:1px solid #eaecef}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion--highlight{color:#2c815b}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion{border-color:#eaecef;padding:0}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--category-header{padding:5px 10px;margin-top:0;background:#3eaf7c;color:#fff;font-weight:600}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight{background:hsla(0,0%,100%,.6)}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--wrapper{padding:0}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--title{font-weight:600;margin-bottom:0;color:#2c3e50}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column{vertical-align:top;padding:5px 7px 5px 5px;border-color:#eaecef;background:#f1f3f5}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column:after{display:none}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column-text{color:#555}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-footer{border-color:#eaecef}.algolia-search-wrapper .algolia-autocomplete .ds-cursor .algolia-docsearch-suggestion--content{background-color:#e7edf3!important;color:#2c3e50}@media (min-width:719px){.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column{float:none;width:150px;min-width:150px;display:table-cell}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content{float:none;display:table-cell;width:100%;vertical-align:top}.algolia-search-wrapper .algolia-autocomplete .algolia-docsearch-suggestion .ds-dropdown-menu{min-width:515px!important}}@media (max-width:719px){.algolia-search-wrapper .ds-dropdown-menu{min-width:calc(100vw - 4rem)!important;max-width:calc(100vw - 4rem)!important}.algolia-search-wrapper .algolia-docsearch-suggestion--wrapper{padding:5px 7px 5px 5px!important}.algolia-search-wrapper .algolia-docsearch-suggestion--subcategory-column{padding:0!important;background:#fff!important}.algolia-search-wrapper .algolia-docsearch-suggestion--subcategory-column-text:after{content:" > ";font-size:10px;line-height:14.4px;display:inline-block;width:5px;margin:-3px 3px 0;vertical-align:middle}}.home{padding:3.6rem 2rem 0;max-width:960px;margin:0 auto;display:block}.home .hero{text-align:center}.home .hero img{max-width:100%;max-height:280px;display:block;margin:3rem auto 1.5rem}.home .hero h1{font-size:3rem}.home .hero .action,.home .hero .description,.home .hero h1{margin:1.8rem auto}.home .hero .description{max-width:35rem;font-size:1.6rem;line-height:1.3;color:#6a8bad}.home .hero .action-button{display:inline-block;font-size:1.2rem;color:#fff;background-color:#3eaf7c;padding:.8rem 1.6rem;border-radius:4px;transition:background-color .1s ease;box-sizing:border-box;border-bottom:1px solid #389d70}.home .hero .action-button:hover{background-color:#4abf8a}.home .features{border-top:1px solid #eaecef;padding:1.2rem 0;margin-top:2.5rem;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:stretch;justify-content:space-between}.home .feature{flex-grow:1;flex-basis:30%;max-width:30%}.home .feature h2{font-size:1.4rem;font-weight:500;border-bottom:none;padding-bottom:0;color:#3a5169}.home .feature p{color:#4e6e8e}.home .footer{padding:2.5rem;border-top:1px solid #eaecef;text-align:center;color:#4e6e8e}@media (max-width:719px){.home .features{flex-direction:column}.home .feature{max-width:100%;padding:0 2.5rem}}@media (max-width:419px){.home{padding-left:1.5rem;padding-right:1.5rem}.home .hero img{max-height:210px;margin:2rem auto 1.2rem}.home .hero h1{font-size:2rem}.home .hero .action,.home .hero .description,.home .hero h1{margin:1.2rem auto}.home .hero .description{font-size:1.2rem}.home .hero .action-button{font-size:1rem;padding:.6rem 1.2rem}.home .feature h2{font-size:1.25rem}}.search-box{display:inline-block;position:relative;margin-right:1rem}.search-box input{cursor:text;width:10rem;height:2rem;color:#4e6e8e;display:inline-block;border:1px solid #cfd4db;border-radius:2rem;font-size:.9rem;line-height:2rem;padding:0 .5rem 0 2rem;outline:none;transition:all .2s ease;background:#fff url(/litesvm/assets/img/search.83621669.svg) .6rem .5rem no-repeat;background-size:1rem}.search-box input:focus{cursor:auto;border-color:#3eaf7c}.search-box .suggestions{background:#fff;width:20rem;position:absolute;top:2rem;border:1px solid #cfd4db;border-radius:6px;padding:.4rem;list-style-type:none}.search-box .suggestions.align-right{right:0}.search-box .suggestion{line-height:1.4;padding:.4rem .6rem;border-radius:4px;cursor:pointer}.search-box .suggestion a{white-space:normal;color:#5d82a6}.search-box .suggestion a .page-title{font-weight:600}.search-box .suggestion a .header{font-size:.9em;margin-left:.25em}.search-box .suggestion.focused{background-color:#f3f4f5}.search-box .suggestion.focused a{color:#3eaf7c}@media (max-width:959px){.search-box input{cursor:pointer;width:0;border-color:transparent;position:relative}.search-box input:focus{cursor:text;left:0;width:10rem}}@media (-ms-high-contrast:none){.search-box input{height:2rem}}@media (max-width:959px) and (min-width:719px){.search-box .suggestions{left:0}}@media (max-width:719px){.search-box{margin-right:0}.search-box input{left:1rem}.search-box .suggestions{right:0}}@media (max-width:419px){.search-box .suggestions{width:calc(100vw - 4rem)}.search-box input:focus{width:8rem}}.sidebar-button{cursor:pointer;display:none;width:1.25rem;height:1.25rem;position:absolute;padding:.6rem;top:.6rem;left:1rem}.sidebar-button .icon{display:block;width:1.25rem;height:1.25rem}@media (max-width:719px){.sidebar-button{display:block}}.dropdown-enter,.dropdown-leave-to{height:0!important}.badge[data-v-15b7b770]{display:inline-block;font-size:14px;height:18px;line-height:18px;border-radius:3px;padding:0 6px;color:#fff}.badge.green[data-v-15b7b770],.badge.tip[data-v-15b7b770],.badge[data-v-15b7b770]{background-color:#42b983}.badge.error[data-v-15b7b770]{background-color:#da5961}.badge.warn[data-v-15b7b770],.badge.warning[data-v-15b7b770],.badge.yellow[data-v-15b7b770]{background-color:#e7c000}.badge+.badge[data-v-15b7b770]{margin-left:5px}.theme-code-block[data-v-759a7d02]{display:none}.theme-code-block__active[data-v-759a7d02]{display:block}.theme-code-block>pre[data-v-759a7d02]{background-color:orange}.theme-code-group__nav[data-v-deefee04]{margin-bottom:-35px;background-color:#282c34;padding-bottom:22px;border-top-left-radius:6px;border-top-right-radius:6px;padding-left:10px;padding-top:10px}.theme-code-group__ul[data-v-deefee04]{margin:auto 0;padding-left:0;display:inline-flex;list-style:none}.theme-code-group__nav-tab[data-v-deefee04]{border:0;padding:5px;cursor:pointer;background-color:transparent;font-size:.85em;line-height:1.4;color:hsla(0,0%,100%,.9);font-weight:600}.theme-code-group__nav-tab-active[data-v-deefee04]{border-bottom:1px solid #42b983}.pre-blank[data-v-deefee04]{color:#42b983}.searchbox{display:inline-block;position:relative;width:200px;height:32px!important;white-space:nowrap;box-sizing:border-box;visibility:visible!important}.searchbox .algolia-autocomplete{display:block;width:100%;height:100%}.searchbox__wrapper{width:100%;height:100%;z-index:999;position:relative}.searchbox__input{display:inline-block;box-sizing:border-box;transition:box-shadow .4s ease,background .4s ease;border:0;border-radius:16px;box-shadow:inset 0 0 0 1px #ccc;background:#fff!important;padding:0 26px 0 32px;width:100%;height:100%;vertical-align:middle;white-space:normal;font-size:12px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbox__input::-webkit-search-cancel-button,.searchbox__input::-webkit-search-decoration,.searchbox__input::-webkit-search-results-button,.searchbox__input::-webkit-search-results-decoration{display:none}.searchbox__input:hover{box-shadow:inset 0 0 0 1px #b3b3b3}.searchbox__input:active,.searchbox__input:focus{outline:0;box-shadow:inset 0 0 0 1px #aaa;background:#fff}.searchbox__input::-moz-placeholder{color:#aaa}.searchbox__input::placeholder{color:#aaa}.searchbox__submit{position:absolute;top:0;margin:0;border:0;border-radius:16px 0 0 16px;background-color:rgba(69,142,225,0);padding:0;width:32px;height:100%;vertical-align:middle;text-align:center;font-size:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;right:inherit;left:0}.searchbox__submit:before{display:inline-block;margin-right:-4px;height:100%;vertical-align:middle;content:""}.searchbox__submit:active,.searchbox__submit:hover{cursor:pointer}.searchbox__submit:focus{outline:0}.searchbox__submit svg{width:14px;height:14px;vertical-align:middle;fill:#6d7e96}.searchbox__reset{display:block;position:absolute;top:8px;right:8px;margin:0;border:0;background:none;cursor:pointer;padding:0;font-size:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;fill:rgba(0,0,0,.5)}.searchbox__reset.hide{display:none}.searchbox__reset:focus{outline:0}.searchbox__reset svg{display:block;margin:4px;width:8px;height:8px}.searchbox__input:valid~.searchbox__reset{display:block;animation-name:sbx-reset-in;animation-duration:.15s}@keyframes sbx-reset-in{0%{transform:translate3d(-20%,0,0);opacity:0}to{transform:none;opacity:1}}.algolia-autocomplete.algolia-autocomplete-right .ds-dropdown-menu{right:0!important;left:inherit!important}.algolia-autocomplete.algolia-autocomplete-right .ds-dropdown-menu:before{right:48px}.algolia-autocomplete.algolia-autocomplete-left .ds-dropdown-menu{left:0!important;right:inherit!important}.algolia-autocomplete.algolia-autocomplete-left .ds-dropdown-menu:before{left:48px}.algolia-autocomplete .ds-dropdown-menu{top:-6px;border-radius:4px;margin:6px 0 0;padding:0;text-align:left;height:auto;position:relative;background:transparent;border:none;z-index:999;max-width:600px;min-width:500px;box-shadow:0 1px 0 0 rgba(0,0,0,.2),0 2px 3px 0 rgba(0,0,0,.1)}.algolia-autocomplete .ds-dropdown-menu:before{display:block;position:absolute;content:"";width:14px;height:14px;background:#fff;z-index:1000;top:-7px;border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9;transform:rotate(-45deg);border-radius:2px}.algolia-autocomplete .ds-dropdown-menu .ds-suggestions{position:relative;z-index:1000;margin-top:8px}.algolia-autocomplete .ds-dropdown-menu .ds-suggestions a:hover{text-decoration:none}.algolia-autocomplete .ds-dropdown-menu .ds-suggestion{cursor:pointer}.algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion.suggestion-layout-simple,.algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion:not(.suggestion-layout-simple) .algolia-docsearch-suggestion--content{background-color:rgba(69,142,225,.05)}.algolia-autocomplete .ds-dropdown-menu [class^=ds-dataset-]{position:relative;border:1px solid #d9d9d9;background:#fff;border-radius:4px;overflow:auto;padding:0 8px 8px}.algolia-autocomplete .ds-dropdown-menu *{box-sizing:border-box}.algolia-autocomplete .algolia-docsearch-suggestion{display:block;position:relative;padding:0 8px;background:#fff;color:#02060c;overflow:hidden}.algolia-autocomplete .algolia-docsearch-suggestion--highlight{color:#174d8c;background:rgba(143,187,237,.1);padding:.1em .05em}.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl0 .algolia-docsearch-suggestion--highlight,.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl1 .algolia-docsearch-suggestion--highlight,.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight{padding:0 0 1px;background:inherit;box-shadow:inset 0 -2px 0 0 rgba(69,142,225,.8);color:inherit}.algolia-autocomplete .algolia-docsearch-suggestion--content{display:block;float:right;width:70%;position:relative;padding:5.33333px 0 5.33333px 10.66667px;cursor:pointer}.algolia-autocomplete .algolia-docsearch-suggestion--content:before{content:"";position:absolute;display:block;top:0;height:100%;width:1px;background:#ddd;left:-1px}.algolia-autocomplete .algolia-docsearch-suggestion--category-header{position:relative;border-bottom:1px solid #ddd;display:none;margin-top:8px;padding:4px 0;font-size:1em;color:#33363d}.algolia-autocomplete .algolia-docsearch-suggestion--wrapper{width:100%;float:left;padding:8px 0 0}.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column{float:left;width:30%;text-align:right;position:relative;padding:5.33333px 10.66667px;color:#a4a7ae;font-size:.9em;word-wrap:break-word}.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column:before{content:"";position:absolute;display:block;top:0;height:100%;width:1px;background:#ddd;right:0}.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-inline{display:none}.algolia-autocomplete .algolia-docsearch-suggestion--title{margin-bottom:4px;color:#02060c;font-size:.9em;font-weight:700}.algolia-autocomplete .algolia-docsearch-suggestion--text{display:block;line-height:1.2em;font-size:.85em;color:#63676d}.algolia-autocomplete .algolia-docsearch-suggestion--no-results{width:100%;padding:8px 0;text-align:center;font-size:1.2em}.algolia-autocomplete .algolia-docsearch-suggestion--no-results:before{display:none}.algolia-autocomplete .algolia-docsearch-suggestion code{padding:1px 5px;font-size:90%;border:none;color:#222;background-color:#ebebeb;border-radius:3px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.algolia-autocomplete .algolia-docsearch-suggestion code .algolia-docsearch-suggestion--highlight{background:none}.algolia-autocomplete .algolia-docsearch-suggestion.algolia-docsearch-suggestion__main .algolia-docsearch-suggestion--category-header,.algolia-autocomplete .algolia-docsearch-suggestion.algolia-docsearch-suggestion__secondary{display:block}@media (min-width:768px){.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column{display:block}}@media (max-width:768px){.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column{display:inline-block;width:auto;float:left;padding:0;color:#02060c;font-size:.9em;font-weight:700;text-align:left;opacity:.5}.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column:before{display:none}.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column:after{content:"|"}.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content{display:inline-block;width:auto;text-align:left;float:left;padding:0}.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content:before{display:none}}.algolia-autocomplete .suggestion-layout-simple.algolia-docsearch-suggestion{border-bottom:1px solid #eee;padding:8px;margin:0}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--content{width:100%;padding:0}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--content:before{display:none}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header{margin:0;padding:0;display:block;width:100%;border:none}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header-lvl0,.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header-lvl1{opacity:.6;font-size:.85em}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header-lvl1:before{background-image:url('data:image/svg+xml;utf8,');content:"";width:10px;height:10px;display:inline-block}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--wrapper{width:100%;float:left;margin:0;padding:0}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--duplicate-content,.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--subcategory-inline{display:none!important}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--title{margin:0;color:#458ee1;font-size:.9em;font-weight:400}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--title:before{content:"#";font-weight:700;color:#458ee1;display:inline-block}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--text{margin:4px 0 0;display:block;line-height:1.4em;padding:5.33333px 8px;background:#f8f8f8;font-size:.85em;opacity:.8}.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight{color:#3f4145;font-weight:700;box-shadow:none}.algolia-autocomplete .algolia-docsearch-footer{width:134px;height:20px;z-index:2000;margin-top:10.66667px;float:right;font-size:0;line-height:0}.algolia-autocomplete .algolia-docsearch-footer--logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='168' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M78.988.938h16.594a2.968 2.968 0 012.966 2.966V20.5a2.967 2.967 0 01-2.966 2.964H78.988a2.967 2.967 0 01-2.966-2.964V3.897A2.961 2.961 0 0178.988.938zm41.937 17.866c-4.386.02-4.386-3.54-4.386-4.106l-.007-13.336 2.675-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-10.846-2.18c.821 0 1.43-.047 1.855-.129v-2.719a6.334 6.334 0 00-1.574-.199 5.7 5.7 0 00-.897.069 2.699 2.699 0 00-.814.24c-.24.116-.439.28-.582.491-.15.212-.219.335-.219.656 0 .628.219.991.616 1.23s.938.362 1.615.362zm-.233-9.7c.883 0 1.629.109 2.231.328.602.218 1.088.525 1.444.915.363.396.609.922.76 1.483.157.56.232 1.175.232 1.85v6.874a32.5 32.5 0 01-1.868.314c-.834.123-1.772.185-2.813.185-.69 0-1.327-.069-1.895-.198a4.001 4.001 0 01-1.471-.636 3.085 3.085 0 01-.951-1.134c-.226-.465-.343-1.12-.343-1.803 0-.656.13-1.073.384-1.525a3.24 3.24 0 011.047-1.106c.445-.287.95-.492 1.532-.615a8.8 8.8 0 011.82-.185 8.404 8.404 0 011.972.24v-.438c0-.307-.035-.6-.11-.874a1.88 1.88 0 00-.384-.73 1.784 1.784 0 00-.724-.493 3.164 3.164 0 00-1.143-.205c-.616 0-1.177.075-1.69.164a7.735 7.735 0 00-1.26.307l-.321-2.192c.335-.117.834-.233 1.478-.349a10.98 10.98 0 012.073-.178zm52.842 9.626c.822 0 1.43-.048 1.854-.13V13.7a6.347 6.347 0 00-1.574-.199c-.294 0-.595.021-.896.069a2.7 2.7 0 00-.814.24 1.46 1.46 0 00-.582.491c-.15.212-.218.335-.218.656 0 .628.218.991.615 1.23.404.245.938.362 1.615.362zm-.226-9.694c.883 0 1.629.108 2.231.327.602.219 1.088.526 1.444.915.355.39.609.923.759 1.483a6.8 6.8 0 01.233 1.852v6.873c-.41.088-1.034.19-1.868.314-.834.123-1.772.184-2.813.184-.69 0-1.327-.068-1.895-.198a4.001 4.001 0 01-1.471-.635 3.085 3.085 0 01-.951-1.134c-.226-.465-.343-1.12-.343-1.804 0-.656.13-1.073.384-1.524.26-.45.608-.82 1.047-1.107.445-.286.95-.491 1.532-.614a8.803 8.803 0 012.751-.13c.329.034.671.096 1.04.185v-.437a3.3 3.3 0 00-.109-.875 1.873 1.873 0 00-.384-.731 1.784 1.784 0 00-.724-.492 3.165 3.165 0 00-1.143-.205c-.616 0-1.177.075-1.69.164a7.75 7.75 0 00-1.26.307l-.321-2.193c.335-.116.834-.232 1.478-.348a11.633 11.633 0 012.073-.177zm-8.034-1.271a1.626 1.626 0 01-1.628-1.62c0-.895.725-1.62 1.628-1.62.904 0 1.63.725 1.63 1.62 0 .895-.733 1.62-1.63 1.62zm1.348 13.22h-2.689V7.27l2.69-.423v11.956zm-4.714 0c-4.386.02-4.386-3.54-4.386-4.107l-.008-13.336 2.676-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-8.698-5.903c0-1.156-.253-2.119-.746-2.788-.493-.677-1.183-1.01-2.067-1.01-.882 0-1.574.333-2.065 1.01-.493.676-.733 1.632-.733 2.788 0 1.168.246 1.953.74 2.63.492.683 1.183 1.018 2.066 1.018.882 0 1.574-.342 2.067-1.019.492-.683.738-1.46.738-2.63zm2.737-.007c0 .902-.13 1.584-.397 2.33a5.52 5.52 0 01-1.128 1.906 4.986 4.986 0 01-1.752 1.223c-.685.286-1.739.45-2.265.45-.528-.006-1.574-.157-2.252-.45a5.096 5.096 0 01-1.744-1.223c-.487-.527-.863-1.162-1.137-1.906a6.345 6.345 0 01-.41-2.33c0-.902.123-1.77.397-2.508a5.554 5.554 0 011.15-1.892 5.133 5.133 0 011.75-1.216c.679-.287 1.425-.423 2.232-.423.808 0 1.553.142 2.237.423a4.88 4.88 0 011.753 1.216 5.644 5.644 0 011.135 1.892c.287.738.431 1.606.431 2.508zm-20.138 0c0 1.12.246 2.363.738 2.882.493.52 1.13.78 1.91.78.424 0 .828-.062 1.204-.178.377-.116.677-.253.917-.417V9.33a10.476 10.476 0 00-1.766-.226c-.971-.028-1.71.37-2.23 1.004-.513.636-.773 1.75-.773 2.788zm7.438 5.274c0 1.824-.466 3.156-1.404 4.004-.936.846-2.367 1.27-4.296 1.27-.705 0-2.17-.137-3.34-.396l.431-2.118c.98.205 2.272.26 2.95.26 1.074 0 1.84-.219 2.299-.656.459-.437.684-1.086.684-1.948v-.437a8.07 8.07 0 01-1.047.397c-.43.13-.93.198-1.492.198-.739 0-1.41-.116-2.018-.349a4.206 4.206 0 01-1.567-1.025c-.431-.45-.774-1.017-1.013-1.694-.24-.677-.363-1.885-.363-2.773 0-.834.13-1.88.384-2.577.26-.696.629-1.298 1.129-1.796.493-.498 1.095-.881 1.8-1.162a6.605 6.605 0 012.428-.457c.87 0 1.67.109 2.45.24.78.129 1.444.265 1.985.415V18.17z' fill='%235468FF'/%3E%3Cpath d='M6.972 6.677v1.627c-.712-.446-1.52-.67-2.425-.67-.585 0-1.045.13-1.38.391a1.24 1.24 0 00-.502 1.03c0 .425.164.765.494 1.02.33.256.835.532 1.516.83.447.192.795.356 1.045.495.25.138.537.332.862.582.324.25.563.548.718.894.154.345.23.741.23 1.188 0 .947-.334 1.691-1.004 2.234-.67.542-1.537.814-2.601.814-1.18 0-2.16-.229-2.936-.686v-1.708c.84.628 1.814.942 2.92.942.585 0 1.048-.136 1.388-.407.34-.271.51-.646.51-1.125 0-.287-.1-.55-.302-.79-.203-.24-.42-.42-.655-.542-.234-.123-.585-.29-1.053-.503a61.27 61.27 0 01-.582-.271 13.67 13.67 0 01-.55-.287 4.275 4.275 0 01-.567-.351 6.92 6.92 0 01-.455-.4c-.18-.17-.31-.34-.39-.51-.08-.17-.155-.37-.224-.598a2.553 2.553 0 01-.104-.742c0-.915.333-1.638.998-2.17.664-.532 1.523-.798 2.576-.798.968 0 1.793.17 2.473.51zm7.468 5.696v-.287c-.022-.607-.187-1.088-.495-1.444-.309-.357-.75-.535-1.324-.535-.532 0-.99.194-1.373.583-.382.388-.622.949-.717 1.683h3.909zm1.005 2.792v1.404c-.596.34-1.383.51-2.362.51-1.255 0-2.255-.377-3-1.132-.744-.755-1.116-1.744-1.116-2.968 0-1.297.34-2.316 1.021-3.055.68-.74 1.548-1.11 2.6-1.11 1.033 0 1.852.323 2.458.966.606.644.91 1.572.91 2.784 0 .33-.033.676-.096 1.038h-5.314c.107.702.405 1.239.894 1.611.49.372 1.106.558 1.85.558.862 0 1.58-.202 2.155-.606zm6.605-1.77h-1.212c-.596 0-1.045.116-1.349.35-.303.234-.454.532-.454.894 0 .372.117.664.35.877.235.213.575.32 1.022.32.51 0 .912-.142 1.204-.424.293-.281.44-.651.44-1.108v-.91zm-4.068-2.554V9.325c.627-.361 1.457-.542 2.489-.542 2.116 0 3.175 1.026 3.175 3.08V17h-1.548v-.957c-.415.68-1.143 1.02-2.186 1.02-.766 0-1.38-.22-1.843-.661-.462-.442-.694-1.003-.694-1.684 0-.776.293-1.38.878-1.81.585-.431 1.404-.647 2.457-.647h1.34V11.8c0-.554-.133-.971-.399-1.253-.266-.282-.707-.423-1.324-.423a4.07 4.07 0 00-2.345.718zm9.333-1.93v1.42c.394-1 1.101-1.5 2.123-1.5.148 0 .313.016.494.048v1.531a1.885 1.885 0 00-.75-.143c-.542 0-.989.24-1.34.718-.351.479-.527 1.048-.527 1.707V17h-1.563V8.91h1.563zm5.01 4.084c.022.82.272 1.492.75 2.019.479.526 1.15.79 2.01.79.639 0 1.235-.176 1.788-.527v1.404c-.521.319-1.186.479-1.995.479-1.265 0-2.276-.4-3.031-1.197-.755-.798-1.133-1.792-1.133-2.984 0-1.16.38-2.151 1.14-2.975.761-.825 1.79-1.237 3.088-1.237.702 0 1.346.149 1.93.447v1.436a3.242 3.242 0 00-1.77-.495c-.84 0-1.513.266-2.019.798-.505.532-.758 1.213-.758 2.042zM40.24 5.72v4.579c.458-1 1.293-1.5 2.505-1.5.787 0 1.42.245 1.899.734.479.49.718 1.17.718 2.042V17h-1.564v-5.106c0-.553-.14-.98-.422-1.284-.282-.303-.652-.455-1.11-.455-.531 0-1.002.202-1.411.606-.41.405-.615 1.022-.615 1.851V17h-1.563V5.72h1.563zm14.966 10.02c.596 0 1.096-.253 1.5-.758.404-.506.606-1.157.606-1.955 0-.915-.202-1.62-.606-2.114-.404-.495-.92-.742-1.548-.742-.553 0-1.05.224-1.491.67-.442.447-.662 1.133-.662 2.058 0 .958.212 1.67.638 2.138.425.469.946.703 1.563.703zM53.004 5.72v4.42c.574-.894 1.388-1.341 2.44-1.341 1.022 0 1.857.383 2.506 1.149.649.766.973 1.781.973 3.047 0 1.138-.309 2.109-.925 2.912-.617.803-1.463 1.205-2.537 1.205-1.075 0-1.894-.447-2.457-1.34V17h-1.58V5.72h1.58zm9.908 11.104l-3.223-7.913h1.739l1.005 2.632 1.26 3.415c.096-.32.48-1.458 1.15-3.415l.909-2.632h1.66l-2.92 7.866c-.777 2.074-1.963 3.11-3.559 3.11a2.92 2.92 0 01-.734-.079v-1.34c.17.042.351.064.543.064 1.032 0 1.755-.57 2.17-1.708z' fill='%235D6494'/%3E%3Cpath d='M89.632 5.967v-.772a.978.978 0 00-.978-.977h-2.28a.978.978 0 00-.978.977v.793c0 .088.082.15.171.13a7.127 7.127 0 011.984-.28c.65 0 1.295.088 1.917.259.082.02.164-.04.164-.13m-6.248 1.01l-.39-.389a.977.977 0 00-1.382 0l-.465.465a.973.973 0 000 1.38l.383.383c.062.061.15.047.205-.014.226-.307.472-.601.746-.874.281-.28.568-.526.883-.751.068-.042.075-.137.02-.2m4.16 2.453v3.341c0 .096.104.165.192.117l2.97-1.537c.068-.034.089-.117.055-.184a3.695 3.695 0 00-3.08-1.866c-.068 0-.136.054-.136.13m0 8.048a4.489 4.489 0 01-4.49-4.482 4.488 4.488 0 014.49-4.482 4.488 4.488 0 014.489 4.482 4.484 4.484 0 01-4.49 4.482m0-10.85a6.363 6.363 0 100 12.729 6.37 6.37 0 006.372-6.368 6.358 6.358 0 00-6.371-6.36' fill='%23FFF'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-position:50%;background-size:100%;overflow:hidden;text-indent:-9000px;padding:0!important;width:100%;height:100%;display:block}.dropdown-wrapper{cursor:pointer}.dropdown-wrapper .dropdown-title,.dropdown-wrapper .mobile-dropdown-title{display:block;font-size:.9rem;font-family:inherit;cursor:inherit;padding:inherit;line-height:1.4rem;background:transparent;border:none;font-weight:500;color:#2c3e50}.dropdown-wrapper .dropdown-title:hover,.dropdown-wrapper .mobile-dropdown-title:hover{border-color:transparent}.dropdown-wrapper .dropdown-title .arrow,.dropdown-wrapper .mobile-dropdown-title .arrow{vertical-align:middle;margin-top:-1px;margin-left:.4rem}.dropdown-wrapper .mobile-dropdown-title{display:none;font-weight:600}.dropdown-wrapper .mobile-dropdown-title font-size inherit:hover{color:#3eaf7c}.dropdown-wrapper .nav-dropdown .dropdown-item{color:inherit;line-height:1.7rem}.dropdown-wrapper .nav-dropdown .dropdown-item h4{margin:.45rem 0 0;border-top:1px solid #eee;padding:1rem 1.5rem .45rem 1.25rem}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem-wrapper{padding:0;list-style:none}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem-wrapper .dropdown-subitem{font-size:.9em}.dropdown-wrapper .nav-dropdown .dropdown-item a{display:block;line-height:1.7rem;position:relative;border-bottom:none;font-weight:400;margin-bottom:0;padding:0 1.5rem 0 1.25rem}.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active,.dropdown-wrapper .nav-dropdown .dropdown-item a:hover{color:#3eaf7c}.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active:after{content:"";width:0;height:0;border-left:5px solid #3eaf7c;border-top:3px solid transparent;border-bottom:3px solid transparent;position:absolute;top:calc(50% - 2px);left:9px}.dropdown-wrapper .nav-dropdown .dropdown-item:first-child h4{margin-top:0;padding-top:0;border-top:0}@media (max-width:719px){.dropdown-wrapper.open .dropdown-title{margin-bottom:.5rem}.dropdown-wrapper .dropdown-title{display:none}.dropdown-wrapper .mobile-dropdown-title{display:block}.dropdown-wrapper .nav-dropdown{transition:height .1s ease-out;overflow:hidden}.dropdown-wrapper .nav-dropdown .dropdown-item h4{border-top:0;margin-top:0;padding-top:0}.dropdown-wrapper .nav-dropdown .dropdown-item>a,.dropdown-wrapper .nav-dropdown .dropdown-item h4{font-size:15px;line-height:2rem}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem{font-size:14px;padding-left:1rem}}@media (min-width:719px){.dropdown-wrapper{height:1.8rem}.dropdown-wrapper.open .nav-dropdown,.dropdown-wrapper:hover .nav-dropdown{display:block!important}.dropdown-wrapper .nav-dropdown{display:none;height:auto!important;box-sizing:border-box;max-height:calc(100vh - 2.7rem);overflow-y:auto;position:absolute;top:100%;right:0;background-color:#fff;padding:.6rem 0;border:1px solid;border-color:#ddd #ddd #ccc;text-align:left;border-radius:.25rem;white-space:nowrap;margin:0}}.nav-links{display:inline-block}.nav-links a{line-height:1.4rem;color:inherit}.nav-links a.router-link-active,.nav-links a:hover{color:#3eaf7c}.nav-links .nav-item{position:relative;display:inline-block;margin-left:1.5rem;line-height:2rem}.nav-links .nav-item:first-child{margin-left:0}.nav-links .repo-link{margin-left:1.5rem}@media (max-width:719px){.nav-links .nav-item,.nav-links .repo-link{margin-left:0}}@media (min-width:719px){.nav-links a.router-link-active,.nav-links a:hover{color:#2c3e50}.nav-item>a:not(.external).router-link-active,.nav-item>a:not(.external):hover{margin-bottom:-2px;border-bottom:2px solid #46bd87}}.navbar{padding:.7rem 1.5rem;line-height:2.2rem}.navbar a,.navbar img,.navbar span{display:inline-block}.navbar .logo{height:2.2rem;min-width:2.2rem;margin-right:.8rem;vertical-align:top}.navbar .site-name{font-size:1.3rem;font-weight:600;color:#2c3e50;position:relative}.navbar .links{padding-left:1.5rem;box-sizing:border-box;background-color:#fff;white-space:nowrap;font-size:.9rem;position:absolute;right:1.5rem;top:.7rem;display:flex}.navbar .links .search-box{flex:0 0 auto;vertical-align:top}@media (max-width:719px){.navbar{padding-left:4rem}.navbar .can-hide{display:none}.navbar .links{padding-left:1.5rem}.navbar .site-name{width:calc(100vw - 9.4rem);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.page-edit{max-width:740px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.page-edit{padding:2rem}}@media (max-width:419px){.page-edit{padding:1.5rem}}.page-edit{padding-top:1rem;padding-bottom:1rem;overflow:auto}.page-edit .edit-link{display:inline-block}.page-edit .edit-link a{color:#4e6e8e;margin-right:.25rem}.page-edit .last-updated{float:right;font-size:.9em}.page-edit .last-updated .prefix{font-weight:500;color:#4e6e8e}.page-edit .last-updated .time{font-weight:400;color:#767676}@media (max-width:719px){.page-edit .edit-link{margin-bottom:.5rem}.page-edit .last-updated{font-size:.8em;float:none;text-align:left}}.page-nav{max-width:740px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.page-nav{padding:2rem}}@media (max-width:419px){.page-nav{padding:1.5rem}}.page-nav{padding-top:1rem;padding-bottom:0}.page-nav .inner{min-height:2rem;margin-top:0;border-top:1px solid #eaecef;padding-top:1rem;overflow:auto}.page-nav .next{float:right}.page{padding-bottom:2rem;display:block}.sidebar-group .sidebar-group{padding-left:.5em}.sidebar-group:not(.collapsable) .sidebar-heading:not(.clickable){cursor:auto;color:inherit}.sidebar-group.is-sub-group{padding-left:0}.sidebar-group.is-sub-group>.sidebar-heading{font-size:.95em;line-height:1.4;font-weight:400;padding-left:2rem}.sidebar-group.is-sub-group>.sidebar-heading:not(.clickable){opacity:.5}.sidebar-group.is-sub-group>.sidebar-group-items{padding-left:1rem}.sidebar-group.is-sub-group>.sidebar-group-items>li>.sidebar-link{font-size:.95em;border-left:none}.sidebar-group.depth-2>.sidebar-heading{border-left:none}.sidebar-heading{color:#2c3e50;transition:color .15s ease;cursor:pointer;font-size:1.1em;font-weight:700;padding:.35rem 1.5rem .35rem 1.25rem;width:100%;box-sizing:border-box;margin:0;border-left:.25rem solid transparent}.sidebar-heading.open,.sidebar-heading:hover{color:inherit}.sidebar-heading .arrow{position:relative;top:-.12em;left:.5em}.sidebar-heading.clickable.active{font-weight:600;color:#3eaf7c;border-left-color:#3eaf7c}.sidebar-heading.clickable:hover{color:#3eaf7c}.sidebar-group-items{transition:height .1s ease-out;font-size:.95em;overflow:hidden}.sidebar .sidebar-sub-headers{padding-left:1rem;font-size:.95em}a.sidebar-link{font-size:1em;font-weight:400;display:inline-block;color:#2c3e50;border-left:.25rem solid transparent;padding:.35rem 1rem .35rem 1.25rem;line-height:1.4;width:100%;box-sizing:border-box}a.sidebar-link:hover{color:#3eaf7c}a.sidebar-link.active{font-weight:600;color:#3eaf7c;border-left-color:#3eaf7c}.sidebar-group a.sidebar-link{padding-left:2rem}.sidebar-sub-headers a.sidebar-link{padding-top:.25rem;padding-bottom:.25rem;border-left:none}.sidebar-sub-headers a.sidebar-link.active{font-weight:500}.sidebar ul{padding:0;margin:0;list-style-type:none}.sidebar a{display:inline-block}.sidebar .nav-links{display:none;border-bottom:1px solid #eaecef;padding:.5rem 0 .75rem}.sidebar .nav-links a{font-weight:600}.sidebar .nav-links .nav-item,.sidebar .nav-links .repo-link{display:block;line-height:1.25rem;font-size:1.1em;padding:.5rem 0 .5rem 1.5rem}.sidebar>.sidebar-links{padding:1.5rem 0}.sidebar>.sidebar-links>li>a.sidebar-link{font-size:1.1em;line-height:1.7;font-weight:700}.sidebar>.sidebar-links>li:not(:first-child){margin-top:.75rem}@media (max-width:719px){.sidebar .nav-links{display:block}.sidebar .nav-links .dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active:after{top:calc(1rem - 2px)}.sidebar>.sidebar-links{padding:1rem 0}} \ No newline at end of file diff --git a/assets/img/search.83621669.svg b/assets/img/search.83621669.svg new file mode 100644 index 00000000..03d83913 --- /dev/null +++ b/assets/img/search.83621669.svg @@ -0,0 +1 @@ + diff --git a/assets/js/1.8dcf7571.js b/assets/js/1.8dcf7571.js new file mode 100644 index 00000000..f6289147 --- /dev/null +++ b/assets/js/1.8dcf7571.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1,12,13,19,20,21],{276:function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return r})),n.d(e,"i",(function(){return o})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"k",(function(){return p})),n.d(e,"l",(function(){return d})),n.d(e,"c",(function(){return m})),n.d(e,"j",(function(){return k}));n(116),n(14),n(20),n(62),n(40);const s=/#.*$/,i=/\.(md|html)$/,r=/\/$/,o=/^[a-z]+:/i;function a(t){return decodeURI(t).replace(s,"").replace(i,"")}function l(t){return o.test(t)}function u(t){return/^mailto:/.test(t)}function c(t){return/^tel:/.test(t)}function h(t){if(l(t))return t;const e=t.match(s),n=e?e[0]:"",i=a(t);return r.test(i)?t:i+".html"+n}function f(t,e){const n=decodeURIComponent(t.hash),i=function(t){const e=t.match(s);if(e)return e[0]}(e);if(i&&n!==i)return!1;return a(t.path)===a(e)}function p(t,e,n){if(l(e))return{type:"external",path:e};n&&(e=function(t,e,n){const s=t.charAt(0);if("/"===s)return t;if("?"===s||"#"===s)return e+t;const i=e.split("/");n&&i[i.length-1]||i.pop();const r=t.replace(/^\//,"").split("/");for(let t=0;tfunction t(e,n,s,i=1){if("string"==typeof e)return p(n,e,s);if(Array.isArray(e))return Object.assign(p(n,e[0],s),{title:e[1]});{const r=e.children||[];return 0===r.length&&e.path?Object.assign(p(n,e.path,s),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:r.map(e=>t(e,n,s,i+1)),collapsable:!1!==e.collapsable}}}(t,i,n)):[]}return[]}function g(t){const e=m(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function m(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function k(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},277:function(t,e,n){},278:function(t,e,n){"use strict";n.r(e);n(14),n(61);var s=n(276),i={name:"NavLink",props:{item:{required:!0}},computed:{link(){return Object(s.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(t=>t===this.link):"/"===this.link},isNonHttpURI(){return Object(s.g)(this.link)||Object(s.h)(this.link)},isBlankTarget(){return"_blank"===this.target},isInternal(){return!Object(s.f)(this.link)&&!this.isBlankTarget},target(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(s.f)(this.link)?"_blank":""},rel(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction(){this.$emit("focusout")}}},r=n(25),o=Object(r.a)(i,(function(){var t=this,e=t._self._c;return t.isInternal?e("RouterLink",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact},nativeOn:{focusout:function(e){return t.focusoutAction.apply(null,arguments)}}},[t._v("\n "+t._s(t.item.text)+"\n")]):e("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.target,rel:t.rel},on:{focusout:t.focusoutAction}},[t._v("\n "+t._s(t.item.text)+"\n "),t.isBlankTarget?e("OutboundLink"):t._e()],1)}),[],!1,null,null,null);e.default=o.exports},279:function(t,e,n){"use strict";n.r(e);var s={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},i=(n(280),n(25)),r=Object(i.a)(s,(function(){return(0,this._self._c)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)}),[],!1,null,null,null);e.default=r.exports},280:function(t,e,n){"use strict";n(277)},281:function(t,e,n){},284:function(t,e,n){},288:function(t,e,n){"use strict";n(281)},293:function(t,e,n){"use strict";n.r(e);var s=n(278),i=n(279),r=n(117),o=n.n(r),a={name:"DropdownLink",components:{NavLink:s.default,DropdownTransition:i.default},props:{item:{required:!0}},data:()=>({open:!1}),computed:{dropdownAriaLabel(){return this.item.ariaLabel||this.item.text}},watch:{$route(){this.open=!1}},methods:{setOpen(t){this.open=t},isLastItemOfArray:(t,e)=>o()(e)===t,handleDropdown(){0===event.detail&&this.setOpen(!this.open)}}},l=(n(288),n(25)),u=Object(l.a)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[e("button",{staticClass:"dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:t.handleDropdown}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow down"})]),t._v(" "),e("button",{staticClass:"mobile-dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:function(e){return t.setOpen(!t.open)}}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow",class:t.open?"down":"right"})]),t._v(" "),e("DropdownTransition",[e("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"nav-dropdown"},t._l(t.item.items,(function(n,s){return e("li",{key:n.link||s,staticClass:"dropdown-item"},["links"===n.type?e("h4",[t._v("\n "+t._s(n.text)+"\n ")]):t._e(),t._v(" "),"links"===n.type?e("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(n.items,(function(s){return e("li",{key:s.link,staticClass:"dropdown-subitem"},[e("NavLink",{attrs:{item:s},on:{focusout:function(e){t.isLastItemOfArray(s,n.items)&&t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0):e("NavLink",{attrs:{item:n},on:{focusout:function(e){t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0)])],1)}),[],!1,null,null,null);e.default=u.exports},296:function(t,e,n){"use strict";n(284)},297:function(t,e,n){},304:function(t,e,n){"use strict";n.r(e);n(14),n(40),n(61);var s=n(293),i=n(276),r={name:"NavLinks",components:{NavLink:n(278).default,DropdownLink:s.default},computed:{userNav(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav(){const{locales:t}=this.$site;if(t&&Object.keys(t).length>1){const e=this.$page.path,n=this.$router.options.routes,s=this.$site.themeConfig.locales||{},i={text:this.$themeLocaleConfig.selectText||"Languages",ariaLabel:this.$themeLocaleConfig.ariaLabel||"Select language",items:Object.keys(t).map(i=>{const r=t[i],o=s[i]&&s[i].label||r.lang;let a;return r.lang===this.$lang?a=e:(a=e.replace(this.$localeConfig.path,i),n.some(t=>t.path===a)||(a=i)),{text:o,link:a}})};return[...this.userNav,i]}return this.userNav},userLinks(){return(this.nav||[]).map(t=>Object.assign(Object(i.j)(t),{items:(t.items||[]).map(i.j)}))},repoLink(){const{repo:t}=this.$site.themeConfig;return t?/^https?:/.test(t)?t:"https://github.com/"+t:null},repoLabel(){if(!this.repoLink)return;if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;const t=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"];for(let n=0;n{let s=i()(e,"title","");return i()(e,"frontmatter.tags")&&(s+=" "+e.frontmatter.tags.join(" ")),n&&(s+=" "+n),o(t,s)};const o=(t,e)=>{const n=t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),s=new RegExp("[^\0-]"),i=t.split(/\s+/g).map(t=>t.trim()).filter(t=>!!t);if(s.test(t))return i.some(t=>e.toLowerCase().indexOf(t)>-1);{const s=t.endsWith(" ");return new RegExp(i.map((t,e)=>i.length!==e+1||s?`(?=.*\\b${n(t)}\\b)`:`(?=.*\\b${n(t)})`).join("")+".+","gi").test(e)}};var a={name:"SearchBox",data:()=>({query:"",focused:!1,focusIndex:0,placeholder:void 0}),computed:{showSuggestions(){return this.focused&&this.suggestions&&this.suggestions.length},suggestions(){const t=this.query.trim().toLowerCase();if(!t)return;const{pages:e}=this.$site,n=this.$site.themeConfig.searchMaxSuggestions||5,s=this.$localePath,i=[];for(let o=0;o=n);o++){const a=e[o];if(this.getPageLocalePath(a)===s&&this.isSearchable(a))if(r(t,a))i.push(a);else if(a.headers)for(let e=0;e=n);e++){const n=a.headers[e];n.title&&r(t,a,n.title)&&i.push(Object.assign({},a,{path:a.path+"#"+n.slug,header:n}))}}return i},alignRight(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},mounted(){this.placeholder=this.$site.themeConfig.searchPlaceholder||"",document.addEventListener("keydown",this.onHotkey)},beforeDestroy(){document.removeEventListener("keydown",this.onHotkey)},methods:{getPageLocalePath(t){for(const e in this.$site.locales||{})if("/"!==e&&0===t.path.indexOf(e))return e;return"/"},isSearchable(t){let e=null;return null===e||(e=Array.isArray(e)?e:new Array(e),e.filter(e=>t.path.match(e)).length>0)},onHotkey(t){t.srcElement===document.body&&["s","/"].includes(t.key)&&(this.$refs.input.focus(),t.preventDefault())},onUp(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown(){this.showSuggestions&&(this.focusIndex "+t._s(n.header.title))]):t._e()])])})),0):t._e()])}),[],!1,null,null,null).exports,c=n(322),h=n(304);function f(t,e){return t.ownerDocument.defaultView.getComputedStyle(t,null)[e]}var p={name:"Navbar",components:{SidebarButton:c.default,NavLinks:h.default,SearchBox:u,AlgoliaSearchBox:{}},data:()=>({linksWrapMaxWidth:null}),computed:{algolia(){return this.$themeLocaleConfig.algolia||this.$site.themeConfig.algolia||{}},isAlgoliaSearch(){return this.algolia&&this.algolia.apiKey&&this.algolia.indexName}},mounted(){const t=parseInt(f(this.$el,"paddingLeft"))+parseInt(f(this.$el,"paddingRight")),e=()=>{document.documentElement.clientWidth<719?this.linksWrapMaxWidth=null:this.linksWrapMaxWidth=this.$el.offsetWidth-t-(this.$refs.siteName&&this.$refs.siteName.offsetWidth||0)};e(),window.addEventListener("resize",e,!1)}},d=(n(328),Object(l.a)(p,(function(){var t=this,e=t._self._c;return e("header",{staticClass:"navbar"},[e("SidebarButton",{on:{"toggle-sidebar":function(e){return t.$emit("toggle-sidebar")}}}),t._v(" "),e("RouterLink",{staticClass:"home-link",attrs:{to:t.$localePath}},[t.$site.themeConfig.logo?e("img",{staticClass:"logo",attrs:{src:t.$withBase(t.$site.themeConfig.logo),alt:t.$siteTitle}}):t._e(),t._v(" "),t.$siteTitle?e("span",{ref:"siteName",staticClass:"site-name",class:{"can-hide":t.$site.themeConfig.logo}},[t._v(t._s(t.$siteTitle))]):t._e()]),t._v(" "),e("div",{staticClass:"links",style:t.linksWrapMaxWidth?{"max-width":t.linksWrapMaxWidth+"px"}:{}},[t.isAlgoliaSearch?e("AlgoliaSearchBox",{attrs:{options:t.algolia}}):!1!==t.$site.themeConfig.search&&!1!==t.$page.frontmatter.search?e("SearchBox"):t._e(),t._v(" "),e("NavLinks",{staticClass:"can-hide"})],1)],1)}),[],!1,null,null,null));e.default=d.exports}}]); \ No newline at end of file diff --git a/assets/js/10.c48ba95a.js b/assets/js/10.c48ba95a.js new file mode 100644 index 00000000..127ff620 --- /dev/null +++ b/assets/js/10.c48ba95a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[10,3,12,13,16,19,21],{276:function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return s})),n.d(e,"i",(function(){return a})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"b",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"j",(function(){return g}));n(116),n(14),n(20),n(62),n(40);const i=/#.*$/,r=/\.(md|html)$/,s=/\/$/,a=/^[a-z]+:/i;function o(t){return decodeURI(t).replace(i,"").replace(r,"")}function l(t){return a.test(t)}function u(t){return/^mailto:/.test(t)}function c(t){return/^tel:/.test(t)}function p(t){if(l(t))return t;const e=t.match(i),n=e?e[0]:"",r=o(t);return s.test(r)?t:r+".html"+n}function h(t,e){const n=decodeURIComponent(t.hash),r=function(t){const e=t.match(i);if(e)return e[0]}(e);if(r&&n!==r)return!1;return o(t.path)===o(e)}function d(t,e,n){if(l(e))return{type:"external",path:e};n&&(e=function(t,e,n){const i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;const r=e.split("/");n&&r[r.length-1]||r.pop();const s=t.replace(/^\//,"").split("/");for(let t=0;tfunction t(e,n,i,r=1){if("string"==typeof e)return d(n,e,i);if(Array.isArray(e))return Object.assign(d(n,e[0],i),{title:e[1]});{const s=e.children||[];return 0===s.length&&e.path?Object.assign(d(n,e.path,i),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:s.map(e=>t(e,n,i,r+1)),collapsable:!1!==e.collapsable}}}(t,r,n)):[]}return[]}function b(t){const e=m(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function m(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function g(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},277:function(t,e,n){},278:function(t,e,n){"use strict";n.r(e);n(14),n(61);var i=n(276),r={name:"NavLink",props:{item:{required:!0}},computed:{link(){return Object(i.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(t=>t===this.link):"/"===this.link},isNonHttpURI(){return Object(i.g)(this.link)||Object(i.h)(this.link)},isBlankTarget(){return"_blank"===this.target},isInternal(){return!Object(i.f)(this.link)&&!this.isBlankTarget},target(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(i.f)(this.link)?"_blank":""},rel(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction(){this.$emit("focusout")}}},s=n(25),a=Object(s.a)(r,(function(){var t=this,e=t._self._c;return t.isInternal?e("RouterLink",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact},nativeOn:{focusout:function(e){return t.focusoutAction.apply(null,arguments)}}},[t._v("\n "+t._s(t.item.text)+"\n")]):e("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.target,rel:t.rel},on:{focusout:t.focusoutAction}},[t._v("\n "+t._s(t.item.text)+"\n "),t.isBlankTarget?e("OutboundLink"):t._e()],1)}),[],!1,null,null,null);e.default=a.exports},279:function(t,e,n){"use strict";n.r(e);var i={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},r=(n(280),n(25)),s=Object(r.a)(i,(function(){return(0,this._self._c)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)}),[],!1,null,null,null);e.default=s.exports},280:function(t,e,n){"use strict";n(277)},281:function(t,e,n){},282:function(t,e,n){},284:function(t,e,n){},287:function(t,e,n){},288:function(t,e,n){"use strict";n(281)},289:function(t,e,n){"use strict";n(290)},290:function(t,e,n){"use strict";var i=n(9),r=n(41),s=n(6),a=n(1),o=n(21);i({target:"Iterator",proto:!0,real:!0},{find:function(t){a(this),s(t);var e=o(this),n=0;return r(e,(function(e,i){if(t(e,n++))return i(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},291:function(t,e,n){"use strict";n(282)},292:function(t,e,n){"use strict";n.r(e);n(14),n(61);var i=n(305),r=n(294),s=n(276);function a(t,e){if("group"===e.type){const n=e.path&&Object(s.e)(t,e.path),i=e.children.some(e=>"group"===e.type?a(t,e):"page"===e.type&&Object(s.e)(t,e.path));return n||i}return!1}var o={name:"SidebarLinks",components:{SidebarGroup:i.default,SidebarLink:r.default},props:["items","depth","sidebarDepth","initialOpenGroupIndex"],data(){return{openGroupIndex:this.initialOpenGroupIndex||0}},watch:{$route(){this.refreshIndex()}},created(){this.refreshIndex()},methods:{refreshIndex(){const t=function(t,e){for(let n=0;n-1&&(this.openGroupIndex=t)},toggleGroup(t){this.openGroupIndex=t===this.openGroupIndex?-1:t},isActive(t){return Object(s.e)(this.$route,t.regularPath)}}},l=n(25),u=Object(l.a)(o,(function(){var t=this,e=t._self._c;return t.items.length?e("ul",{staticClass:"sidebar-links"},t._l(t.items,(function(n,i){return e("li",{key:i},["group"===n.type?e("SidebarGroup",{attrs:{item:n,open:i===t.openGroupIndex,collapsable:n.collapsable||n.collapsible,depth:t.depth},on:{toggle:function(e){return t.toggleGroup(i)}}}):e("SidebarLink",{attrs:{"sidebar-depth":t.sidebarDepth,item:n}})],1)})),0):t._e()}),[],!1,null,null,null);e.default=u.exports},293:function(t,e,n){"use strict";n.r(e);var i=n(278),r=n(279),s=n(117),a=n.n(s),o={name:"DropdownLink",components:{NavLink:i.default,DropdownTransition:r.default},props:{item:{required:!0}},data:()=>({open:!1}),computed:{dropdownAriaLabel(){return this.item.ariaLabel||this.item.text}},watch:{$route(){this.open=!1}},methods:{setOpen(t){this.open=t},isLastItemOfArray:(t,e)=>a()(e)===t,handleDropdown(){0===event.detail&&this.setOpen(!this.open)}}},l=(n(288),n(25)),u=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[e("button",{staticClass:"dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:t.handleDropdown}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow down"})]),t._v(" "),e("button",{staticClass:"mobile-dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:function(e){return t.setOpen(!t.open)}}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow",class:t.open?"down":"right"})]),t._v(" "),e("DropdownTransition",[e("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"nav-dropdown"},t._l(t.item.items,(function(n,i){return e("li",{key:n.link||i,staticClass:"dropdown-item"},["links"===n.type?e("h4",[t._v("\n "+t._s(n.text)+"\n ")]):t._e(),t._v(" "),"links"===n.type?e("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(n.items,(function(i){return e("li",{key:i.link,staticClass:"dropdown-subitem"},[e("NavLink",{attrs:{item:i},on:{focusout:function(e){t.isLastItemOfArray(i,n.items)&&t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0):e("NavLink",{attrs:{item:n},on:{focusout:function(e){t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0)])],1)}),[],!1,null,null,null);e.default=u.exports},294:function(t,e,n){"use strict";n.r(e);n(14),n(289),n(40),n(61);var i=n(276);function r(t,e,n,i,r){const s={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:i,"sidebar-link":!0}};return r>2&&(s.style={"padding-left":r+"rem"}),t("RouterLink",s,n)}function s(t,e,n,a,o,l=1){return!e||l>o?null:t("ul",{class:"sidebar-sub-headers"},e.map(e=>{const u=Object(i.e)(a,n+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[r(t,n+"#"+e.slug,e.title,u,e.level-1),s(t,e.children,n,a,o,l+1)])}))}var a={functional:!0,props:["item","sidebarDepth"],render(t,{parent:{$page:e,$site:n,$route:a,$themeConfig:o,$themeLocaleConfig:l},props:{item:u,sidebarDepth:c}}){const p=Object(i.e)(a,u.path),h="auto"===u.type?p||u.children.some(t=>Object(i.e)(a,u.basePath+"#"+t.slug)):p,d="external"===u.type?function(t,e,n){return t("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[n,t("OutboundLink")])}(t,u.path,u.title||u.path):r(t,u.path,u.title||u.path,h),f=[e.frontmatter.sidebarDepth,c,l.sidebarDepth,o.sidebarDepth,1].find(t=>void 0!==t),b=l.displayAllHeaders||o.displayAllHeaders;if("auto"===u.type)return[d,s(t,u.children,u.basePath,a,f)];if((h||b)&&u.headers&&!i.d.test(u.path)){return[d,s(t,Object(i.c)(u.headers),u.path,a,f)]}return d}},o=(n(291),n(25)),l=Object(o.a)(a,void 0,void 0,!1,null,null,null);e.default=l.exports},296:function(t,e,n){"use strict";n(284)},302:function(t,e,n){"use strict";n(287)},303:function(t,e,n){},304:function(t,e,n){"use strict";n.r(e);n(14),n(40),n(61);var i=n(293),r=n(276),s={name:"NavLinks",components:{NavLink:n(278).default,DropdownLink:i.default},computed:{userNav(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav(){const{locales:t}=this.$site;if(t&&Object.keys(t).length>1){const e=this.$page.path,n=this.$router.options.routes,i=this.$site.themeConfig.locales||{},r={text:this.$themeLocaleConfig.selectText||"Languages",ariaLabel:this.$themeLocaleConfig.ariaLabel||"Select language",items:Object.keys(t).map(r=>{const s=t[r],a=i[r]&&i[r].label||s.lang;let o;return s.lang===this.$lang?o=e:(o=e.replace(this.$localeConfig.path,r),n.some(t=>t.path===o)||(o=r)),{text:a,link:o}})};return[...this.userNav,r]}return this.userNav},userLinks(){return(this.nav||[]).map(t=>Object.assign(Object(r.j)(t),{items:(t.items||[]).map(r.j)}))},repoLink(){const{repo:t}=this.$site.themeConfig;return t?/^https?:/.test(t)?t:"https://github.com/"+t:null},repoLabel(){if(!this.repoLink)return;if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;const t=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"];for(let n=0;nfunction t(e,n,r,i=1){if("string"==typeof e)return d(n,e,r);if(Array.isArray(e))return Object.assign(d(n,e[0],r),{title:e[1]});{const a=e.children||[];return 0===a.length&&e.path?Object.assign(d(n,e.path,r),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:a.map(e=>t(e,n,r,i+1)),collapsable:!1!==e.collapsable}}}(t,i,n)):[]}return[]}function g(t){const e=v(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function v(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function m(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},283:function(t,e){t.exports=function(t){return null==t}},285:function(t,e,n){},286:function(t,e,n){},298:function(t,e,n){"use strict";n(285)},299:function(t,e,n){var r=n(22),i=n(10),a=n(17);t.exports=function(t){return"string"==typeof t||!i(t)&&a(t)&&"[object String]"==r(t)}},300:function(t,e,n){"use strict";n(286)},301:function(t,e,n){},306:function(t,e,n){"use strict";n.r(e);var r=n(283),i=n.n(r),a=n(276),s={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const t=i()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:n="",docsBranch:r="master",docsRepo:a=e}=this.$site.themeConfig;return t&&a&&this.$page.relativePath?this.createEditLink(e,a,n,r,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(t,e,n,r,i){if(/bitbucket.org/.test(e)){return e.replace(a.a,"")+"/src"+`/${r}/`+(n?n.replace(a.a,"")+"/":"")+i+`?mode=edit&spa=0&at=${r}&fileviewer=file-view-default`}if(/gitlab.com/.test(e)){return e.replace(a.a,"")+"/-/edit"+`/${r}/`+(n?n.replace(a.a,"")+"/":"")+i}return(a.i.test(e)?e:"https://github.com/"+e).replace(a.a,"")+"/edit"+`/${r}/`+(n?n.replace(a.a,"")+"/":"")+i}}},o=(n(298),n(25)),u=Object(o.a)(s,(function(){var t=this,e=t._self._c;return e("footer",{staticClass:"page-edit"},[t.editLink?e("div",{staticClass:"edit-link"},[e("a",{attrs:{href:t.editLink,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.editLinkText))]),t._v(" "),e("OutboundLink")],1):t._e(),t._v(" "),t.lastUpdated?e("div",{staticClass:"last-updated"},[e("span",{staticClass:"prefix"},[t._v(t._s(t.lastUpdatedText)+":")]),t._v(" "),e("span",{staticClass:"time"},[t._v(t._s(t.lastUpdated))])]):t._e()])}),[],!1,null,null,null);e.default=u.exports},307:function(t,e,n){"use strict";n.r(e);n(116);var r=n(276),i=n(299),a=n.n(i),s=n(283),o=n.n(s),u={name:"PageNav",props:["sidebarItems"],computed:{prev(){return l(c.PREV,this)},next(){return l(c.NEXT,this)}}};const c={NEXT:{resolveLink:function(t,e){return p(t,e,1)},getThemeLinkConfig:({nextLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.next},PREV:{resolveLink:function(t,e){return p(t,e,-1)},getThemeLinkConfig:({prevLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.prev}};function l(t,{$themeConfig:e,$page:n,$route:i,$site:s,sidebarItems:u}){const{resolveLink:c,getThemeLinkConfig:l,getPageLinkConfig:p}=t,f=l(e),d=p(n),h=o()(d)?f:d;return!1===h?void 0:a()(h)?Object(r.k)(s.pages,h,i.path):c(n,u)}function p(t,e,n){const r=[];!function t(e,n){for(let r=0,i=e.length;rfunction t(e,n,i,r=1){if("string"==typeof e)return f(n,e,i);if(Array.isArray(e))return Object.assign(f(n,e[0],i),{title:e[1]});{const s=e.children||[];return 0===s.length&&e.path?Object.assign(f(n,e.path,i),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:s.map(e=>t(e,n,i,r+1)),collapsable:!1!==e.collapsable}}}(t,r,n)):[]}return[]}function m(t){const e=b(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function b(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function g(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},277:function(t,e,n){},278:function(t,e,n){"use strict";n.r(e);n(14),n(61);var i=n(276),r={name:"NavLink",props:{item:{required:!0}},computed:{link(){return Object(i.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(t=>t===this.link):"/"===this.link},isNonHttpURI(){return Object(i.g)(this.link)||Object(i.h)(this.link)},isBlankTarget(){return"_blank"===this.target},isInternal(){return!Object(i.f)(this.link)&&!this.isBlankTarget},target(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(i.f)(this.link)?"_blank":""},rel(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction(){this.$emit("focusout")}}},s=n(25),a=Object(s.a)(r,(function(){var t=this,e=t._self._c;return t.isInternal?e("RouterLink",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact},nativeOn:{focusout:function(e){return t.focusoutAction.apply(null,arguments)}}},[t._v("\n "+t._s(t.item.text)+"\n")]):e("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.target,rel:t.rel},on:{focusout:t.focusoutAction}},[t._v("\n "+t._s(t.item.text)+"\n "),t.isBlankTarget?e("OutboundLink"):t._e()],1)}),[],!1,null,null,null);e.default=a.exports},279:function(t,e,n){"use strict";n.r(e);var i={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},r=(n(280),n(25)),s=Object(r.a)(i,(function(){return(0,this._self._c)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)}),[],!1,null,null,null);e.default=s.exports},280:function(t,e,n){"use strict";n(277)},281:function(t,e,n){},284:function(t,e,n){},288:function(t,e,n){"use strict";n(281)},293:function(t,e,n){"use strict";n.r(e);var i=n(278),r=n(279),s=n(117),a=n.n(s),o={name:"DropdownLink",components:{NavLink:i.default,DropdownTransition:r.default},props:{item:{required:!0}},data:()=>({open:!1}),computed:{dropdownAriaLabel(){return this.item.ariaLabel||this.item.text}},watch:{$route(){this.open=!1}},methods:{setOpen(t){this.open=t},isLastItemOfArray:(t,e)=>a()(e)===t,handleDropdown(){0===event.detail&&this.setOpen(!this.open)}}},l=(n(288),n(25)),u=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[e("button",{staticClass:"dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:t.handleDropdown}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow down"})]),t._v(" "),e("button",{staticClass:"mobile-dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:function(e){return t.setOpen(!t.open)}}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow",class:t.open?"down":"right"})]),t._v(" "),e("DropdownTransition",[e("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"nav-dropdown"},t._l(t.item.items,(function(n,i){return e("li",{key:n.link||i,staticClass:"dropdown-item"},["links"===n.type?e("h4",[t._v("\n "+t._s(n.text)+"\n ")]):t._e(),t._v(" "),"links"===n.type?e("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(n.items,(function(i){return e("li",{key:i.link,staticClass:"dropdown-subitem"},[e("NavLink",{attrs:{item:i},on:{focusout:function(e){t.isLastItemOfArray(i,n.items)&&t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0):e("NavLink",{attrs:{item:n},on:{focusout:function(e){t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0)])],1)}),[],!1,null,null,null);e.default=u.exports},296:function(t,e,n){"use strict";n(284)},304:function(t,e,n){"use strict";n.r(e);n(14),n(40),n(61);var i=n(293),r=n(276),s={name:"NavLinks",components:{NavLink:n(278).default,DropdownLink:i.default},computed:{userNav(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav(){const{locales:t}=this.$site;if(t&&Object.keys(t).length>1){const e=this.$page.path,n=this.$router.options.routes,i=this.$site.themeConfig.locales||{},r={text:this.$themeLocaleConfig.selectText||"Languages",ariaLabel:this.$themeLocaleConfig.ariaLabel||"Select language",items:Object.keys(t).map(r=>{const s=t[r],a=i[r]&&i[r].label||s.lang;let o;return s.lang===this.$lang?o=e:(o=e.replace(this.$localeConfig.path,r),n.some(t=>t.path===o)||(o=r)),{text:a,link:o}})};return[...this.userNav,r]}return this.userNav},userLinks(){return(this.nav||[]).map(t=>Object.assign(Object(r.j)(t),{items:(t.items||[]).map(r.j)}))},repoLink(){const{repo:t}=this.$site.themeConfig;return t?/^https?:/.test(t)?t:"https://github.com/"+t:null},repoLabel(){if(!this.repoLink)return;if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;const t=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"];for(let n=0;nfunction t(e,n,i,r=1){if("string"==typeof e)return h(n,e,i);if(Array.isArray(e))return Object.assign(h(n,e[0],i),{title:e[1]});{const s=e.children||[];return 0===s.length&&e.path?Object.assign(h(n,e.path,i),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:s.map(e=>t(e,n,i,r+1)),collapsable:!1!==e.collapsable}}}(t,r,n)):[]}return[]}function m(t){const e=b(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function b(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function g(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},277:function(t,e,n){},278:function(t,e,n){"use strict";n.r(e);n(14),n(61);var i=n(276),r={name:"NavLink",props:{item:{required:!0}},computed:{link(){return Object(i.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(t=>t===this.link):"/"===this.link},isNonHttpURI(){return Object(i.g)(this.link)||Object(i.h)(this.link)},isBlankTarget(){return"_blank"===this.target},isInternal(){return!Object(i.f)(this.link)&&!this.isBlankTarget},target(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(i.f)(this.link)?"_blank":""},rel(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction(){this.$emit("focusout")}}},s=n(25),o=Object(s.a)(r,(function(){var t=this,e=t._self._c;return t.isInternal?e("RouterLink",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact},nativeOn:{focusout:function(e){return t.focusoutAction.apply(null,arguments)}}},[t._v("\n "+t._s(t.item.text)+"\n")]):e("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.target,rel:t.rel},on:{focusout:t.focusoutAction}},[t._v("\n "+t._s(t.item.text)+"\n "),t.isBlankTarget?e("OutboundLink"):t._e()],1)}),[],!1,null,null,null);e.default=o.exports},279:function(t,e,n){"use strict";n.r(e);var i={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},r=(n(280),n(25)),s=Object(r.a)(i,(function(){return(0,this._self._c)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)}),[],!1,null,null,null);e.default=s.exports},280:function(t,e,n){"use strict";n(277)},281:function(t,e,n){},288:function(t,e,n){"use strict";n(281)},293:function(t,e,n){"use strict";n.r(e);var i=n(278),r=n(279),s=n(117),o=n.n(s),a={name:"DropdownLink",components:{NavLink:i.default,DropdownTransition:r.default},props:{item:{required:!0}},data:()=>({open:!1}),computed:{dropdownAriaLabel(){return this.item.ariaLabel||this.item.text}},watch:{$route(){this.open=!1}},methods:{setOpen(t){this.open=t},isLastItemOfArray:(t,e)=>o()(e)===t,handleDropdown(){0===event.detail&&this.setOpen(!this.open)}}},l=(n(288),n(25)),u=Object(l.a)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[e("button",{staticClass:"dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:t.handleDropdown}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow down"})]),t._v(" "),e("button",{staticClass:"mobile-dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:function(e){return t.setOpen(!t.open)}}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow",class:t.open?"down":"right"})]),t._v(" "),e("DropdownTransition",[e("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"nav-dropdown"},t._l(t.item.items,(function(n,i){return e("li",{key:n.link||i,staticClass:"dropdown-item"},["links"===n.type?e("h4",[t._v("\n "+t._s(n.text)+"\n ")]):t._e(),t._v(" "),"links"===n.type?e("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(n.items,(function(i){return e("li",{key:i.link,staticClass:"dropdown-subitem"},[e("NavLink",{attrs:{item:i},on:{focusout:function(e){t.isLastItemOfArray(i,n.items)&&t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0):e("NavLink",{attrs:{item:n},on:{focusout:function(e){t.isLastItemOfArray(n,t.item.items)&&t.setOpen(!1)}}})],1)})),0)])],1)}),[],!1,null,null,null);e.default=u.exports}}]); \ No newline at end of file diff --git a/assets/js/14.d8ebd787.js b/assets/js/14.d8ebd787.js new file mode 100644 index 00000000..10c134e1 --- /dev/null +++ b/assets/js/14.d8ebd787.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{312:function(e,t,a){"use strict";var i=TypeError;e.exports=function(e,t){if(e({placeholder:void 0}),watch:{$lang(e){this.update(this.options,e)},options(e){this.update(e,this.$lang)}},mounted(){this.initialize(this.options,this.$lang),this.placeholder=this.$site.themeConfig.searchPlaceholder||""},methods:{initialize(e,t){Promise.all([Promise.all([a.e(0),a.e(9)]).then(a.t.bind(null,333,7)),Promise.all([a.e(0),a.e(9)]).then(a.t.bind(null,334,7))]).then(([a])=>{a=a.default;const{algoliaOptions:i={}}=e;a(Object.assign({},e,{inputSelector:"#algolia-search-input",algoliaOptions:{...i,facetFilters:["lang:"+t].concat(i.facetFilters||[])},handleSelected:(e,t,a)=>{const{pathname:i,hash:n}=new URL(a.url),r=i.replace(this.$site.base,"/"),s=decodeURIComponent(n);this.$router.push(`${r}${s}`)}}))})},update(e,t){this.$el.innerHTML='',this.initialize(e,t)}}},n=(a(326),a(25)),r=Object(n.a)(i,(function(){var e=this._self._c;return e("form",{staticClass:"algolia-search-wrapper search-box",attrs:{id:"search-form",role:"search"}},[e("input",{staticClass:"search-query",attrs:{id:"algolia-search-input",placeholder:this.placeholder}})])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/15.10b8d1ca.js b/assets/js/15.10b8d1ca.js new file mode 100644 index 00000000..45ddb77d --- /dev/null +++ b/assets/js/15.10b8d1ca.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{276:function(t,n,e){"use strict";e.d(n,"d",(function(){return r})),e.d(n,"a",(function(){return o})),e.d(n,"i",(function(){return a})),e.d(n,"f",(function(){return u})),e.d(n,"g",(function(){return c})),e.d(n,"h",(function(){return p})),e.d(n,"b",(function(){return l})),e.d(n,"e",(function(){return f})),e.d(n,"k",(function(){return h})),e.d(n,"l",(function(){return d})),e.d(n,"c",(function(){return v})),e.d(n,"j",(function(){return b}));e(116),e(14),e(20),e(62),e(40);const r=/#.*$/,i=/\.(md|html)$/,o=/\/$/,a=/^[a-z]+:/i;function s(t){return decodeURI(t).replace(r,"").replace(i,"")}function u(t){return a.test(t)}function c(t){return/^mailto:/.test(t)}function p(t){return/^tel:/.test(t)}function l(t){if(u(t))return t;const n=t.match(r),e=n?n[0]:"",i=s(t);return o.test(i)?t:i+".html"+e}function f(t,n){const e=decodeURIComponent(t.hash),i=function(t){const n=t.match(r);if(n)return n[0]}(n);if(i&&e!==i)return!1;return s(t.path)===s(n)}function h(t,n,e){if(u(n))return{type:"external",path:n};e&&(n=function(t,n,e){const r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return n+t;const i=n.split("/");e&&i[i.length-1]||i.pop();const o=t.replace(/^\//,"").split("/");for(let t=0;tfunction t(n,e,r,i=1){if("string"==typeof n)return h(e,n,r);if(Array.isArray(n))return Object.assign(h(e,n[0],r),{title:n[1]});{const o=n.children||[];return 0===o.length&&n.path?Object.assign(h(e,n.path,r),{title:n.title}):{type:"group",path:n.path,title:n.title,sidebarDepth:n.sidebarDepth,initialOpenGroupIndex:n.initialOpenGroupIndex,children:o.map(n=>t(n,e,r,i+1)),collapsable:!1!==n.collapsable}}}(t,i,e)):[]}return[]}function g(t){const n=v(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:n.map(n=>({type:"auto",title:n.title,basePath:t.path,path:t.path+"#"+n.slug,children:n.children||[]}))}]}function v(t){let n;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?n=t:n&&(n.children||(n.children=[])).push(t)}),t.filter(t=>2===t.level)}function b(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},283:function(t,n){t.exports=function(t){return null==t}},286:function(t,n,e){},299:function(t,n,e){var r=e(22),i=e(10),o=e(17);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},300:function(t,n,e){"use strict";e(286)},307:function(t,n,e){"use strict";e.r(n);e(116);var r=e(276),i=e(299),o=e.n(i),a=e(283),s=e.n(a),u={name:"PageNav",props:["sidebarItems"],computed:{prev(){return p(c.PREV,this)},next(){return p(c.NEXT,this)}}};const c={NEXT:{resolveLink:function(t,n){return l(t,n,1)},getThemeLinkConfig:({nextLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.next},PREV:{resolveLink:function(t,n){return l(t,n,-1)},getThemeLinkConfig:({prevLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.prev}};function p(t,{$themeConfig:n,$page:e,$route:i,$site:a,sidebarItems:u}){const{resolveLink:c,getThemeLinkConfig:p,getPageLinkConfig:l}=t,f=p(n),h=l(e),d=s()(h)?f:h;return!1===d?void 0:o()(d)?Object(r.k)(a.pages,d,i.path):c(e,u)}function l(t,n,e){const r=[];!function t(n,e){for(let r=0,i=n.length;rfunction t(e,n,r,i=1){if("string"==typeof e)return d(n,e,r);if(Array.isArray(e))return Object.assign(d(n,e[0],r),{title:e[1]});{const a=e.children||[];return 0===a.length&&e.path?Object.assign(d(n,e.path,r),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:a.map(e=>t(e,n,r,i+1)),collapsable:!1!==e.collapsable}}}(t,i,n)):[]}return[]}function b(t){const e=g(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function g(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function m(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},282:function(t,e,n){},289:function(t,e,n){"use strict";n(290)},290:function(t,e,n){"use strict";var r=n(9),i=n(41),a=n(6),s=n(1),u=n(21);r({target:"Iterator",proto:!0,real:!0},{find:function(t){s(this),a(t);var e=u(this),n=0;return i(e,(function(e,r){if(t(e,n++))return r(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},291:function(t,e,n){"use strict";n(282)},294:function(t,e,n){"use strict";n.r(e);n(14),n(289),n(40),n(61);var r=n(276);function i(t,e,n,r,i){const a={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:r,"sidebar-link":!0}};return i>2&&(a.style={"padding-left":i+"rem"}),t("RouterLink",a,n)}function a(t,e,n,s,u,o=1){return!e||o>u?null:t("ul",{class:"sidebar-sub-headers"},e.map(e=>{const c=Object(r.e)(s,n+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[i(t,n+"#"+e.slug,e.title,c,e.level-1),a(t,e.children,n,s,u,o+1)])}))}var s={functional:!0,props:["item","sidebarDepth"],render(t,{parent:{$page:e,$site:n,$route:s,$themeConfig:u,$themeLocaleConfig:o},props:{item:c,sidebarDepth:l}}){const p=Object(r.e)(s,c.path),f="auto"===c.type?p||c.children.some(t=>Object(r.e)(s,c.basePath+"#"+t.slug)):p,d="external"===c.type?function(t,e,n){return t("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[n,t("OutboundLink")])}(t,c.path,c.title||c.path):i(t,c.path,c.title||c.path,f),h=[e.frontmatter.sidebarDepth,l,o.sidebarDepth,u.sidebarDepth,1].find(t=>void 0!==t),b=o.displayAllHeaders||u.displayAllHeaders;if("auto"===c.type)return[d,a(t,c.children,c.basePath,s,h)];if((f||b)&&c.headers&&!r.d.test(c.path)){return[d,a(t,Object(r.c)(c.headers),c.path,s,h)]}return d}},u=(n(291),n(25)),o=Object(u.a)(s,void 0,void 0,!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/assets/js/17.e24ddb35.js b/assets/js/17.e24ddb35.js new file mode 100644 index 00000000..d1f6543a --- /dev/null +++ b/assets/js/17.e24ddb35.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[17,21],{276:function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"i",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"b",(function(){return f})),n.d(e,"e",(function(){return h})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return p})),n.d(e,"c",(function(){return g})),n.d(e,"j",(function(){return b}));n(116),n(14),n(20),n(62),n(40);const i=/#.*$/,r=/\.(md|html)$/,a=/\/$/,s=/^[a-z]+:/i;function o(t){return decodeURI(t).replace(i,"").replace(r,"")}function l(t){return s.test(t)}function u(t){return/^mailto:/.test(t)}function c(t){return/^tel:/.test(t)}function f(t){if(l(t))return t;const e=t.match(i),n=e?e[0]:"",r=o(t);return a.test(r)?t:r+".html"+n}function h(t,e){const n=decodeURIComponent(t.hash),r=function(t){const e=t.match(i);if(e)return e[0]}(e);if(r&&n!==r)return!1;return o(t.path)===o(e)}function d(t,e,n){if(l(e))return{type:"external",path:e};n&&(e=function(t,e,n){const i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;const r=e.split("/");n&&r[r.length-1]||r.pop();const a=t.replace(/^\//,"").split("/");for(let t=0;tfunction t(e,n,i,r=1){if("string"==typeof e)return d(n,e,i);if(Array.isArray(e))return Object.assign(d(n,e[0],i),{title:e[1]});{const a=e.children||[];return 0===a.length&&e.path?Object.assign(d(n,e.path,i),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:a.map(e=>t(e,n,i,r+1)),collapsable:!1!==e.collapsable}}}(t,r,n)):[]}return[]}function m(t){const e=g(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function g(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function b(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},278:function(t,e,n){"use strict";n.r(e);n(14),n(61);var i=n(276),r={name:"NavLink",props:{item:{required:!0}},computed:{link(){return Object(i.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(t=>t===this.link):"/"===this.link},isNonHttpURI(){return Object(i.g)(this.link)||Object(i.h)(this.link)},isBlankTarget(){return"_blank"===this.target},isInternal(){return!Object(i.f)(this.link)&&!this.isBlankTarget},target(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(i.f)(this.link)?"_blank":""},rel(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction(){this.$emit("focusout")}}},a=n(25),s=Object(a.a)(r,(function(){var t=this,e=t._self._c;return t.isInternal?e("RouterLink",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact},nativeOn:{focusout:function(e){return t.focusoutAction.apply(null,arguments)}}},[t._v("\n "+t._s(t.item.text)+"\n")]):e("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.target,rel:t.rel},on:{focusout:t.focusoutAction}},[t._v("\n "+t._s(t.item.text)+"\n "),t.isBlankTarget?e("OutboundLink"):t._e()],1)}),[],!1,null,null,null);e.default=s.exports},295:function(t,e,n){},308:function(t,e,n){"use strict";n(295)},319:function(t,e,n){"use strict";n.r(e);var i={name:"Home",components:{NavLink:n(278).default},computed:{data(){return this.$page.frontmatter},actionLink(){return{link:this.data.actionLink,text:this.data.actionText}}}},r=(n(308),n(25)),a=Object(r.a)(i,(function(){var t=this,e=t._self._c;return e("main",{staticClass:"home",attrs:{"aria-labelledby":null!==t.data.heroText?"main-title":null}},[e("header",{staticClass:"hero"},[t.data.heroImage?e("img",{attrs:{src:t.$withBase(t.data.heroImage),alt:t.data.heroAlt||"hero"}}):t._e(),t._v(" "),null!==t.data.heroText?e("h1",{attrs:{id:"main-title"}},[t._v("\n "+t._s(t.data.heroText||t.$title||"Hello")+"\n ")]):t._e(),t._v(" "),null!==t.data.tagline?e("p",{staticClass:"description"},[t._v("\n "+t._s(t.data.tagline||t.$description||"Welcome to your VuePress site")+"\n ")]):t._e(),t._v(" "),t.data.actionText&&t.data.actionLink?e("p",{staticClass:"action"},[e("NavLink",{staticClass:"action-button",attrs:{item:t.actionLink}})],1):t._e()]),t._v(" "),t.data.features&&t.data.features.length?e("div",{staticClass:"features"},t._l(t.data.features,(function(n,i){return e("div",{key:i,staticClass:"feature"},[e("h2",[t._v(t._s(n.title))]),t._v(" "),e("p",[t._v(t._s(n.details))])])})),0):t._e(),t._v(" "),e("Content",{staticClass:"theme-default-content custom"}),t._v(" "),t.data.footer?e("div",{staticClass:"footer"},[t._v("\n "+t._s(t.data.footer)+"\n ")]):e("Content",{staticClass:"footer",attrs:{"slot-key":"footer"}})],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/18.71ba5781.js b/assets/js/18.71ba5781.js new file mode 100644 index 00000000..f7843c6c --- /dev/null +++ b/assets/js/18.71ba5781.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{276:function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"i",(function(){return s})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return l})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"k",(function(){return f})),n.d(e,"l",(function(){return h})),n.d(e,"c",(function(){return m})),n.d(e,"j",(function(){return b}));n(116),n(14),n(20),n(62),n(40);const i=/#.*$/,r=/\.(md|html)$/,a=/\/$/,s=/^[a-z]+:/i;function o(t){return decodeURI(t).replace(i,"").replace(r,"")}function c(t){return s.test(t)}function u(t){return/^mailto:/.test(t)}function l(t){return/^tel:/.test(t)}function d(t){if(c(t))return t;const e=t.match(i),n=e?e[0]:"",r=o(t);return a.test(r)?t:r+".html"+n}function p(t,e){const n=decodeURIComponent(t.hash),r=function(t){const e=t.match(i);if(e)return e[0]}(e);if(r&&n!==r)return!1;return o(t.path)===o(e)}function f(t,e,n){if(c(e))return{type:"external",path:e};n&&(e=function(t,e,n){const i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;const r=e.split("/");n&&r[r.length-1]||r.pop();const a=t.replace(/^\//,"").split("/");for(let t=0;tfunction t(e,n,i,r=1){if("string"==typeof e)return f(n,e,i);if(Array.isArray(e))return Object.assign(f(n,e[0],i),{title:e[1]});{const a=e.children||[];return 0===a.length&&e.path?Object.assign(f(n,e.path,i),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:a.map(e=>t(e,n,i,r+1)),collapsable:!1!==e.collapsable}}}(t,r,n)):[]}return[]}function g(t){const e=m(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function m(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function b(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},283:function(t,e){t.exports=function(t){return null==t}},285:function(t,e,n){},298:function(t,e,n){"use strict";n(285)},306:function(t,e,n){"use strict";n.r(e);var i=n(283),r=n.n(i),a=n(276),s={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const t=r()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:n="",docsBranch:i="master",docsRepo:a=e}=this.$site.themeConfig;return t&&a&&this.$page.relativePath?this.createEditLink(e,a,n,i,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(t,e,n,i,r){if(/bitbucket.org/.test(e)){return e.replace(a.a,"")+"/src"+`/${i}/`+(n?n.replace(a.a,"")+"/":"")+r+`?mode=edit&spa=0&at=${i}&fileviewer=file-view-default`}if(/gitlab.com/.test(e)){return e.replace(a.a,"")+"/-/edit"+`/${i}/`+(n?n.replace(a.a,"")+"/":"")+r}return(a.i.test(e)?e:"https://github.com/"+e).replace(a.a,"")+"/edit"+`/${i}/`+(n?n.replace(a.a,"")+"/":"")+r}}},o=(n(298),n(25)),c=Object(o.a)(s,(function(){var t=this,e=t._self._c;return e("footer",{staticClass:"page-edit"},[t.editLink?e("div",{staticClass:"edit-link"},[e("a",{attrs:{href:t.editLink,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.editLinkText))]),t._v(" "),e("OutboundLink")],1):t._e(),t._v(" "),t.lastUpdated?e("div",{staticClass:"last-updated"},[e("span",{staticClass:"prefix"},[t._v(t._s(t.lastUpdatedText)+":")]),t._v(" "),e("span",{staticClass:"time"},[t._v(t._s(t.lastUpdated))])]):t._e()])}),[],!1,null,null,null);e.default=c.exports}}]); \ No newline at end of file diff --git a/assets/js/19.7375c917.js b/assets/js/19.7375c917.js new file mode 100644 index 00000000..32ab5a20 --- /dev/null +++ b/assets/js/19.7375c917.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{277:function(t,e,n){},279:function(t,e,n){"use strict";n.r(e);var s={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},i=(n(280),n(25)),o=Object(i.a)(s,(function(){return(0,this._self._c)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)}),[],!1,null,null,null);e.default=o.exports},280:function(t,e,n){"use strict";n(277)}}]); \ No newline at end of file diff --git a/assets/js/2.81c74c22.js b/assets/js/2.81c74c22.js new file mode 100644 index 00000000..604c5e3d --- /dev/null +++ b/assets/js/2.81c74c22.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{282:function(t,e,a){},283:function(t,e){t.exports=function(t){return null==t}},285:function(t,e,a){},286:function(t,e,a){},287:function(t,e,a){},289:function(t,e,a){"use strict";a(290)},290:function(t,e,a){"use strict";var n=a(9),s=a(41),i=a(6),r=a(1),o=a(21);n({target:"Iterator",proto:!0,real:!0},{find:function(t){r(this),i(t);var e=o(this),a=0;return s(e,(function(e,n){if(t(e,a++))return n(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},291:function(t,e,a){"use strict";a(282)},292:function(t,e,a){"use strict";a.r(e);a(14),a(61);var n=a(305),s=a(294),i=a(276);function r(t,e){if("group"===e.type){const a=e.path&&Object(i.e)(t,e.path),n=e.children.some(e=>"group"===e.type?r(t,e):"page"===e.type&&Object(i.e)(t,e.path));return a||n}return!1}var o={name:"SidebarLinks",components:{SidebarGroup:n.default,SidebarLink:s.default},props:["items","depth","sidebarDepth","initialOpenGroupIndex"],data(){return{openGroupIndex:this.initialOpenGroupIndex||0}},watch:{$route(){this.refreshIndex()}},created(){this.refreshIndex()},methods:{refreshIndex(){const t=function(t,e){for(let a=0;a-1&&(this.openGroupIndex=t)},toggleGroup(t){this.openGroupIndex=t===this.openGroupIndex?-1:t},isActive(t){return Object(i.e)(this.$route,t.regularPath)}}},l=a(25),u=Object(l.a)(o,(function(){var t=this,e=t._self._c;return t.items.length?e("ul",{staticClass:"sidebar-links"},t._l(t.items,(function(a,n){return e("li",{key:n},["group"===a.type?e("SidebarGroup",{attrs:{item:a,open:n===t.openGroupIndex,collapsable:a.collapsable||a.collapsible,depth:t.depth},on:{toggle:function(e){return t.toggleGroup(n)}}}):e("SidebarLink",{attrs:{"sidebar-depth":t.sidebarDepth,item:a}})],1)})),0):t._e()}),[],!1,null,null,null);e.default=u.exports},294:function(t,e,a){"use strict";a.r(e);a(14),a(289),a(40),a(61);var n=a(276);function s(t,e,a,n,s){const i={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:n,"sidebar-link":!0}};return s>2&&(i.style={"padding-left":s+"rem"}),t("RouterLink",i,a)}function i(t,e,a,r,o,l=1){return!e||l>o?null:t("ul",{class:"sidebar-sub-headers"},e.map(e=>{const u=Object(n.e)(r,a+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[s(t,a+"#"+e.slug,e.title,u,e.level-1),i(t,e.children,a,r,o,l+1)])}))}var r={functional:!0,props:["item","sidebarDepth"],render(t,{parent:{$page:e,$site:a,$route:r,$themeConfig:o,$themeLocaleConfig:l},props:{item:u,sidebarDepth:c}}){const p=Object(n.e)(r,u.path),d="auto"===u.type?p||u.children.some(t=>Object(n.e)(r,u.basePath+"#"+t.slug)):p,h="external"===u.type?function(t,e,a){return t("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[a,t("OutboundLink")])}(t,u.path,u.title||u.path):s(t,u.path,u.title||u.path,d),f=[e.frontmatter.sidebarDepth,c,l.sidebarDepth,o.sidebarDepth,1].find(t=>void 0!==t),b=l.displayAllHeaders||o.displayAllHeaders;if("auto"===u.type)return[h,i(t,u.children,u.basePath,r,f)];if((d||b)&&u.headers&&!n.d.test(u.path)){return[h,i(t,Object(n.c)(u.headers),u.path,r,f)]}return h}},o=(a(291),a(25)),l=Object(o.a)(r,void 0,void 0,!1,null,null,null);e.default=l.exports},295:function(t,e,a){},298:function(t,e,a){"use strict";a(285)},299:function(t,e,a){var n=a(22),s=a(10),i=a(17);t.exports=function(t){return"string"==typeof t||!s(t)&&i(t)&&"[object String]"==n(t)}},300:function(t,e,a){"use strict";a(286)},301:function(t,e,a){},302:function(t,e,a){"use strict";a(287)},303:function(t,e,a){},305:function(t,e,a){"use strict";a.r(e);var n=a(276),s={name:"SidebarGroup",components:{DropdownTransition:a(279).default},props:["item","open","collapsable","depth"],beforeCreate(){this.$options.components.SidebarLinks=a(292).default},methods:{isActive:n.e}},i=(a(302),a(25)),r=Object(i.a)(s,(function(){var t=this,e=t._self._c;return e("section",{staticClass:"sidebar-group",class:[{collapsable:t.collapsable,"is-sub-group":0!==t.depth},"depth-"+t.depth]},[t.item.path?e("RouterLink",{staticClass:"sidebar-heading clickable",class:{open:t.open,active:t.isActive(t.$route,t.item.path)},attrs:{to:t.item.path},nativeOn:{click:function(e){return t.$emit("toggle")}}},[e("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?e("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e()]):e("p",{staticClass:"sidebar-heading",class:{open:t.open},on:{click:function(e){return t.$emit("toggle")}}},[e("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?e("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e()]),t._v(" "),e("DropdownTransition",[t.open||!t.collapsable?e("SidebarLinks",{staticClass:"sidebar-group-items",attrs:{items:t.item.children,"sidebar-depth":t.item.sidebarDepth,"initial-open-group-index":t.item.initialOpenGroupIndex,depth:t.depth+1}}):t._e()],1)],1)}),[],!1,null,null,null);e.default=r.exports},306:function(t,e,a){"use strict";a.r(e);var n=a(283),s=a.n(n),i=a(276),r={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const t=s()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:a="",docsBranch:n="master",docsRepo:i=e}=this.$site.themeConfig;return t&&i&&this.$page.relativePath?this.createEditLink(e,i,a,n,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(t,e,a,n,s){if(/bitbucket.org/.test(e)){return e.replace(i.a,"")+"/src"+`/${n}/`+(a?a.replace(i.a,"")+"/":"")+s+`?mode=edit&spa=0&at=${n}&fileviewer=file-view-default`}if(/gitlab.com/.test(e)){return e.replace(i.a,"")+"/-/edit"+`/${n}/`+(a?a.replace(i.a,"")+"/":"")+s}return(i.i.test(e)?e:"https://github.com/"+e).replace(i.a,"")+"/edit"+`/${n}/`+(a?a.replace(i.a,"")+"/":"")+s}}},o=(a(298),a(25)),l=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("footer",{staticClass:"page-edit"},[t.editLink?e("div",{staticClass:"edit-link"},[e("a",{attrs:{href:t.editLink,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.editLinkText))]),t._v(" "),e("OutboundLink")],1):t._e(),t._v(" "),t.lastUpdated?e("div",{staticClass:"last-updated"},[e("span",{staticClass:"prefix"},[t._v(t._s(t.lastUpdatedText)+":")]),t._v(" "),e("span",{staticClass:"time"},[t._v(t._s(t.lastUpdated))])]):t._e()])}),[],!1,null,null,null);e.default=l.exports},307:function(t,e,a){"use strict";a.r(e);a(116);var n=a(276),s=a(299),i=a.n(s),r=a(283),o=a.n(r),l={name:"PageNav",props:["sidebarItems"],computed:{prev(){return c(u.PREV,this)},next(){return c(u.NEXT,this)}}};const u={NEXT:{resolveLink:function(t,e){return p(t,e,1)},getThemeLinkConfig:({nextLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.next},PREV:{resolveLink:function(t,e){return p(t,e,-1)},getThemeLinkConfig:({prevLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.prev}};function c(t,{$themeConfig:e,$page:a,$route:s,$site:r,sidebarItems:l}){const{resolveLink:u,getThemeLinkConfig:c,getPageLinkConfig:p}=t,d=c(e),h=p(a),f=o()(h)?d:h;return!1===f?void 0:i()(f)?Object(n.k)(r.pages,f,s.path):u(a,l)}function p(t,e,a){const n=[];!function t(e,a){for(let n=0,s=e.length;n({isSidebarOpen:!1}),computed:{shouldShowNavbar(){const{themeConfig:t}=this.$site,{frontmatter:e}=this.$page;return!1!==e.navbar&&!1!==t.navbar&&(this.$title||t.logo||t.repo||t.nav||this.$themeLocaleConfig.nav)},shouldShowSidebar(){const{frontmatter:t}=this.$page;return!t.home&&!1!==t.sidebar&&this.sidebarItems.length},sidebarItems(){return Object(o.l)(this.$page,this.$page.regularPath,this.$site,this.$localePath)},pageClasses(){const t=this.$page.frontmatter.pageClass;return[{"no-navbar":!this.shouldShowNavbar,"sidebar-open":this.isSidebarOpen,"no-sidebar":!this.shouldShowSidebar},t]}},mounted(){this.$router.afterEach(()=>{this.isSidebarOpen=!1})},methods:{toggleSidebar(t){this.isSidebarOpen="boolean"==typeof t?t:!this.isSidebarOpen,this.$emit("toggle-sidebar",this.isSidebarOpen)},onTouchStart(t){this.touchStart={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}},onTouchEnd(t){const e=t.changedTouches[0].clientX-this.touchStart.x,a=t.changedTouches[0].clientY-this.touchStart.y;Math.abs(e)>Math.abs(a)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))}}},u=a(25),c=Object(u.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"theme-container",class:t.pageClasses,on:{touchstart:t.onTouchStart,touchend:t.onTouchEnd}},[t.shouldShowNavbar?e("Navbar",{on:{"toggle-sidebar":t.toggleSidebar}}):t._e(),t._v(" "),e("div",{staticClass:"sidebar-mask",on:{click:function(e){return t.toggleSidebar(!1)}}}),t._v(" "),e("Sidebar",{attrs:{items:t.sidebarItems},on:{"toggle-sidebar":t.toggleSidebar},scopedSlots:t._u([{key:"top",fn:function(){return[t._t("sidebar-top")]},proxy:!0},{key:"bottom",fn:function(){return[t._t("sidebar-bottom")]},proxy:!0}],null,!0)}),t._v(" "),t.$page.frontmatter.home?e("Home"):e("Page",{attrs:{"sidebar-items":t.sidebarItems},scopedSlots:t._u([{key:"top",fn:function(){return[t._t("page-top")]},proxy:!0},{key:"bottom",fn:function(){return[t._t("page-bottom")]},proxy:!0}],null,!0)})],1)}),[],!1,null,null,null);e.default=c.exports}}]); \ No newline at end of file diff --git a/assets/js/20.c235ed00.js b/assets/js/20.c235ed00.js new file mode 100644 index 00000000..811bdc3d --- /dev/null +++ b/assets/js/20.c235ed00.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{297:function(t,c,n){},309:function(t,c,n){"use strict";n(297)},322:function(t,c,n){"use strict";n.r(c);n(309);var i=n(25),s=Object(i.a)({},(function(){var t=this,c=t._self._c;return c("div",{staticClass:"sidebar-button",on:{click:function(c){return t.$emit("toggle-sidebar")}}},[c("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",viewBox:"0 0 448 512"}},[c("path",{attrs:{fill:"currentColor",d:"M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"}})])])}),[],!1,null,null,null);c.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/21.b0fe5a4b.js b/assets/js/21.b0fe5a4b.js new file mode 100644 index 00000000..bb4eaa1d --- /dev/null +++ b/assets/js/21.b0fe5a4b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{276:function(t,n,e){"use strict";e.d(n,"d",(function(){return r})),e.d(n,"a",(function(){return s})),e.d(n,"i",(function(){return u})),e.d(n,"f",(function(){return a})),e.d(n,"g",(function(){return l})),e.d(n,"h",(function(){return c})),e.d(n,"b",(function(){return f})),e.d(n,"e",(function(){return h})),e.d(n,"k",(function(){return p})),e.d(n,"l",(function(){return d})),e.d(n,"c",(function(){return b})),e.d(n,"j",(function(){return m}));e(116),e(14),e(20),e(62),e(40);const r=/#.*$/,i=/\.(md|html)$/,s=/\/$/,u=/^[a-z]+:/i;function o(t){return decodeURI(t).replace(r,"").replace(i,"")}function a(t){return u.test(t)}function l(t){return/^mailto:/.test(t)}function c(t){return/^tel:/.test(t)}function f(t){if(a(t))return t;const n=t.match(r),e=n?n[0]:"",i=o(t);return s.test(i)?t:i+".html"+e}function h(t,n){const e=decodeURIComponent(t.hash),i=function(t){const n=t.match(r);if(n)return n[0]}(n);if(i&&e!==i)return!1;return o(t.path)===o(n)}function p(t,n,e){if(a(n))return{type:"external",path:n};e&&(n=function(t,n,e){const r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return n+t;const i=n.split("/");e&&i[i.length-1]||i.pop();const s=t.replace(/^\//,"").split("/");for(let t=0;tfunction t(n,e,r,i=1){if("string"==typeof n)return p(e,n,r);if(Array.isArray(n))return Object.assign(p(e,n[0],r),{title:n[1]});{const s=n.children||[];return 0===s.length&&n.path?Object.assign(p(e,n.path,r),{title:n.title}):{type:"group",path:n.path,title:n.title,sidebarDepth:n.sidebarDepth,initialOpenGroupIndex:n.initialOpenGroupIndex,children:s.map(n=>t(n,e,r,i+1)),collapsable:!1!==n.collapsable}}}(t,i,e)):[]}return[]}function g(t){const n=b(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:n.map(n=>({type:"auto",title:n.title,basePath:t.path,path:t.path+"#"+n.slug,children:n.children||[]}))}]}function b(t){let n;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?n=t:n&&(n.children||(n.children=[])).push(t)}),t.filter(t=>2===t.level)}function m(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},278:function(t,n,e){"use strict";e.r(n);e(14),e(61);var r=e(276),i={name:"NavLink",props:{item:{required:!0}},computed:{link(){return Object(r.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(t=>t===this.link):"/"===this.link},isNonHttpURI(){return Object(r.g)(this.link)||Object(r.h)(this.link)},isBlankTarget(){return"_blank"===this.target},isInternal(){return!Object(r.f)(this.link)&&!this.isBlankTarget},target(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(r.f)(this.link)?"_blank":""},rel(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction(){this.$emit("focusout")}}},s=e(25),u=Object(s.a)(i,(function(){var t=this,n=t._self._c;return t.isInternal?n("RouterLink",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact},nativeOn:{focusout:function(n){return t.focusoutAction.apply(null,arguments)}}},[t._v("\n "+t._s(t.item.text)+"\n")]):n("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.target,rel:t.rel},on:{focusout:t.focusoutAction}},[t._v("\n "+t._s(t.item.text)+"\n "),t.isBlankTarget?n("OutboundLink"):t._e()],1)}),[],!1,null,null,null);n.default=u.exports}}]); \ No newline at end of file diff --git a/assets/js/22.03c42777.js b/assets/js/22.03c42777.js new file mode 100644 index 00000000..423dc161 --- /dev/null +++ b/assets/js/22.03c42777.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{341:function(t,s,a){"use strict";a.r(s);var n=a(25),e=Object(n.a)({},(function(){var t=this,s=t._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("div",{attrs:{align:"center"}},[s("img",{attrs:{src:"https://raw.githubusercontent.com/litesvm/litesvm/master/logo.jpeg",width:"50%",height:"50%"}})]),t._v(" "),s("hr"),t._v(" "),s("h1",{attrs:{id:"litesvm-nodejs"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#litesvm-nodejs"}},[t._v("#")]),t._v(" LiteSVM (NodeJS)")]),t._v(" "),s("p",[t._v("This is the NodeJS wrapper for "),s("a",{attrs:{href:"https://github.com/LiteSVM/litesvm",target:"_blank",rel:"noopener noreferrer"}},[t._v("LiteSVM"),s("OutboundLink")],1),t._v(". It brings best-in-class Solana testing\nto NodeJS, giving you a powerful, fast and ergonomic way to test Solana programs in TS/JS.")]),t._v(" "),s("p",[t._v("For a standard testing workflow, LiteSVM offers an experience superior to "),s("code",[t._v("solana-test-validator")]),t._v(" (slow, unwieldy)\nand "),s("code",[t._v("bankrun")]),t._v(" (reasonably fast and powerful, but inherits a lot of warts from "),s("code",[t._v("solana-program-test")]),t._v(").")]),t._v(" "),s("h2",{attrs:{id:"minimal-example"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#minimal-example"}},[t._v("#")]),t._v(" Minimal example")]),t._v(" "),s("p",[t._v("This example just transfers lamports from Alice to Bob without loading\nany programs of our own. It uses the "),s("a",{attrs:{href:"https://jestjs.io/",target:"_blank",rel:"noopener noreferrer"}},[t._v("jest"),s("OutboundLink")],1),t._v("\ntest runner but you can use any test runner you like.")]),t._v(" "),s("div",{staticClass:"language-ts extra-class"},[s("pre",{pre:!0,attrs:{class:"language-ts"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" LiteSVM "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"litesvm"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\tPublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tTransaction"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tSystemProgram"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tKeypair"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("LAMPORTS_PER_SOL")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"@solana/web3.js"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("test")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"one transfer"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" svm "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("LiteSVM")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" payer "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Keypair")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("airdrop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("payer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("publicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("BigInt")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("LAMPORTS_PER_SOL")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" receiver "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" PublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("unique")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" blockhash "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("latestBlockhash")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" transferLamports "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1_000_000n")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ixs "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n\t\tSystemProgram"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("transfer")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\t\tfromPubkey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" payer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("publicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\ttoPubkey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" receiver"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tlamports"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" transferLamports"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" tx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Transaction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("recentBlockhash "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" blockhash"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("ixs"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sign")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("payer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sendTransaction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" balanceAfter "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getBalance")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("receiver"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("expect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("balanceAfter"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBe")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("transferLamports"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Note: by default the "),s("code",[t._v("LiteSVM")]),t._v(" instance includes some core programs such as\nthe System Program and SPL Token.")]),t._v(" "),s("h2",{attrs:{id:"installation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[t._v("#")]),t._v(" Installation")]),t._v(" "),s("div",{staticClass:"language- extra-class"},[s("pre",{pre:!0,attrs:{class:"language-text"}},[s("code",[t._v("yarn add litesvm\n")])])]),s("h2",{attrs:{id:"contributing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[t._v("#")]),t._v(" Contributing")]),t._v(" "),s("p",[t._v("Make sure you have Yarn and the Rust toolchain installed.")]),t._v(" "),s("p",[t._v("Then run "),s("code",[t._v("yarn")]),t._v(" to install deps, run "),s("code",[t._v("yarn build")]),t._v(" to build the binary and "),s("code",[t._v("yarn test")]),t._v(" to run the tests.")])])}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/23.1051b941.js b/assets/js/23.1051b941.js new file mode 100644 index 00000000..08cb4203 --- /dev/null +++ b/assets/js/23.1051b941.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{342:function(t,a,s){"use strict";s.r(a);var e=s(25),r=Object(e.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"api-reference-v0-1-0"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#api-reference-v0-1-0"}},[t._v("#")]),t._v(" API Reference - v0.1.0")]),t._v(" "),a("h2",{attrs:{id:"table-of-contents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),a("h3",{attrs:{id:"enumerations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enumerations"}},[t._v("#")]),t._v(" Enumerations")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/enums/SlotHistoryCheck.html"}},[t._v("SlotHistoryCheck")])],1)]),t._v(" "),a("h3",{attrs:{id:"classes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#classes"}},[t._v("#")]),t._v(" Classes")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/classes/Account.html"}},[t._v("Account")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/Clock.html"}},[t._v("Clock")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html"}},[t._v("ComputeBudget")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html"}},[t._v("EpochRewards")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html"}},[t._v("EpochSchedule")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html"}},[t._v("FailedTransactionMetadata")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html"}},[t._v("FeatureSet")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/InnerInstruction.html"}},[t._v("InnerInstruction")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[t._v("LiteSVM")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[t._v("Rent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/SimulatedTransactionInfo.html"}},[t._v("SimulatedTransactionInfo")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/SlotHash.html"}},[t._v("SlotHash")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html"}},[t._v("SlotHistory")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/StakeHistory.html"}},[t._v("StakeHistory")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/StakeHistoryEntry.html"}},[t._v("StakeHistoryEntry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[t._v("TransactionMetadata")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/TransactionReturnData.html"}},[t._v("TransactionReturnData")])],1)]),t._v(" "),a("h3",{attrs:{id:"type-aliases"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-aliases"}},[t._v("#")]),t._v(" Type Aliases")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/#accountinfobytes"}},[t._v("AccountInfoBytes")])],1)]),t._v(" "),a("h2",{attrs:{id:"type-aliases-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-aliases-2"}},[t._v("#")]),t._v(" Type Aliases")]),t._v(" "),a("h3",{attrs:{id:"accountinfobytes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#accountinfobytes"}},[t._v("#")]),t._v(" AccountInfoBytes")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AccountInfoBytes")]),t._v(": "),a("code",[t._v("AccountInfo")]),t._v("<"),a("code",[t._v("Uint8Array")]),t._v(">")]),t._v(" "),a("h4",{attrs:{id:"defined-in"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:43"),a("OutboundLink")],1)])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/24.5d18ab9f.js b/assets/js/24.5d18ab9f.js new file mode 100644 index 00000000..b79629a4 --- /dev/null +++ b/assets/js/24.5d18ab9f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{343:function(t,e,r){"use strict";r.r(e);var a=r(25),s=Object(a.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-account"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-account"}},[t._v("#")]),t._v(" Class: Account")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/Account.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"methods"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/Account.html#data"}},[t._v("data")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Account.html#executable"}},[t._v("executable")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Account.html#lamports"}},[t._v("lamports")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Account.html#owner"}},[t._v("owner")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Account.html#rentepoch"}},[t._v("rentEpoch")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Account.html#tostring"}},[t._v("toString")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new Account")]),t._v("("),e("code",[t._v("lamports")]),t._v(", "),e("code",[t._v("data")]),t._v(", "),e("code",[t._v("owner")]),t._v(", "),e("code",[t._v("executable")]),t._v(", "),e("code",[t._v("rentEpoch")]),t._v(")")]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("lamports")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("data")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Uint8Array")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("owner")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Uint8Array")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("executable")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("rentEpoch")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L103",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:103"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"methods-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("h3",{attrs:{id:"data"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("data")]),t._v("(): "),e("code",[t._v("Uint8Array")])]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("Uint8Array")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L105",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:105"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"executable"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#executable"}},[t._v("#")]),t._v(" executable")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("executable")]),t._v("(): "),e("code",[t._v("boolean")])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("boolean")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L107",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:107"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"lamports"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#lamports"}},[t._v("#")]),t._v(" lamports")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("lamports")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L104",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:104"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"owner"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#owner"}},[t._v("#")]),t._v(" owner")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("owner")]),t._v("(): "),e("code",[t._v("Uint8Array")])]),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("Uint8Array")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L106",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:106"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"rentepoch"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#rentepoch"}},[t._v("#")]),t._v(" rentEpoch")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("rentEpoch")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L108",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:108"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"tostring"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("toString")]),t._v("(): "),e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"returns-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L109",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:109"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/25.16470e4d.js b/assets/js/25.16470e4d.js new file mode 100644 index 00000000..b5a24959 --- /dev/null +++ b/assets/js/25.16470e4d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{345:function(t,e,a){"use strict";a.r(e);var r=a(25),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-clock"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-clock"}},[t._v("#")]),t._v(" Class: Clock")]),t._v(" "),e("p",[t._v("A representation of network time.")]),t._v(" "),e("p",[t._v("All members of "),e("code",[t._v("Clock")]),t._v(" start from 0 upon network boot.")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/Clock.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"accessors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/Clock.html#epoch"}},[t._v("epoch")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Clock.html#epochstarttimestamp"}},[t._v("epochStartTimestamp")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Clock.html#leaderscheduleepoch"}},[t._v("leaderScheduleEpoch")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Clock.html#slot"}},[t._v("slot")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Clock.html#unixtimestamp"}},[t._v("unixTimestamp")])],1)]),t._v(" "),e("h3",{attrs:{id:"methods"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/Clock.html#tostring"}},[t._v("toString")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new Clock")]),t._v("("),e("code",[t._v("slot")]),t._v(", "),e("code",[t._v("epochStartTimestamp")]),t._v(", "),e("code",[t._v("epoch")]),t._v(", "),e("code",[t._v("leaderScheduleEpoch")]),t._v(", "),e("code",[t._v("unixTimestamp")]),t._v(")")]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("slot")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The current Slot.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("epochStartTimestamp")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The timestamp of the first "),e("code",[t._v("Slot")]),t._v(" in this "),e("code",[t._v("Epoch")]),t._v(".")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("epoch")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The current epoch.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("leaderScheduleEpoch")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The future Epoch for which the leader schedule has most recently been calculated.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("unixTimestamp")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The approximate real world time of the current slot.")])])])]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L224",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:224"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"accessors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors-2"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("h3",{attrs:{id:"epoch"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#epoch"}},[t._v("#")]),t._v(" epoch")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("epoch")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The current epoch.")]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L229",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:229"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("epoch")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L230",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:230"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"epochstarttimestamp"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#epochstarttimestamp"}},[t._v("#")]),t._v(" epochStartTimestamp")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("epochStartTimestamp")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The timestamp of the first "),e("code",[t._v("Slot")]),t._v(" in this "),e("code",[t._v("Epoch")]),t._v(".")]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L232",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:232"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("epochStartTimestamp")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L233",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:233"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"leaderscheduleepoch"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#leaderscheduleepoch"}},[t._v("#")]),t._v(" leaderScheduleEpoch")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("leaderScheduleEpoch")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The future Epoch for which the leader schedule has most recently been calculated.")]),t._v(" "),e("h4",{attrs:{id:"returns-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L235",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:235"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("leaderScheduleEpoch")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L236",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:236"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"slot"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#slot"}},[t._v("#")]),t._v(" slot")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("slot")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The current Slot.")]),t._v(" "),e("h4",{attrs:{id:"returns-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L226",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:226"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("slot")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-8"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-9"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L227",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:227"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"unixtimestamp"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#unixtimestamp"}},[t._v("#")]),t._v(" unixTimestamp")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("unixTimestamp")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The approximate real world time of the current slot.")]),t._v(" "),e("h4",{attrs:{id:"returns-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-9"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-10"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L238",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:238"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("unixTimestamp")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-10"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-11"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L239",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:239"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"methods-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("h3",{attrs:{id:"tostring"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("toString")]),t._v("(): "),e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"returns-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-11"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-12"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L240",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:240"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/26.0cc35a65.js b/assets/js/26.0cc35a65.js new file mode 100644 index 00000000..0d7e5a70 --- /dev/null +++ b/assets/js/26.0cc35a65.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{344:function(t,e,a){"use strict";a.r(e);var r=a(25),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-computebudget"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-computebudget"}},[t._v("#")]),t._v(" Class: ComputeBudget")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"accessors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#altbn128additioncost"}},[t._v("altBn128AdditionCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#altbn128g1compress"}},[t._v("altBn128G1Compress")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#altbn128g1decompress"}},[t._v("altBn128G1Decompress")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#altbn128g2compress"}},[t._v("altBn128G2Compress")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#altbn128g2decompress"}},[t._v("altBn128G2Decompress")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#altbn128multiplicationcost"}},[t._v("altBn128MultiplicationCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#altbn128pairingonepaircostfirst"}},[t._v("altBn128PairingOnePairCostFirst")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#altbn128pairingonepaircostother"}},[t._v("altBn128PairingOnePairCostOther")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#bigmodularexponentiationbasecost"}},[t._v("bigModularExponentiationBaseCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#bigmodularexponentiationcostdivisor"}},[t._v("bigModularExponentiationCostDivisor")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#computeunitlimit"}},[t._v("computeUnitLimit")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#cpibytesperunit"}},[t._v("cpiBytesPerUnit")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#createprogramaddressunits"}},[t._v("createProgramAddressUnits")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519edwardsaddcost"}},[t._v("curve25519EdwardsAddCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519edwardsmsmbasecost"}},[t._v("curve25519EdwardsMsmBaseCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519edwardsmsmincrementalcost"}},[t._v("curve25519EdwardsMsmIncrementalCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519edwardsmultiplycost"}},[t._v("curve25519EdwardsMultiplyCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519edwardssubtractcost"}},[t._v("curve25519EdwardsSubtractCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519edwardsvalidatepointcost"}},[t._v("curve25519EdwardsValidatePointCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519ristrettoaddcost"}},[t._v("curve25519RistrettoAddCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519ristrettomsmbasecost"}},[t._v("curve25519RistrettoMsmBaseCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519ristrettomsmincrementalcost"}},[t._v("curve25519RistrettoMsmIncrementalCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519ristrettomultiplycost"}},[t._v("curve25519RistrettoMultiplyCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519ristrettosubtractcost"}},[t._v("curve25519RistrettoSubtractCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#curve25519ristrettovalidatepointcost"}},[t._v("curve25519RistrettoValidatePointCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#getremainingcomputeunitscost"}},[t._v("getRemainingComputeUnitsCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#heapcost"}},[t._v("heapCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#heapsize"}},[t._v("heapSize")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#invokeunits"}},[t._v("invokeUnits")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#log64units"}},[t._v("log64Units")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#logpubkeyunits"}},[t._v("logPubkeyUnits")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#maxcalldepth"}},[t._v("maxCallDepth")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#maxcpiinstructionsize"}},[t._v("maxCpiInstructionSize")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#maxinstructionstackdepth"}},[t._v("maxInstructionStackDepth")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#maxinstructiontracelength"}},[t._v("maxInstructionTraceLength")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#memopbasecost"}},[t._v("memOpBaseCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#poseidoncostcoefficienta"}},[t._v("poseidonCostCoefficientA")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#poseidoncostcoefficientc"}},[t._v("poseidonCostCoefficientC")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#secp256k1recovercost"}},[t._v("secp256K1RecoverCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#sha256basecost"}},[t._v("sha256BaseCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#sha256bytecost"}},[t._v("sha256ByteCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#sha256maxslices"}},[t._v("sha256MaxSlices")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#stackframesize"}},[t._v("stackFrameSize")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#syscallbasecost"}},[t._v("syscallBaseCost")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html#sysvarbasecost"}},[t._v("sysvarBaseCost")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new ComputeBudget")]),t._v("()")]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L112",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:112"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"accessors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors-2"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("h3",{attrs:{id:"altbn128additioncost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#altbn128additioncost"}},[t._v("#")]),t._v(" altBn128AdditionCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("altBn128AdditionCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L178",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:178"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("altBn128AdditionCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L177",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:177"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"altbn128g1compress"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#altbn128g1compress"}},[t._v("#")]),t._v(" altBn128G1Compress")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("altBn128G1Compress")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L196",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:196"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("altBn128G1Compress")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L195",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:195"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"altbn128g1decompress"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#altbn128g1decompress"}},[t._v("#")]),t._v(" altBn128G1Decompress")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("altBn128G1Decompress")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L198",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:198"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("altBn128G1Decompress")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L197",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:197"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"altbn128g2compress"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#altbn128g2compress"}},[t._v("#")]),t._v(" altBn128G2Compress")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("altBn128G2Compress")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L200",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:200"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("altBn128G2Compress")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-8"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-9"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L199",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:199"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"altbn128g2decompress"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#altbn128g2decompress"}},[t._v("#")]),t._v(" altBn128G2Decompress")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("altBn128G2Decompress")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-9"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-10"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L202",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:202"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("altBn128G2Decompress")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-10"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-11"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L201",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:201"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"altbn128multiplicationcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#altbn128multiplicationcost"}},[t._v("#")]),t._v(" altBn128MultiplicationCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("altBn128MultiplicationCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-11"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-12"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L180",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:180"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("altBn128MultiplicationCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-12"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-13"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L179",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:179"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"altbn128pairingonepaircostfirst"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#altbn128pairingonepaircostfirst"}},[t._v("#")]),t._v(" altBn128PairingOnePairCostFirst")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("altBn128PairingOnePairCostFirst")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-13"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-14"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L182",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:182"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("altBn128PairingOnePairCostFirst")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-14"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-15"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-15"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L181",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:181"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"altbn128pairingonepaircostother"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#altbn128pairingonepaircostother"}},[t._v("#")]),t._v(" altBn128PairingOnePairCostOther")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("altBn128PairingOnePairCostOther")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-15"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-15"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-16"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-16"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L184",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:184"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("altBn128PairingOnePairCostOther")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-16"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-16"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-17"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-17"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L183",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:183"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"bigmodularexponentiationbasecost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bigmodularexponentiationbasecost"}},[t._v("#")]),t._v(" bigModularExponentiationBaseCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("bigModularExponentiationBaseCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-17"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-17"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-18"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-18"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L186",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:186"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("bigModularExponentiationBaseCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-18"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-18"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-19"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-19"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L185",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:185"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"bigmodularexponentiationcostdivisor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bigmodularexponentiationcostdivisor"}},[t._v("#")]),t._v(" bigModularExponentiationCostDivisor")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("bigModularExponentiationCostDivisor")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-19"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-19"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-20"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-20"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L188",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:188"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("bigModularExponentiationCostDivisor")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-20"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-20"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-21"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-21"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L187",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:187"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"computeunitlimit"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#computeunitlimit"}},[t._v("#")]),t._v(" computeUnitLimit")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("computeUnitLimit")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-21"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-21"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-22"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-22"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L113",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:113"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("computeUnitLimit")]),t._v("("),e("code",[t._v("limit")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("limit")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-22"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-22"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-23"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-23"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L114",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:114"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"cpibytesperunit"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#cpibytesperunit"}},[t._v("#")]),t._v(" cpiBytesPerUnit")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("cpiBytesPerUnit")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-23"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-23"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-24"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-24"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L140",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:140"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("cpiBytesPerUnit")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-24"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-24"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-25"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-25"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L139",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:139"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"createprogramaddressunits"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#createprogramaddressunits"}},[t._v("#")]),t._v(" createProgramAddressUnits")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("createProgramAddressUnits")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-25"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-25"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-26"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-26"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L118",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:118"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("createProgramAddressUnits")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-26"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-26"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-27"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-27"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L117",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:117"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519edwardsaddcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519edwardsaddcost"}},[t._v("#")]),t._v(" curve25519EdwardsAddCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519EdwardsAddCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-27"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-27"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-28"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-28"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L150",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:150"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519EdwardsAddCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-28"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-28"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-29"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-29"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L149",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:149"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519edwardsmsmbasecost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519edwardsmsmbasecost"}},[t._v("#")]),t._v(" curve25519EdwardsMsmBaseCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519EdwardsMsmBaseCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-29"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-29"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-30"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-30"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L156",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:156"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519EdwardsMsmBaseCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-15"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-30"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-30"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-31"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-31"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L155",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:155"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519edwardsmsmincrementalcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519edwardsmsmincrementalcost"}},[t._v("#")]),t._v(" curve25519EdwardsMsmIncrementalCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519EdwardsMsmIncrementalCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-31"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-31"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-32"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-32"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L158",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:158"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519EdwardsMsmIncrementalCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-16"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-32"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-32"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-33"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-33"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L157",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:157"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519edwardsmultiplycost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519edwardsmultiplycost"}},[t._v("#")]),t._v(" curve25519EdwardsMultiplyCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519EdwardsMultiplyCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-33"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-33"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-34"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-34"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L154",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:154"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519EdwardsMultiplyCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-17"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-34"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-34"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-35"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-35"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L153",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:153"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519edwardssubtractcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519edwardssubtractcost"}},[t._v("#")]),t._v(" curve25519EdwardsSubtractCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519EdwardsSubtractCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-35"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-35"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-36"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-36"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L152",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:152"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519EdwardsSubtractCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-18"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-36"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-36"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-37"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-37"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L151",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:151"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519edwardsvalidatepointcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519edwardsvalidatepointcost"}},[t._v("#")]),t._v(" curve25519EdwardsValidatePointCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519EdwardsValidatePointCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-37"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-37"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-38"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-38"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L148",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:148"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519EdwardsValidatePointCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-19"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-38"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-38"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-39"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-39"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L147",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:147"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519ristrettoaddcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519ristrettoaddcost"}},[t._v("#")]),t._v(" curve25519RistrettoAddCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519RistrettoAddCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-39"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-39"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-40"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-40"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L162",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:162"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519RistrettoAddCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-20"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-40"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-40"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-41"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-41"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L161",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:161"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519ristrettomsmbasecost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519ristrettomsmbasecost"}},[t._v("#")]),t._v(" curve25519RistrettoMsmBaseCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519RistrettoMsmBaseCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-41"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-41"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-42"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-42"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L168",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:168"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519RistrettoMsmBaseCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-21"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-42"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-42"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-43"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-43"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L167",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:167"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519ristrettomsmincrementalcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519ristrettomsmincrementalcost"}},[t._v("#")]),t._v(" curve25519RistrettoMsmIncrementalCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519RistrettoMsmIncrementalCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-43"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-43"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-44"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-44"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L170",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:170"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519RistrettoMsmIncrementalCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-22"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-44"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-44"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-45"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-45"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L169",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:169"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519ristrettomultiplycost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519ristrettomultiplycost"}},[t._v("#")]),t._v(" curve25519RistrettoMultiplyCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519RistrettoMultiplyCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-45"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-45"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-46"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-46"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L166",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:166"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519RistrettoMultiplyCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-23"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-46"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-46"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-47"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-47"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L165",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:165"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519ristrettosubtractcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519ristrettosubtractcost"}},[t._v("#")]),t._v(" curve25519RistrettoSubtractCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519RistrettoSubtractCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-47"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-47"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-48"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-48"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L164",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:164"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519RistrettoSubtractCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-24"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-48"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-48"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-49"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-49"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L163",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:163"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"curve25519ristrettovalidatepointcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#curve25519ristrettovalidatepointcost"}},[t._v("#")]),t._v(" curve25519RistrettoValidatePointCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("curve25519RistrettoValidatePointCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-49"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-49"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-50"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-50"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L160",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:160"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("curve25519RistrettoValidatePointCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-25"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-50"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-50"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-51"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-51"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L159",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:159"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getremainingcomputeunitscost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getremainingcomputeunitscost"}},[t._v("#")]),t._v(" getRemainingComputeUnitsCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("getRemainingComputeUnitsCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-51"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-51"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-52"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-52"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L194",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:194"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("getRemainingComputeUnitsCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-26"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-52"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-52"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-53"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-53"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L193",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:193"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"heapcost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#heapcost"}},[t._v("#")]),t._v(" heapCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("heapCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-53"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-53"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-54"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-54"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L174",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:174"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("heapCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-27"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-54"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-54"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-55"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-55"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L173",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:173"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"heapsize"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#heapsize"}},[t._v("#")]),t._v(" heapSize")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("heapSize")]),t._v("(): "),e("code",[t._v("number")])]),t._v(" "),e("h4",{attrs:{id:"returns-55"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-55"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("number")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-56"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-56"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L172",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:172"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("heapSize")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-28"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-28"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-56"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-56"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-57"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-57"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L171",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:171"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"invokeunits"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#invokeunits"}},[t._v("#")]),t._v(" invokeUnits")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("invokeUnits")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-57"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-57"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-58"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-58"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L120",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:120"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("invokeUnits")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-29"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-29"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-58"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-58"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-59"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-59"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L119",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:119"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"log64units"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#log64units"}},[t._v("#")]),t._v(" log64Units")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("log64Units")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-59"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-59"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-60"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-60"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L116",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:116"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("log64Units")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-30"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-30"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-60"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-60"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-61"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-61"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L115",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:115"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"logpubkeyunits"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#logpubkeyunits"}},[t._v("#")]),t._v(" logPubkeyUnits")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("logPubkeyUnits")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-61"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-61"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-62"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-62"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L136",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:136"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("logPubkeyUnits")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-31"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-31"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-62"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-62"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-63"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-63"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L135",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:135"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"maxcalldepth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#maxcalldepth"}},[t._v("#")]),t._v(" maxCallDepth")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("maxCallDepth")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-63"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-63"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-64"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-64"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L132",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:132"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("maxCallDepth")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-32"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-32"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-64"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-64"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-65"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-65"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L131",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:131"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"maxcpiinstructionsize"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#maxcpiinstructionsize"}},[t._v("#")]),t._v(" maxCpiInstructionSize")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("maxCpiInstructionSize")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-65"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-65"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-66"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-66"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L138",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:138"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("maxCpiInstructionSize")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-33"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-33"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-66"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-66"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-67"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-67"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L137",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:137"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"maxinstructionstackdepth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#maxinstructionstackdepth"}},[t._v("#")]),t._v(" maxInstructionStackDepth")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("maxInstructionStackDepth")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-67"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-67"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-68"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-68"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L122",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:122"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("maxInstructionStackDepth")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-34"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-34"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-68"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-68"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-69"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-69"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L121",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:121"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"maxinstructiontracelength"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#maxinstructiontracelength"}},[t._v("#")]),t._v(" maxInstructionTraceLength")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("maxInstructionTraceLength")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-69"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-69"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-70"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-70"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L124",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:124"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("maxInstructionTraceLength")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-35"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-35"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-70"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-70"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-71"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-71"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L123",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:123"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"memopbasecost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#memopbasecost"}},[t._v("#")]),t._v(" memOpBaseCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("memOpBaseCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-71"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-71"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-72"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-72"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L176",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:176"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("memOpBaseCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-36"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-36"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-72"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-72"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-73"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-73"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L175",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:175"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"poseidoncostcoefficienta"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#poseidoncostcoefficienta"}},[t._v("#")]),t._v(" poseidonCostCoefficientA")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("poseidonCostCoefficientA")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-73"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-73"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-74"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-74"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L190",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:190"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("poseidonCostCoefficientA")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-37"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-37"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-74"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-74"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-75"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-75"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L189",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:189"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"poseidoncostcoefficientc"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#poseidoncostcoefficientc"}},[t._v("#")]),t._v(" poseidonCostCoefficientC")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("poseidonCostCoefficientC")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-75"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-75"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-76"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-76"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L192",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:192"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("poseidonCostCoefficientC")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-38"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-38"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-76"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-76"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-77"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-77"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L191",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:191"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"secp256k1recovercost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#secp256k1recovercost"}},[t._v("#")]),t._v(" secp256K1RecoverCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("secp256K1RecoverCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-77"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-77"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-78"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-78"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L144",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:144"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("secp256K1RecoverCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-39"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-39"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-78"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-78"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-79"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-79"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L143",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:143"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"sha256basecost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sha256basecost"}},[t._v("#")]),t._v(" sha256BaseCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("sha256BaseCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-79"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-79"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-80"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-80"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L126",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:126"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("sha256BaseCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-40"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-40"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-80"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-80"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-81"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-81"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L125",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:125"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"sha256bytecost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sha256bytecost"}},[t._v("#")]),t._v(" sha256ByteCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("sha256ByteCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-81"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-81"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-82"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-82"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L128",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:128"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("sha256ByteCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-41"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-41"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-82"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-82"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-83"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-83"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L127",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:127"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"sha256maxslices"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sha256maxslices"}},[t._v("#")]),t._v(" sha256MaxSlices")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("sha256MaxSlices")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-83"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-83"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-84"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-84"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L130",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:130"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("sha256MaxSlices")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-42"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-42"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-84"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-84"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-85"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-85"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L129",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:129"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"stackframesize"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#stackframesize"}},[t._v("#")]),t._v(" stackFrameSize")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("stackFrameSize")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-85"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-85"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-86"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-86"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L134",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:134"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("stackFrameSize")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-43"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-43"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-86"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-86"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-87"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-87"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L133",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:133"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"syscallbasecost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#syscallbasecost"}},[t._v("#")]),t._v(" syscallBaseCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("syscallBaseCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-87"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-87"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-88"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-88"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L146",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:146"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("syscallBaseCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-44"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-44"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-88"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-88"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-89"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-89"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L145",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:145"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"sysvarbasecost"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sysvarbasecost"}},[t._v("#")]),t._v(" sysvarBaseCost")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("sysvarBaseCost")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-89"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-89"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-90"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-90"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L142",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:142"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("sysvarBaseCost")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-45"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-45"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-90"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-90"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-91"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-91"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L141",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:141"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/27.e2ea4b56.js b/assets/js/27.e2ea4b56.js new file mode 100644 index 00000000..e61a2dbd --- /dev/null +++ b/assets/js/27.e2ea4b56.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{347:function(t,e,a){"use strict";a.r(e);var r=a(25),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-epochrewards"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-epochrewards"}},[t._v("#")]),t._v(" Class: EpochRewards")]),t._v(" "),e("p",[t._v("A type to hold data for the EpochRewards sysvar.")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"accessors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html#active"}},[t._v("active")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html#distributedrewards"}},[t._v("distributedRewards")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html#distributionstartingblockheight"}},[t._v("distributionStartingBlockHeight")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html#numpartitions"}},[t._v("numPartitions")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html#parentblockhash"}},[t._v("parentBlockhash")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html#totalpoints"}},[t._v("totalPoints")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html#totalrewards"}},[t._v("totalRewards")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new EpochRewards")]),t._v("("),e("code",[t._v("distributionStartingBlockHeight")]),t._v(", "),e("code",[t._v("numPartitions")]),t._v(", "),e("code",[t._v("parentBlockhash")]),t._v(", "),e("code",[t._v("totalPoints")]),t._v(", "),e("code",[t._v("totalRewards")]),t._v(", "),e("code",[t._v("distributedRewards")]),t._v(", "),e("code",[t._v("active")]),t._v(")")]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("distributionStartingBlockHeight")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("numPartitions")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("parentBlockhash")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("totalPoints")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("totalRewards")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("distributedRewards")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("active")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Whether the rewards period (including calculation and distribution) is active")])])])]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L253",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:253"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"accessors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors-2"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("h3",{attrs:{id:"active"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("active")]),t._v("(): "),e("code",[t._v("boolean")])]),t._v(" "),e("p",[t._v("Whether the rewards period (including calculation and distribution) is\nactive")]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("boolean")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L293",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:293"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("active")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L294",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:294"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"distributedrewards"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#distributedrewards"}},[t._v("#")]),t._v(" distributedRewards")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("distributedRewards")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The rewards currently distributed for the current epoch, in lamports")]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L287",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:287"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("distributedRewards")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L288",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:288"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"distributionstartingblockheight"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#distributionstartingblockheight"}},[t._v("#")]),t._v(" distributionStartingBlockHeight")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("distributionStartingBlockHeight")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The starting block height of the rewards distribution in the current\nepoch")]),t._v(" "),e("h4",{attrs:{id:"returns-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L258",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:258"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("distributionStartingBlockHeight")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L259",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:259"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"numpartitions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#numpartitions"}},[t._v("#")]),t._v(" numPartitions")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("numPartitions")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("Number of partitions in the rewards distribution in the current epoch,\nused to generate an EpochRewardsHasher")]),t._v(" "),e("h4",{attrs:{id:"returns-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L264",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:264"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("numPartitions")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-8"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-9"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L265",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:265"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"parentblockhash"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parentblockhash"}},[t._v("#")]),t._v(" parentBlockhash")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("parentBlockhash")]),t._v("(): "),e("code",[t._v("string")])]),t._v(" "),e("p",[t._v("The blockhash of the parent block of the first block in the epoch, used\nto seed an EpochRewardsHasher")]),t._v(" "),e("h4",{attrs:{id:"returns-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-9"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-10"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L270",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:270"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("parentBlockhash")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-10"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-11"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L271",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:271"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"totalpoints"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#totalpoints"}},[t._v("#")]),t._v(" totalPoints")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("totalPoints")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The total rewards points calculated for the current epoch, where points\nequals the sum of (delegated stake * credits observed) for all\ndelegations")]),t._v(" "),e("h4",{attrs:{id:"returns-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-11"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-12"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L277",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:277"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("totalPoints")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-12"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-13"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L278",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:278"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"totalrewards"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#totalrewards"}},[t._v("#")]),t._v(" totalRewards")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("totalRewards")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The total rewards calculated for the current epoch. This may be greater\nthan the total "),e("code",[t._v("distributed_rewards")]),t._v(" at the end of the rewards period,\ndue to rounding and inability to deliver rewards smaller than 1 lamport.")]),t._v(" "),e("h4",{attrs:{id:"returns-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-13"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-14"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L284",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:284"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("totalRewards")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-14"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-15"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-15"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L285",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:285"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/28.b83fe56c.js b/assets/js/28.b83fe56c.js new file mode 100644 index 00000000..2c3e7f77 --- /dev/null +++ b/assets/js/28.b83fe56c.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{348:function(t,e,a){"use strict";a.r(e);var r=a(25),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-epochschedule"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-epochschedule"}},[t._v("#")]),t._v(" Class: EpochSchedule")]),t._v(" "),e("p",[t._v("Configuration for epochs and slots.")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"accessors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html#firstnormalepoch"}},[t._v("firstNormalEpoch")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html#firstnormalslot"}},[t._v("firstNormalSlot")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html#leaderscheduleslotoffset"}},[t._v("leaderScheduleSlotOffset")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html#slotsperepoch"}},[t._v("slotsPerEpoch")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html#warmup"}},[t._v("warmup")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new EpochSchedule")]),t._v("("),e("code",[t._v("slotsPerEpoch")]),t._v(", "),e("code",[t._v("leaderScheduleSlotOffset")]),t._v(", "),e("code",[t._v("warmup")]),t._v(", "),e("code",[t._v("firstNormalEpoch")]),t._v(", "),e("code",[t._v("firstNormalSlot")]),t._v(")")]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("slotsPerEpoch")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("leaderScheduleSlotOffset")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("warmup")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Whether epochs start short and grow.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("firstNormalEpoch")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("firstNormalSlot")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L305",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:305"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"accessors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors-2"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("h3",{attrs:{id:"firstnormalepoch"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#firstnormalepoch"}},[t._v("#")]),t._v(" firstNormalEpoch")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("firstNormalEpoch")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The first epoch after the warmup period.")]),t._v(" "),e("p",[t._v("Basically: "),e("code",[t._v("log2(slots_per_epoch) - log2(MINIMUM_SLOTS_PER_EPOCH)")]),t._v(".")]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L323",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:323"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("firstNormalEpoch")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L324",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:324"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"firstnormalslot"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#firstnormalslot"}},[t._v("#")]),t._v(" firstNormalSlot")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("firstNormalSlot")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The first slot after the warmup period.")]),t._v(" "),e("p",[t._v("Basically: "),e("code",[t._v("MINIMUM_SLOTS_PER_EPOCH * (2.pow(first_normal_epoch) - 1)")]),t._v(".")]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L330",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:330"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("firstNormalSlot")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L331",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:331"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"leaderscheduleslotoffset"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#leaderscheduleslotoffset"}},[t._v("#")]),t._v(" leaderScheduleSlotOffset")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("leaderScheduleSlotOffset")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("A number of slots before beginning of an epoch to calculate\na leader schedule for that epoch.")]),t._v(" "),e("h4",{attrs:{id:"returns-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L313",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:313"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("leaderScheduleSlotOffset")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L314",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:314"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"slotsperepoch"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#slotsperepoch"}},[t._v("#")]),t._v(" slotsPerEpoch")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("slotsPerEpoch")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The maximum number of slots in each epoch.")]),t._v(" "),e("h4",{attrs:{id:"returns-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L307",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:307"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("slotsPerEpoch")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-8"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-9"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L308",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:308"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"warmup"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#warmup"}},[t._v("#")]),t._v(" warmup")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("warmup")]),t._v("(): "),e("code",[t._v("boolean")])]),t._v(" "),e("p",[t._v("Whether epochs start short and grow.")]),t._v(" "),e("h4",{attrs:{id:"returns-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-9"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("boolean")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-10"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L316",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:316"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("warmup")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-10"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-11"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L317",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:317"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/29.f15f64a8.js b/assets/js/29.f15f64a8.js new file mode 100644 index 00000000..68a6b277 --- /dev/null +++ b/assets/js/29.f15f64a8.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{346:function(t,r,a){"use strict";a.r(r);var s=a(25),e=Object(s.a)({},(function(){var t=this,r=t._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"class-failedtransactionmetadata"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#class-failedtransactionmetadata"}},[t._v("#")]),t._v(" Class: FailedTransactionMetadata")]),t._v(" "),r("h2",{attrs:{id:"table-of-contents"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),r("h3",{attrs:{id:"constructors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),r("h3",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html#err"}},[t._v("err")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html#meta"}},[t._v("meta")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html#tostring"}},[t._v("toString")])],1)]),t._v(" "),r("h2",{attrs:{id:"constructors-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),r("h3",{attrs:{id:"constructor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("new FailedTransactionMetadata")]),t._v("()")]),t._v(" "),r("h2",{attrs:{id:"methods-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"err"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#err"}},[t._v("#")]),t._v(" err")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("err")]),t._v("(): "),r("code",[t._v("TransactionErrorInstructionError")]),t._v(" | "),r("code",[t._v("TransactionErrorDuplicateInstruction")]),t._v(" | "),r("code",[t._v("TransactionErrorInsufficientFundsForRent")]),t._v(" | "),r("code",[t._v("TransactionErrorProgramExecutionTemporarilyRestricted")]),t._v(" | "),r("code",[t._v("TransactionErrorFieldless")])]),t._v(" "),r("h4",{attrs:{id:"returns"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("TransactionErrorInstructionError")]),t._v(" | "),r("code",[t._v("TransactionErrorDuplicateInstruction")]),t._v(" | "),r("code",[t._v("TransactionErrorInsufficientFundsForRent")]),t._v(" | "),r("code",[t._v("TransactionErrorProgramExecutionTemporarilyRestricted")]),t._v(" | "),r("code",[t._v("TransactionErrorFieldless")])]),t._v(" "),r("h4",{attrs:{id:"defined-in"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L502",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:502"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"meta"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#meta"}},[t._v("#")]),t._v(" meta")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("meta")]),t._v("(): "),r("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[r("code",[t._v("TransactionMetadata")])])],1),t._v(" "),r("h4",{attrs:{id:"returns-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[r("code",[t._v("TransactionMetadata")])])],1),t._v(" "),r("h4",{attrs:{id:"defined-in-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L503",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:503"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tostring"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toString")]),t._v("(): "),r("code",[t._v("string")])]),t._v(" "),r("h4",{attrs:{id:"returns-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("string")])]),t._v(" "),r("h4",{attrs:{id:"defined-in-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L504",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:504"),r("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/3.732d1f6f.js b/assets/js/3.732d1f6f.js new file mode 100644 index 00000000..d91be5fd --- /dev/null +++ b/assets/js/3.732d1f6f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3,16,19],{276:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"i",(function(){return a})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return c})),n.d(e,"b",(function(){return p})),n.d(e,"e",(function(){return d})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return f})),n.d(e,"c",(function(){return g})),n.d(e,"j",(function(){return m}));n(116),n(14),n(20),n(62),n(40);const r=/#.*$/,i=/\.(md|html)$/,s=/\/$/,a=/^[a-z]+:/i;function o(t){return decodeURI(t).replace(r,"").replace(i,"")}function u(t){return a.test(t)}function l(t){return/^mailto:/.test(t)}function c(t){return/^tel:/.test(t)}function p(t){if(u(t))return t;const e=t.match(r),n=e?e[0]:"",i=o(t);return s.test(i)?t:i+".html"+n}function d(t,e){const n=decodeURIComponent(t.hash),i=function(t){const e=t.match(r);if(e)return e[0]}(e);if(i&&n!==i)return!1;return o(t.path)===o(e)}function h(t,e,n){if(u(e))return{type:"external",path:e};n&&(e=function(t,e,n){const r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;const i=e.split("/");n&&i[i.length-1]||i.pop();const s=t.replace(/^\//,"").split("/");for(let t=0;tfunction t(e,n,r,i=1){if("string"==typeof e)return h(n,e,r);if(Array.isArray(e))return Object.assign(h(n,e[0],r),{title:e[1]});{const s=e.children||[];return 0===s.length&&e.path?Object.assign(h(n,e.path,r),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:s.map(e=>t(e,n,r,i+1)),collapsable:!1!==e.collapsable}}}(t,i,n)):[]}return[]}function b(t){const e=g(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}function g(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function m(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},277:function(t,e,n){},279:function(t,e,n){"use strict";n.r(e);var r={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},i=(n(280),n(25)),s=Object(i.a)(r,(function(){return(0,this._self._c)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)}),[],!1,null,null,null);e.default=s.exports},280:function(t,e,n){"use strict";n(277)},282:function(t,e,n){},287:function(t,e,n){},289:function(t,e,n){"use strict";n(290)},290:function(t,e,n){"use strict";var r=n(9),i=n(41),s=n(6),a=n(1),o=n(21);r({target:"Iterator",proto:!0,real:!0},{find:function(t){a(this),s(t);var e=o(this),n=0;return i(e,(function(e,r){if(t(e,n++))return r(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},291:function(t,e,n){"use strict";n(282)},292:function(t,e,n){"use strict";n.r(e);n(14),n(61);var r=n(305),i=n(294),s=n(276);function a(t,e){if("group"===e.type){const n=e.path&&Object(s.e)(t,e.path),r=e.children.some(e=>"group"===e.type?a(t,e):"page"===e.type&&Object(s.e)(t,e.path));return n||r}return!1}var o={name:"SidebarLinks",components:{SidebarGroup:r.default,SidebarLink:i.default},props:["items","depth","sidebarDepth","initialOpenGroupIndex"],data(){return{openGroupIndex:this.initialOpenGroupIndex||0}},watch:{$route(){this.refreshIndex()}},created(){this.refreshIndex()},methods:{refreshIndex(){const t=function(t,e){for(let n=0;n-1&&(this.openGroupIndex=t)},toggleGroup(t){this.openGroupIndex=t===this.openGroupIndex?-1:t},isActive(t){return Object(s.e)(this.$route,t.regularPath)}}},u=n(25),l=Object(u.a)(o,(function(){var t=this,e=t._self._c;return t.items.length?e("ul",{staticClass:"sidebar-links"},t._l(t.items,(function(n,r){return e("li",{key:r},["group"===n.type?e("SidebarGroup",{attrs:{item:n,open:r===t.openGroupIndex,collapsable:n.collapsable||n.collapsible,depth:t.depth},on:{toggle:function(e){return t.toggleGroup(r)}}}):e("SidebarLink",{attrs:{"sidebar-depth":t.sidebarDepth,item:n}})],1)})),0):t._e()}),[],!1,null,null,null);e.default=l.exports},294:function(t,e,n){"use strict";n.r(e);n(14),n(289),n(40),n(61);var r=n(276);function i(t,e,n,r,i){const s={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:r,"sidebar-link":!0}};return i>2&&(s.style={"padding-left":i+"rem"}),t("RouterLink",s,n)}function s(t,e,n,a,o,u=1){return!e||u>o?null:t("ul",{class:"sidebar-sub-headers"},e.map(e=>{const l=Object(r.e)(a,n+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[i(t,n+"#"+e.slug,e.title,l,e.level-1),s(t,e.children,n,a,o,u+1)])}))}var a={functional:!0,props:["item","sidebarDepth"],render(t,{parent:{$page:e,$site:n,$route:a,$themeConfig:o,$themeLocaleConfig:u},props:{item:l,sidebarDepth:c}}){const p=Object(r.e)(a,l.path),d="auto"===l.type?p||l.children.some(t=>Object(r.e)(a,l.basePath+"#"+t.slug)):p,h="external"===l.type?function(t,e,n){return t("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[n,t("OutboundLink")])}(t,l.path,l.title||l.path):i(t,l.path,l.title||l.path,d),f=[e.frontmatter.sidebarDepth,c,u.sidebarDepth,o.sidebarDepth,1].find(t=>void 0!==t),b=u.displayAllHeaders||o.displayAllHeaders;if("auto"===l.type)return[h,s(t,l.children,l.basePath,a,f)];if((d||b)&&l.headers&&!r.d.test(l.path)){return[h,s(t,Object(r.c)(l.headers),l.path,a,f)]}return h}},o=(n(291),n(25)),u=Object(o.a)(a,void 0,void 0,!1,null,null,null);e.default=u.exports},302:function(t,e,n){"use strict";n(287)},305:function(t,e,n){"use strict";n.r(e);var r=n(276),i={name:"SidebarGroup",components:{DropdownTransition:n(279).default},props:["item","open","collapsable","depth"],beforeCreate(){this.$options.components.SidebarLinks=n(292).default},methods:{isActive:r.e}},s=(n(302),n(25)),a=Object(s.a)(i,(function(){var t=this,e=t._self._c;return e("section",{staticClass:"sidebar-group",class:[{collapsable:t.collapsable,"is-sub-group":0!==t.depth},"depth-"+t.depth]},[t.item.path?e("RouterLink",{staticClass:"sidebar-heading clickable",class:{open:t.open,active:t.isActive(t.$route,t.item.path)},attrs:{to:t.item.path},nativeOn:{click:function(e){return t.$emit("toggle")}}},[e("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?e("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e()]):e("p",{staticClass:"sidebar-heading",class:{open:t.open},on:{click:function(e){return t.$emit("toggle")}}},[e("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?e("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e()]),t._v(" "),e("DropdownTransition",[t.open||!t.collapsable?e("SidebarLinks",{staticClass:"sidebar-group-items",attrs:{items:t.item.children,"sidebar-depth":t.item.sidebarDepth,"initial-open-group-index":t.item.initialOpenGroupIndex,depth:t.depth+1}}):t._e()],1)],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/30.76dcbb99.js b/assets/js/30.76dcbb99.js new file mode 100644 index 00000000..ef25cfa9 --- /dev/null +++ b/assets/js/30.76dcbb99.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{349:function(t,e,a){"use strict";a.r(e);var r=a(25),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-featureset"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-featureset"}},[t._v("#")]),t._v(" Class: FeatureSet")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"methods"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html#activatedslot"}},[t._v("activatedSlot")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html#isactive"}},[t._v("isActive")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html#tostring"}},[t._v("toString")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html#allenabled"}},[t._v("allEnabled")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new FeatureSet")]),t._v("()")]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L205",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:205"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"methods-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("h3",{attrs:{id:"activatedslot"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#activatedslot"}},[t._v("#")]),t._v(" activatedSlot")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("activatedSlot")]),t._v("("),e("code",[t._v("featureId")]),t._v("): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("featureId")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Uint8Array")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L208",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:208"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"isactive"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#isactive"}},[t._v("#")]),t._v(" isActive")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("isActive")]),t._v("("),e("code",[t._v("featureId")]),t._v("): "),e("code",[t._v("boolean")])]),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("featureId")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Uint8Array")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("boolean")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L207",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:207"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"tostring"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("toString")]),t._v("(): "),e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L209",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:209"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"allenabled"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#allenabled"}},[t._v("#")]),t._v(" allEnabled")]),t._v(" "),e("p",[t._v("▸ "),e("code",[t._v("Static")]),t._v(" "),e("strong",[t._v("allEnabled")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html"}},[e("code",[t._v("FeatureSet")])])],1),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html"}},[e("code",[t._v("FeatureSet")])])],1),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L206",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:206"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/31.05ed0d15.js b/assets/js/31.05ed0d15.js new file mode 100644 index 00000000..62e99b12 --- /dev/null +++ b/assets/js/31.05ed0d15.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{350:function(t,r,s){"use strict";s.r(r);var e=s(25),n=Object(e.a)({},(function(){var t=this,r=t._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"class-innerinstruction"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#class-innerinstruction"}},[t._v("#")]),t._v(" Class: InnerInstruction")]),t._v(" "),r("h2",{attrs:{id:"table-of-contents"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),r("h3",{attrs:{id:"constructors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/api/classes/InnerInstruction.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),r("h3",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/api/classes/InnerInstruction.html#instruction"}},[t._v("instruction")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/InnerInstruction.html#stackheight"}},[t._v("stackHeight")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/InnerInstruction.html#tostring"}},[t._v("toString")])],1)]),t._v(" "),r("h2",{attrs:{id:"constructors-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),r("h3",{attrs:{id:"constructor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("new InnerInstruction")]),t._v("()")]),t._v(" "),r("h2",{attrs:{id:"methods-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"instruction"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#instruction"}},[t._v("#")]),t._v(" instruction")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("instruction")]),t._v("(): "),r("code",[t._v("CompiledInstruction")])]),t._v(" "),r("h4",{attrs:{id:"returns"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("CompiledInstruction")])]),t._v(" "),r("h4",{attrs:{id:"defined-in"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L484",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:484"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stackheight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stackheight"}},[t._v("#")]),t._v(" stackHeight")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("stackHeight")]),t._v("(): "),r("code",[t._v("number")])]),t._v(" "),r("h4",{attrs:{id:"returns-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("number")])]),t._v(" "),r("h4",{attrs:{id:"defined-in-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L485",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:485"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tostring"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toString")]),t._v("(): "),r("code",[t._v("string")])]),t._v(" "),r("h4",{attrs:{id:"returns-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("string")])]),t._v(" "),r("h4",{attrs:{id:"defined-in-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L486",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:486"),r("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/32.c88e8d01.js b/assets/js/32.c88e8d01.js new file mode 100644 index 00000000..a3dfdc42 --- /dev/null +++ b/assets/js/32.c88e8d01.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{351:function(t,e,a){"use strict";a.r(e);var s=a(25),r=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-litesvm"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-litesvm"}},[t._v("#")]),t._v(" Class: LiteSVM")]),t._v(" "),e("p",[t._v("The main class in the litesvm library.")]),t._v(" "),e("p",[t._v("Use this to send transactions, query accounts and configure the runtime.")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#inner"}},[t._v("inner")])],1)]),t._v(" "),e("h3",{attrs:{id:"methods"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#addprogram"}},[t._v("addProgram")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#addprogramfromfile"}},[t._v("addProgramFromFile")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#airdrop"}},[t._v("airdrop")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#expireblockhash"}},[t._v("expireBlockhash")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getaccount"}},[t._v("getAccount")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getbalance"}},[t._v("getBalance")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getclock"}},[t._v("getClock")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getepochrewards"}},[t._v("getEpochRewards")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getepochschedule"}},[t._v("getEpochSchedule")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getlastrestartslot"}},[t._v("getLastRestartSlot")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getrent"}},[t._v("getRent")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getslothashes"}},[t._v("getSlotHashes")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getslothistory"}},[t._v("getSlotHistory")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#getstakehistory"}},[t._v("getStakeHistory")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#gettransaction"}},[t._v("getTransaction")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#latestblockhash"}},[t._v("latestBlockhash")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#minimumbalanceforrentexemption"}},[t._v("minimumBalanceForRentExemption")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#sendtransaction"}},[t._v("sendTransaction")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#setaccount"}},[t._v("setAccount")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#setclock"}},[t._v("setClock")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#setepochrewards"}},[t._v("setEpochRewards")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#setepochschedule"}},[t._v("setEpochSchedule")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#setlastrestartslot"}},[t._v("setLastRestartSlot")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#setrent"}},[t._v("setRent")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#setslothashes"}},[t._v("setSlotHashes")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#setslothistory"}},[t._v("setSlotHistory")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#setstakehistory"}},[t._v("setStakeHistory")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#simulatetransaction"}},[t._v("simulateTransaction")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#warptoslot"}},[t._v("warpToSlot")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withblockhashcheck"}},[t._v("withBlockhashCheck")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withbuiltins"}},[t._v("withBuiltins")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withcomputebudget"}},[t._v("withComputeBudget")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withlamports"}},[t._v("withLamports")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withlogbyteslimit"}},[t._v("withLogBytesLimit")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withprecompiles"}},[t._v("withPrecompiles")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withsigverify"}},[t._v("withSigverify")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withsplprograms"}},[t._v("withSplPrograms")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withsysvars"}},[t._v("withSysvars")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#withtransactionhistory"}},[t._v("withTransactionHistory")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html#default"}},[t._v("default")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new LiteSVM")]),t._v("()")]),t._v(" "),e("p",[t._v("Create a new LiteSVM instance with standard functionality enabled")]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L94",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:94"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"properties-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties-2"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),e("h3",{attrs:{id:"inner"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#inner"}},[t._v("#")]),t._v(" inner")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("Private")]),t._v(" "),e("strong",[t._v("inner")]),t._v(": "),e("code",[t._v("LiteSvm")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L98",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:98"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"methods-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("h3",{attrs:{id:"addprogram"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#addprogram"}},[t._v("#")]),t._v(" addProgram")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("addProgram")]),t._v("("),e("code",[t._v("programId")]),t._v(", "),e("code",[t._v("programBytes")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Adds am SBF program to the test environment.")]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("programId")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("PublicKey")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The program ID.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("programBytes")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Uint8Array")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The raw bytes of the compiled program.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L300",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:300"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"addprogramfromfile"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#addprogramfromfile"}},[t._v("#")]),t._v(" addProgramFromFile")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("addProgramFromFile")]),t._v("("),e("code",[t._v("programId")]),t._v(", "),e("code",[t._v("path")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Adds an SBF program to the test environment from the file specified.")]),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("programId")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("PublicKey")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The program ID.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("path")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The path to the .so file.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L291",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:291"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"airdrop"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#airdrop"}},[t._v("#")]),t._v(" airdrop")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("airdrop")]),t._v("("),e("code",[t._v("address")]),t._v(", "),e("code",[t._v("lamports")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[e("code",[t._v("TransactionMetadata")])]),t._v(" | "),e("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html"}},[e("code",[t._v("FailedTransactionMetadata")])])],1),t._v(" "),e("p",[t._v("Airdrops the lamport amount specified to the given address.")]),t._v(" "),e("h4",{attrs:{id:"parameters-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("address")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("PublicKey")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The airdrop recipient.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("lamports")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The amount to airdrop.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[e("code",[t._v("TransactionMetadata")])]),t._v(" | "),e("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html"}},[e("code",[t._v("FailedTransactionMetadata")])])],1),t._v(" "),e("p",[t._v("The transaction result.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L279",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:279"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"expireblockhash"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#expireblockhash"}},[t._v("#")]),t._v(" expireBlockhash")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("expireBlockhash")]),t._v("(): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Expires the current blockhash.\nThe return value of "),e("code",[t._v("latestBlockhash()")]),t._v(" will be different after calling this.")]),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L344",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:344"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getaccount"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getaccount"}},[t._v("#")]),t._v(" getAccount")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getAccount")]),t._v("("),e("code",[t._v("address")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/#accountinfobytes"}},[e("code",[t._v("AccountInfoBytes")])])],1),t._v(" "),e("p",[t._v("Return the account at the given address.\nIf the account is not found, None is returned.")]),t._v(" "),e("h4",{attrs:{id:"parameters-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("address")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("PublicKey")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The account address to look up.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/#accountinfobytes"}},[e("code",[t._v("AccountInfoBytes")])])],1),t._v(" "),e("p",[t._v("The account object, if the account exists.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L224",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:224"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getbalance"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getbalance"}},[t._v("#")]),t._v(" getBalance")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getBalance")]),t._v("("),e("code",[t._v("address")]),t._v("): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("Gets the balance of the provided account address.")]),t._v(" "),e("h4",{attrs:{id:"parameters-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("address")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("PublicKey")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The account address.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The account's balance in lamports.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:249"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getclock"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getclock"}},[t._v("#")]),t._v(" getClock")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getClock")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/Clock.html"}},[e("code",[t._v("Clock")])])],1),t._v(" "),e("p",[t._v("Get the cluster clock.")]),t._v(" "),e("h4",{attrs:{id:"returns-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/Clock.html"}},[e("code",[t._v("Clock")])])],1),t._v(" "),e("p",[t._v("the clock object.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-9"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L361",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:361"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getepochrewards"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getepochrewards"}},[t._v("#")]),t._v(" getEpochRewards")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getEpochRewards")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html"}},[e("code",[t._v("EpochRewards")])])],1),t._v(" "),e("p",[t._v("Get the EpochRewards sysvar.")]),t._v(" "),e("h4",{attrs:{id:"returns-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-8"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html"}},[e("code",[t._v("EpochRewards")])])],1),t._v(" "),e("p",[t._v("the EpochRewards object.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-10"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L377",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:377"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getepochschedule"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getepochschedule"}},[t._v("#")]),t._v(" getEpochSchedule")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getEpochSchedule")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html"}},[e("code",[t._v("EpochSchedule")])])],1),t._v(" "),e("p",[t._v("Get the EpochSchedule sysvar.")]),t._v(" "),e("h4",{attrs:{id:"returns-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-9"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html"}},[e("code",[t._v("EpochSchedule")])])],1),t._v(" "),e("p",[t._v("the EpochSchedule object.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-11"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:393"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getlastrestartslot"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getlastrestartslot"}},[t._v("#")]),t._v(" getLastRestartSlot")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getLastRestartSlot")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("Get the last restart slot sysvar.")]),t._v(" "),e("h4",{attrs:{id:"returns-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-10"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("the last restart slot.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-12"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L409",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:409"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getrent"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getrent"}},[t._v("#")]),t._v(" getRent")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getRent")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[e("code",[t._v("Rent")])])],1),t._v(" "),e("p",[t._v("Get the cluster rent.")]),t._v(" "),e("h4",{attrs:{id:"returns-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-11"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[e("code",[t._v("Rent")])])],1),t._v(" "),e("p",[t._v("The rent object.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-13"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L425",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:425"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getslothashes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getslothashes"}},[t._v("#")]),t._v(" getSlotHashes")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getSlotHashes")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/SlotHash.html"}},[e("code",[t._v("SlotHash")])]),t._v("[]")],1),t._v(" "),e("p",[t._v("Get the SlotHashes sysvar.")]),t._v(" "),e("h4",{attrs:{id:"returns-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-12"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/SlotHash.html"}},[e("code",[t._v("SlotHash")])]),t._v("[]")],1),t._v(" "),e("p",[t._v("The SlotHash array.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-14"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L441",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:441"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getslothistory"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getslothistory"}},[t._v("#")]),t._v(" getSlotHistory")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getSlotHistory")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html"}},[e("code",[t._v("SlotHistory")])])],1),t._v(" "),e("p",[t._v("Get the SlotHistory sysvar.")]),t._v(" "),e("h4",{attrs:{id:"returns-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-13"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html"}},[e("code",[t._v("SlotHistory")])])],1),t._v(" "),e("p",[t._v("The SlotHistory object.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-15"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-15"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L457",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:457"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"getstakehistory"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#getstakehistory"}},[t._v("#")]),t._v(" getStakeHistory")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getStakeHistory")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/StakeHistory.html"}},[e("code",[t._v("StakeHistory")])])],1),t._v(" "),e("p",[t._v("Get the StakeHistory sysvar.")]),t._v(" "),e("h4",{attrs:{id:"returns-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-14"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistory.html"}},[e("code",[t._v("StakeHistory")])])],1),t._v(" "),e("p",[t._v("The StakeHistory object.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-16"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-16"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L473",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:473"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"gettransaction"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#gettransaction"}},[t._v("#")]),t._v(" getTransaction")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("getTransaction")]),t._v("("),e("code",[t._v("signature")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[e("code",[t._v("TransactionMetadata")])]),t._v(" | "),e("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html"}},[e("code",[t._v("FailedTransactionMetadata")])])],1),t._v(" "),e("p",[t._v("Gets a transaction from the transaction history.")]),t._v(" "),e("h4",{attrs:{id:"parameters-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("signature")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Uint8Array")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The transaction signature bytes")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-15"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-15"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[e("code",[t._v("TransactionMetadata")])]),t._v(" | "),e("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html"}},[e("code",[t._v("FailedTransactionMetadata")])])],1),t._v(" "),e("p",[t._v("The transaction, if it is found in the history.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-17"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-17"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L267",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:267"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"latestblockhash"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#latestblockhash"}},[t._v("#")]),t._v(" latestBlockhash")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("latestBlockhash")]),t._v("(): "),e("code",[t._v("string")])]),t._v(" "),e("p",[t._v("Gets the latest blockhash.\nSince LiteSVM doesn't have blocks, this is an arbitrary value controlled by LiteSVM")]),t._v(" "),e("h4",{attrs:{id:"returns-16"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-16"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("string")])]),t._v(" "),e("p",[t._v("The designated latest blockhash.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-18"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-18"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L258",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:258"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"minimumbalanceforrentexemption"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#minimumbalanceforrentexemption"}},[t._v("#")]),t._v(" minimumBalanceForRentExemption")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("minimumBalanceForRentExemption")]),t._v("("),e("code",[t._v("dataLen")]),t._v("): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("Calculates the minimum balance required to make an account with specified data length rent exempt.")]),t._v(" "),e("h4",{attrs:{id:"parameters-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("dataLen")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The number of bytes in the account.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-17"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-17"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The required balance in lamports")]),t._v(" "),e("h4",{attrs:{id:"defined-in-19"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-19"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L214",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:214"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"sendtransaction"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#sendtransaction"}},[t._v("#")]),t._v(" sendTransaction")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("sendTransaction")]),t._v("("),e("code",[t._v("tx")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[e("code",[t._v("TransactionMetadata")])]),t._v(" | "),e("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html"}},[e("code",[t._v("FailedTransactionMetadata")])])],1),t._v(" "),e("p",[t._v("Processes a transaction and returns the result.")]),t._v(" "),e("h4",{attrs:{id:"parameters-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("tx")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Transaction")]),t._v(" | "),e("code",[t._v("VersionedTransaction")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The transaction to send.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-18"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-18"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[e("code",[t._v("TransactionMetadata")])]),t._v(" | "),e("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html"}},[e("code",[t._v("FailedTransactionMetadata")])])],1),t._v(" "),e("p",[t._v("TransactionMetadata if the transaction succeeds, else FailedTransactionMetadata")]),t._v(" "),e("h4",{attrs:{id:"defined-in-20"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-20"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:309"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"setaccount"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setaccount"}},[t._v("#")]),t._v(" setAccount")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("setAccount")]),t._v("("),e("code",[t._v("address")]),t._v(", "),e("code",[t._v("account")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Create or overwrite an account, subverting normal runtime checks.")]),t._v(" "),e("p",[t._v("This method exists to make it easier to set up artificial situations\nthat would be difficult to replicate by sending individual transactions.\nBeware that it can be used to create states that would not be reachable\nby sending transactions!")]),t._v(" "),e("h4",{attrs:{id:"parameters-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("address")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("PublicKey")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The address to write to.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("account")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/#accountinfobytes"}},[e("code",[t._v("AccountInfoBytes")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The account object to write.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-19"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-19"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-21"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-21"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:240"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"setclock"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setclock"}},[t._v("#")]),t._v(" setClock")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("setClock")]),t._v("("),e("code",[t._v("clock")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Overwrite the clock sysvar.")]),t._v(" "),e("h4",{attrs:{id:"parameters-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("clock")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/Clock.html"}},[e("code",[t._v("Clock")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The clock object.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-20"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-20"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-22"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-22"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L369",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:369"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"setepochrewards"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setepochrewards"}},[t._v("#")]),t._v(" setEpochRewards")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("setEpochRewards")]),t._v("("),e("code",[t._v("rewards")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Overwrite the EpochRewards sysvar.")]),t._v(" "),e("h4",{attrs:{id:"parameters-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("rewards")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/EpochRewards.html"}},[e("code",[t._v("EpochRewards")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The EpochRewards object.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-21"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-21"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-23"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-23"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L385",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:385"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"setepochschedule"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setepochschedule"}},[t._v("#")]),t._v(" setEpochSchedule")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("setEpochSchedule")]),t._v("("),e("code",[t._v("schedule")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Overwrite the EpochSchedule sysvar.")]),t._v(" "),e("h4",{attrs:{id:"parameters-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("schedule")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/EpochSchedule.html"}},[e("code",[t._v("EpochSchedule")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The EpochSchedule object.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-22"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-22"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-24"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-24"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L401",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:401"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"setlastrestartslot"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setlastrestartslot"}},[t._v("#")]),t._v(" setLastRestartSlot")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("setLastRestartSlot")]),t._v("("),e("code",[t._v("slot")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Overwrite the last restart slot sysvar.")]),t._v(" "),e("h4",{attrs:{id:"parameters-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("slot")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The last restart slot.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-23"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-23"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-25"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-25"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L417",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:417"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"setrent"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setrent"}},[t._v("#")]),t._v(" setRent")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("setRent")]),t._v("("),e("code",[t._v("rent")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Overwrite the rent sysvar.")]),t._v(" "),e("h4",{attrs:{id:"parameters-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("rent")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[e("code",[t._v("Rent")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The new rent object.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-24"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-24"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-26"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-26"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L433",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:433"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"setslothashes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setslothashes"}},[t._v("#")]),t._v(" setSlotHashes")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("setSlotHashes")]),t._v("("),e("code",[t._v("hashes")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Overwrite the SlotHashes sysvar.")]),t._v(" "),e("h4",{attrs:{id:"parameters-15"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("hashes")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/SlotHash.html"}},[e("code",[t._v("SlotHash")])]),t._v("[]")],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The SlotHash array.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-25"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-25"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-27"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-27"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L449",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:449"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"setslothistory"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setslothistory"}},[t._v("#")]),t._v(" setSlotHistory")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("setSlotHistory")]),t._v("("),e("code",[t._v("history")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Overwrite the SlotHistory sysvar.")]),t._v(" "),e("h4",{attrs:{id:"parameters-16"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("history")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html"}},[e("code",[t._v("SlotHistory")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The SlotHistory object")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-26"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-26"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-28"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-28"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L465",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:465"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"setstakehistory"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#setstakehistory"}},[t._v("#")]),t._v(" setStakeHistory")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("setStakeHistory")]),t._v("("),e("code",[t._v("history")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Overwrite the StakeHistory sysvar.")]),t._v(" "),e("h4",{attrs:{id:"parameters-17"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("history")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/StakeHistory.html"}},[e("code",[t._v("StakeHistory")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The StakeHistory object")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-27"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-27"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-29"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-29"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L481",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:481"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"simulatetransaction"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#simulatetransaction"}},[t._v("#")]),t._v(" simulateTransaction")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("simulateTransaction")]),t._v("("),e("code",[t._v("tx")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html"}},[e("code",[t._v("FailedTransactionMetadata")])]),t._v(" | "),e("RouterLink",{attrs:{to:"/api/classes/SimulatedTransactionInfo.html"}},[e("code",[t._v("SimulatedTransactionInfo")])])],1),t._v(" "),e("p",[t._v("Simulates a transaction")]),t._v(" "),e("h4",{attrs:{id:"parameters-18"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("tx")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Transaction")]),t._v(" | "),e("code",[t._v("VersionedTransaction")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The transaction to simulate")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-28"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-28"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/FailedTransactionMetadata.html"}},[e("code",[t._v("FailedTransactionMetadata")])]),t._v(" | "),e("RouterLink",{attrs:{to:"/api/classes/SimulatedTransactionInfo.html"}},[e("code",[t._v("SimulatedTransactionInfo")])])],1),t._v(" "),e("p",[t._v("SimulatedTransactionInfo if simulation succeeds, else FailedTransactionMetadata")]),t._v(" "),e("h4",{attrs:{id:"defined-in-30"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-30"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L326",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:326"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"warptoslot"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#warptoslot"}},[t._v("#")]),t._v(" warpToSlot")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("warpToSlot")]),t._v("("),e("code",[t._v("slot")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("p",[t._v("Warps the clock to the specified slot. This is a convenience wrapper\naround "),e("code",[t._v("setClock()")]),t._v(".")]),t._v(" "),e("h4",{attrs:{id:"parameters-19"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("slot")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The new slot.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-29"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-29"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-31"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-31"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L353",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:353"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withblockhashcheck"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withblockhashcheck"}},[t._v("#")]),t._v(" withBlockhashCheck")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withBlockhashCheck")]),t._v("("),e("code",[t._v("check")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Enables or disables transaction blockhash checking.")]),t._v(" "),e("h4",{attrs:{id:"parameters-20"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("check")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("If false, the blockhash check will be skipped")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-30"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-30"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-32"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-32"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L133",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:133"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withbuiltins"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withbuiltins"}},[t._v("#")]),t._v(" withBuiltins")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withBuiltins")]),t._v("("),e("code",[t._v("featureSet?")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Adds the standard builtin programs.")]),t._v(" "),e("h4",{attrs:{id:"parameters-21"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("featureSet?")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html"}},[e("code",[t._v("FeatureSet")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("if provided, decides what builtins to add based on what features are active")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-31"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-31"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-33"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-33"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:153"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withcomputebudget"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withcomputebudget"}},[t._v("#")]),t._v(" withComputeBudget")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withComputeBudget")]),t._v("("),e("code",[t._v("budget")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Set the compute budget")]),t._v(" "),e("h4",{attrs:{id:"parameters-22"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("budget")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/ComputeBudget.html"}},[e("code",[t._v("ComputeBudget")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The new compute budget")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-32"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-32"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-34"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-34"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L113",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:113"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withlamports"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withlamports"}},[t._v("#")]),t._v(" withLamports")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withLamports")]),t._v("("),e("code",[t._v("lamports")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Changes the initial lamports in LiteSVM's airdrop account.")]),t._v(" "),e("h4",{attrs:{id:"parameters-23"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("lamports")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The number of lamports to set in the airdrop account")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-33"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-33"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-35"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-35"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:163"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withlogbyteslimit"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withlogbyteslimit"}},[t._v("#")]),t._v(" withLogBytesLimit")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withLogBytesLimit")]),t._v("("),e("code",[t._v("limit?")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Set a limit for transaction logs, beyond which they will be truncated.")]),t._v(" "),e("h4",{attrs:{id:"parameters-24"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("limit?")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The limit in bytes. If null, no limit is enforced.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-34"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-34"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-36"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-36"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L193",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:193"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withprecompiles"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withprecompiles"}},[t._v("#")]),t._v(" withPrecompiles")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withPrecompiles")]),t._v("("),e("code",[t._v("featureSet?")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Adds the standard precompiles.")]),t._v(" "),e("h4",{attrs:{id:"parameters-25"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("featureSet?")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/FeatureSet.html"}},[e("code",[t._v("FeatureSet")])])],1),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("if provided, decides what precompiles to add based on what features are active")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-35"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-35"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-37"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-37"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L204",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:204"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withsigverify"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withsigverify"}},[t._v("#")]),t._v(" withSigverify")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withSigverify")]),t._v("("),e("code",[t._v("sigverify")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Enable or disable sigverify")]),t._v(" "),e("h4",{attrs:{id:"parameters-26"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("sigverify")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("if false, transaction signatures will not be checked.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-36"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-36"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-38"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-38"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:123"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withsplprograms"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withsplprograms"}},[t._v("#")]),t._v(" withSplPrograms")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withSplPrograms")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Adds the standard SPL programs.")]),t._v(" "),e("h4",{attrs:{id:"returns-37"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-37"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-39"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-39"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L172",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:172"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withsysvars"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withsysvars"}},[t._v("#")]),t._v(" withSysvars")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withSysvars")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Sets up the standard sysvars.")]),t._v(" "),e("h4",{attrs:{id:"returns-38"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-38"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-40"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-40"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L142",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:142"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withtransactionhistory"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withtransactionhistory"}},[t._v("#")]),t._v(" withTransactionHistory")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("withTransactionHistory")]),t._v("("),e("code",[t._v("capacity")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Changes the capacity of the transaction history.")]),t._v(" "),e("h4",{attrs:{id:"parameters-27"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("capacity")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("How many transactions to store in history. Set this to 0 to disable transaction history and allow duplicate transactions.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-39"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-39"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("The modified LiteSVM instance")]),t._v(" "),e("h4",{attrs:{id:"defined-in-41"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-41"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:183"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"default"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#default"}},[t._v("#")]),t._v(" default")]),t._v(" "),e("p",[t._v("▸ "),e("code",[t._v("Static")]),t._v(" "),e("strong",[t._v("default")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("p",[t._v("Create a new LiteSVM instance with minimal functionality enabled")]),t._v(" "),e("h4",{attrs:{id:"returns-40"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-40"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/LiteSVM.html"}},[e("code",[t._v("LiteSVM")])])],1),t._v(" "),e("h4",{attrs:{id:"defined-in-42"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-42"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L101",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:101"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/33.59e9eb25.js b/assets/js/33.59e9eb25.js new file mode 100644 index 00000000..708f35bb --- /dev/null +++ b/assets/js/33.59e9eb25.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{352:function(t,e,a){"use strict";a.r(e);var r=a(25),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-rent"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-rent"}},[t._v("#")]),t._v(" Class: Rent")]),t._v(" "),e("p",[t._v("Configuration of network rent.")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"accessors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#burnpercent"}},[t._v("burnPercent")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#exemptionthreshold"}},[t._v("exemptionThreshold")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#lamportsperbyteyear"}},[t._v("lamportsPerByteYear")])],1)]),t._v(" "),e("h3",{attrs:{id:"methods"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#calculateburn"}},[t._v("calculateBurn")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#due"}},[t._v("due")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#dueamount"}},[t._v("dueAmount")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#isexempt"}},[t._v("isExempt")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#minimumbalance"}},[t._v("minimumBalance")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#tostring"}},[t._v("toString")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#default"}},[t._v("default")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#free"}},[t._v("free")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html#withslotsperepoch"}},[t._v("withSlotsPerEpoch")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new Rent")]),t._v("("),e("code",[t._v("lamportsPerByteYear")]),t._v(", "),e("code",[t._v("exemptionThreshold")]),t._v(", "),e("code",[t._v("burnPercent")]),t._v(")")]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("lamportsPerByteYear")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Rental rate in lamports/byte-year.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("exemptionThreshold")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Amount of time (in years) a balance must include rent for the account to be rent exempt.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("burnPercent")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The percentage of collected rent that is burned.")])])])]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L340",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:340"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"accessors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors-2"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("h3",{attrs:{id:"burnpercent"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#burnpercent"}},[t._v("#")]),t._v(" burnPercent")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("burnPercent")]),t._v("(): "),e("code",[t._v("number")])]),t._v(" "),e("p",[t._v("The percentage of collected rent that is burned.")]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("number")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L350",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:350"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("burnPercent")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L351",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:351"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"exemptionthreshold"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#exemptionthreshold"}},[t._v("#")]),t._v(" exemptionThreshold")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("exemptionThreshold")]),t._v("(): "),e("code",[t._v("number")])]),t._v(" "),e("p",[t._v("Amount of time (in years) a balance must include rent for the account to be rent exempt.")]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("number")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L347",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:347"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("exemptionThreshold")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L348",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:348"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"lamportsperbyteyear"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#lamportsperbyteyear"}},[t._v("#")]),t._v(" lamportsPerByteYear")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("lamportsPerByteYear")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("Rental rate in lamports/byte-year.")]),t._v(" "),e("h4",{attrs:{id:"returns-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L344",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:344"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("lamportsPerByteYear")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L345",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:345"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"methods-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("h3",{attrs:{id:"calculateburn"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#calculateburn"}},[t._v("#")]),t._v(" calculateBurn")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("calculateBurn")]),t._v("("),e("code",[t._v("rentCollected")]),t._v("): ["),e("code",[t._v("bigint")]),t._v(", "),e("code",[t._v("bigint")]),t._v("]")]),t._v(" "),e("p",[t._v("Calculate how much rent to burn from the collected rent.")]),t._v(" "),e("p",[t._v("The first value returned is the amount burned. The second is the amount\nto distribute to validators.")]),t._v(" "),e("h4",{attrs:{id:"parameters-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("rentCollected")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[t._v("["),e("code",[t._v("bigint")]),t._v(", "),e("code",[t._v("bigint")]),t._v("]")]),t._v(" "),e("p",[t._v("The amount burned and the amount to distribute to validators.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L361",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:361"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"due"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#due"}},[t._v("#")]),t._v(" due")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("due")]),t._v("("),e("code",[t._v("balance")]),t._v(", "),e("code",[t._v("dataLen")]),t._v(", "),e("code",[t._v("yearsElapsed")]),t._v("): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("Rent due on account's data length with balance.")]),t._v(" "),e("h4",{attrs:{id:"parameters-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("balance")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The account balance.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("dataLen")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The account data length.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("yearsElapsed")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Time elapsed in years.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-8"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The rent due.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-9"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L384",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:384"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"dueamount"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#dueamount"}},[t._v("#")]),t._v(" dueAmount")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("dueAmount")]),t._v("("),e("code",[t._v("dataLen")]),t._v(", "),e("code",[t._v("yearsElapsed")]),t._v("): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("Rent due for account that is known to be not exempt.")]),t._v(" "),e("h4",{attrs:{id:"parameters-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("dataLen")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The account data length.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("yearsElapsed")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Time elapsed in years.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-9"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The amount due.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-10"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L392",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:392"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"isexempt"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#isexempt"}},[t._v("#")]),t._v(" isExempt")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("isExempt")]),t._v("("),e("code",[t._v("balance")]),t._v(", "),e("code",[t._v("dataLen")]),t._v("): "),e("code",[t._v("boolean")])]),t._v(" "),e("p",[t._v("Whether a given balance and data length would be exempt.")]),t._v(" "),e("h4",{attrs:{id:"parameters-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("balance")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("dataLen")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-10"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("boolean")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-11"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L375",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:375"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"minimumbalance"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#minimumbalance"}},[t._v("#")]),t._v(" minimumBalance")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("minimumBalance")]),t._v("("),e("code",[t._v("dataLen")]),t._v("): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("Minimum balance due for rent-exemption of a given account data size.")]),t._v(" "),e("p",[t._v("Note: a stripped-down version of this calculation is used in\n"),e("code",[t._v("calculate_split_rent_exempt_reserve")]),t._v(" in the stake program. When this\nfunction is updated, eg. when making rent variable, the stake program\nwill need to be refactored.")]),t._v(" "),e("h4",{attrs:{id:"parameters-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("dataLen")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The account data size.")])])])]),t._v(" "),e("h4",{attrs:{id:"returns-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-11"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("The minimum balance due.")]),t._v(" "),e("h4",{attrs:{id:"defined-in-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-12"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L373",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:373"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"tostring"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("toString")]),t._v("(): "),e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"returns-12"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-12"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-13"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L406",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:406"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"default"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#default"}},[t._v("#")]),t._v(" default")]),t._v(" "),e("p",[t._v("▸ "),e("code",[t._v("Static")]),t._v(" "),e("strong",[t._v("default")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[e("code",[t._v("Rent")])])],1),t._v(" "),e("p",[t._v("Initialize rent with the default Solana settings.")]),t._v(" "),e("h4",{attrs:{id:"returns-13"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-13"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[e("code",[t._v("Rent")])])],1),t._v(" "),e("h4",{attrs:{id:"defined-in-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-14"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L342",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:342"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"free"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#free"}},[t._v("#")]),t._v(" free")]),t._v(" "),e("p",[t._v("▸ "),e("code",[t._v("Static")]),t._v(" "),e("strong",[t._v("free")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[e("code",[t._v("Rent")])])],1),t._v(" "),e("p",[t._v("Creates a "),e("code",[t._v("Rent")]),t._v(" that charges no lamports.")]),t._v(" "),e("p",[t._v("This is used for testing.")]),t._v(" "),e("h4",{attrs:{id:"returns-14"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-14"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[e("code",[t._v("Rent")])])],1),t._v(" "),e("h4",{attrs:{id:"defined-in-15"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-15"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L399",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:399"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"withslotsperepoch"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#withslotsperepoch"}},[t._v("#")]),t._v(" withSlotsPerEpoch")]),t._v(" "),e("p",[t._v("▸ "),e("code",[t._v("Static")]),t._v(" "),e("strong",[t._v("withSlotsPerEpoch")]),t._v("("),e("code",[t._v("slotsPerEpoch")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[e("code",[t._v("Rent")])])],1),t._v(" "),e("p",[t._v("Creates a "),e("code",[t._v("Rent")]),t._v(" that is scaled based on the number of slots in an epoch.")]),t._v(" "),e("p",[t._v("This is used for testing.")]),t._v(" "),e("h4",{attrs:{id:"parameters-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("slotsPerEpoch")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-15"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-15"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/Rent.html"}},[e("code",[t._v("Rent")])])],1),t._v(" "),e("h4",{attrs:{id:"defined-in-16"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-16"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L405",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:405"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/34.ac269241.js b/assets/js/34.ac269241.js new file mode 100644 index 00000000..87e61418 --- /dev/null +++ b/assets/js/34.ac269241.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{353:function(t,a,e){"use strict";e.r(a);var s=e(25),r=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-simulatedtransactioninfo"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-simulatedtransactioninfo"}},[t._v("#")]),t._v(" Class: SimulatedTransactionInfo")]),t._v(" "),a("h2",{attrs:{id:"table-of-contents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),a("h3",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/classes/SimulatedTransactionInfo.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),a("h3",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/classes/SimulatedTransactionInfo.html#inner"}},[t._v("inner")])],1)]),t._v(" "),a("h3",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/classes/SimulatedTransactionInfo.html#meta"}},[t._v("meta")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/SimulatedTransactionInfo.html#postaccounts"}},[t._v("postAccounts")])],1)]),t._v(" "),a("h2",{attrs:{id:"constructors-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("new SimulatedTransactionInfo")]),t._v("("),a("code",[t._v("inner")]),t._v(")")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("inner")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("SimulatedTransactionInfo")])])])])]),t._v(" "),a("h4",{attrs:{id:"defined-in"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L75",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:75"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties-2"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"inner"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inner"}},[t._v("#")]),t._v(" inner")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Private")]),t._v(" "),a("strong",[t._v("inner")]),t._v(": "),a("code",[t._v("SimulatedTransactionInfo")])]),t._v(" "),a("h4",{attrs:{id:"defined-in-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L78",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:78"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"meta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#meta"}},[t._v("#")]),t._v(" meta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("meta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[a("code",[t._v("TransactionMetadata")])])],1),t._v(" "),a("h4",{attrs:{id:"returns"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[a("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html"}},[a("code",[t._v("TransactionMetadata")])])],1),t._v(" "),a("h4",{attrs:{id:"defined-in-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L79",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:79"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"postaccounts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#postaccounts"}},[t._v("#")]),t._v(" postAccounts")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("postAccounts")]),t._v("(): ["),a("code",[t._v("PublicKey")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/classes/Account.html"}},[a("code",[t._v("Account")])]),t._v("][]")],1),t._v(" "),a("h4",{attrs:{id:"returns-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),a("p",[t._v("["),a("code",[t._v("PublicKey")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/classes/Account.html"}},[a("code",[t._v("Account")])]),t._v("][]")],1),t._v(" "),a("h4",{attrs:{id:"defined-in-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/index.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.ts:82"),a("OutboundLink")],1)])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/assets/js/35.a8f21d08.js b/assets/js/35.a8f21d08.js new file mode 100644 index 00000000..c0e4dac9 --- /dev/null +++ b/assets/js/35.a8f21d08.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{354:function(t,s,r){"use strict";r.r(s);var a=r(25),e=Object(a.a)({},(function(){var t=this,s=t._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"class-slothash"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#class-slothash"}},[t._v("#")]),t._v(" Class: SlotHash")]),t._v(" "),s("h2",{attrs:{id:"table-of-contents"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),s("h3",{attrs:{id:"constructors"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),s("ul",[s("li",[s("RouterLink",{attrs:{to:"/api/classes/SlotHash.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),s("h3",{attrs:{id:"properties"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),s("ul",[s("li",[s("RouterLink",{attrs:{to:"/api/classes/SlotHash.html#hash"}},[t._v("hash")])],1),t._v(" "),s("li",[s("RouterLink",{attrs:{to:"/api/classes/SlotHash.html#slot"}},[t._v("slot")])],1)]),t._v(" "),s("h2",{attrs:{id:"constructors-2"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),s("h3",{attrs:{id:"constructor"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),s("p",[t._v("• "),s("strong",[t._v("new SlotHash")]),t._v("()")]),t._v(" "),s("h2",{attrs:{id:"properties-2"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#properties-2"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),s("h3",{attrs:{id:"hash"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#hash"}},[t._v("#")]),t._v(" hash")]),t._v(" "),s("p",[t._v("• "),s("strong",[t._v("hash")]),t._v(": "),s("code",[t._v("string")])]),t._v(" "),s("h4",{attrs:{id:"defined-in"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),s("p",[s("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L410",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:410"),s("OutboundLink")],1)]),t._v(" "),s("hr"),t._v(" "),s("h3",{attrs:{id:"slot"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#slot"}},[t._v("#")]),t._v(" slot")]),t._v(" "),s("p",[t._v("• "),s("strong",[t._v("slot")]),t._v(": "),s("code",[t._v("bigint")])]),t._v(" "),s("h4",{attrs:{id:"defined-in-2"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),s("p",[s("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L409",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:409"),s("OutboundLink")],1)])])}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/36.cf7e18f0.js b/assets/js/36.cf7e18f0.js new file mode 100644 index 00000000..ccede8ca --- /dev/null +++ b/assets/js/36.cf7e18f0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{356:function(t,e,r){"use strict";r.r(e);var s=r(25),a=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-slothistory"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-slothistory"}},[t._v("#")]),t._v(" Class: SlotHistory")]),t._v(" "),e("p",[t._v("A bitvector indicating which slots are present in the past epoch.")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"accessors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html#bits"}},[t._v("bits")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html#nextslot"}},[t._v("nextSlot")])],1)]),t._v(" "),e("h3",{attrs:{id:"methods"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html#add"}},[t._v("add")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html#check"}},[t._v("check")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html#newest"}},[t._v("newest")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html#oldest"}},[t._v("oldest")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html#tostring"}},[t._v("toString")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html#default"}},[t._v("default")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new SlotHistory")]),t._v("("),e("code",[t._v("bits")]),t._v(", "),e("code",[t._v("nextSlot")]),t._v(")")]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bits")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("BigUint64Array")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("nextSlot")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L414",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:414"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"accessors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors-2"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("h3",{attrs:{id:"bits"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bits"}},[t._v("#")]),t._v(" bits")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("bits")]),t._v("(): "),e("code",[t._v("BigUint64Array")])]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("BigUint64Array")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L416",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:416"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("bits")]),t._v("("),e("code",[t._v("bits")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bits")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("BigUint64Array")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L417",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:417"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"nextslot"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#nextslot"}},[t._v("#")]),t._v(" nextSlot")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("nextSlot")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L418",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:418"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("nextSlot")]),t._v("("),e("code",[t._v("slot")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("slot")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L419",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:419"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"methods-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("h3",{attrs:{id:"add"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("add")]),t._v("("),e("code",[t._v("slot")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("slot")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L420",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:420"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"check"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#check"}},[t._v("#")]),t._v(" check")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("check")]),t._v("("),e("code",[t._v("slot")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/enums/SlotHistoryCheck.html"}},[e("code",[t._v("SlotHistoryCheck")])])],1),t._v(" "),e("h4",{attrs:{id:"parameters-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("slot")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/enums/SlotHistoryCheck.html"}},[e("code",[t._v("SlotHistoryCheck")])])],1),t._v(" "),e("h4",{attrs:{id:"defined-in-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L421",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:421"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"newest"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#newest"}},[t._v("#")]),t._v(" newest")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("newest")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L423",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:423"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"oldest"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#oldest"}},[t._v("#")]),t._v(" oldest")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("oldest")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"returns-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-8"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-9"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L422",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:422"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"tostring"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("toString")]),t._v("(): "),e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"returns-9"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-9"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-10"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L424",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:424"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"default"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#default"}},[t._v("#")]),t._v(" default")]),t._v(" "),e("p",[t._v("▸ "),e("code",[t._v("Static")]),t._v(" "),e("strong",[t._v("default")]),t._v("(): "),e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html"}},[e("code",[t._v("SlotHistory")])])],1),t._v(" "),e("h4",{attrs:{id:"returns-10"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-10"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/SlotHistory.html"}},[e("code",[t._v("SlotHistory")])])],1),t._v(" "),e("h4",{attrs:{id:"defined-in-11"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-11"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L415",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:415"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/37.c7f871dc.js b/assets/js/37.c7f871dc.js new file mode 100644 index 00000000..08dba14f --- /dev/null +++ b/assets/js/37.c7f871dc.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{355:function(t,e,a){"use strict";a.r(e);var r=a(25),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-stakehistory"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-stakehistory"}},[t._v("#")]),t._v(" Class: StakeHistory")]),t._v(" "),e("p",[t._v("A type to hold data for the StakeHistory sysvar.")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistory.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"methods"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistory.html#add"}},[t._v("add")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistory.html#get"}},[t._v("get")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new StakeHistory")]),t._v("()")]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L446",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:446"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"methods-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("h3",{attrs:{id:"add"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("add")]),t._v("("),e("code",[t._v("epoch")]),t._v(", "),e("code",[t._v("entry")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("epoch")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("entry")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("RouterLink",{attrs:{to:"/api/classes/StakeHistoryEntry.html"}},[e("code",[t._v("StakeHistoryEntry")])])],1)])])]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L448",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:448"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"get"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("get")]),t._v("("),e("code",[t._v("epoch")]),t._v("): "),e("RouterLink",{attrs:{to:"/api/classes/StakeHistoryEntry.html"}},[e("code",[t._v("StakeHistoryEntry")])])],1),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("epoch")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistoryEntry.html"}},[e("code",[t._v("StakeHistoryEntry")])])],1),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L447",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:447"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/38.89c68e7b.js b/assets/js/38.89c68e7b.js new file mode 100644 index 00000000..4a1f575b --- /dev/null +++ b/assets/js/38.89c68e7b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{357:function(t,e,a){"use strict";a.r(e);var r=a(25),s=Object(r.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"class-stakehistoryentry"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#class-stakehistoryentry"}},[t._v("#")]),t._v(" Class: StakeHistoryEntry")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"constructors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistoryEntry.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),e("h3",{attrs:{id:"accessors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistoryEntry.html#activating"}},[t._v("activating")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistoryEntry.html#deactivating"}},[t._v("deactivating")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistoryEntry.html#effective"}},[t._v("effective")])],1)]),t._v(" "),e("h3",{attrs:{id:"methods"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/classes/StakeHistoryEntry.html#tostring"}},[t._v("toString")])],1)]),t._v(" "),e("h2",{attrs:{id:"constructors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),e("h3",{attrs:{id:"constructor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("new StakeHistoryEntry")]),t._v("("),e("code",[t._v("effective")]),t._v(", "),e("code",[t._v("activating")]),t._v(", "),e("code",[t._v("deactivating")]),t._v(")")]),t._v(" "),e("h4",{attrs:{id:"parameters"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("effective")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("effective stake at this epoch")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("activating")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("sum of portion of stakes not fully warmed up")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("deactivating")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L432",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:432"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"accessors-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#accessors-2"}},[t._v("#")]),t._v(" Accessors")]),t._v(" "),e("h3",{attrs:{id:"activating"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#activating"}},[t._v("#")]),t._v(" activating")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("activating")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("sum of portion of stakes not fully warmed up")]),t._v(" "),e("h4",{attrs:{id:"returns"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L437",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:437"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("activating")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L438",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:438"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"deactivating"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#deactivating"}},[t._v("#")]),t._v(" deactivating")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("deactivating")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("requested to be cooled down, not fully deactivated yet")]),t._v(" "),e("h4",{attrs:{id:"returns-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L440",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:440"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("deactivating")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L441",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:441"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"effective"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#effective"}},[t._v("#")]),t._v(" effective")]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("get")]),t._v(" "),e("strong",[t._v("effective")]),t._v("(): "),e("code",[t._v("bigint")])]),t._v(" "),e("p",[t._v("effective stake at this epoch")]),t._v(" "),e("h4",{attrs:{id:"returns-5"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("bigint")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L434",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:434"),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("• "),e("code",[t._v("set")]),t._v(" "),e("strong",[t._v("effective")]),t._v("("),e("code",[t._v("val")]),t._v("): "),e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"parameters-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("val")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("bigint")])])])])]),t._v(" "),e("h4",{attrs:{id:"returns-6"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("void")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-7"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L435",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:435"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"methods-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),e("h3",{attrs:{id:"tostring"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),e("p",[t._v("▸ "),e("strong",[t._v("toString")]),t._v("(): "),e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"returns-7"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#returns-7"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),e("p",[e("code",[t._v("string")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-8"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-8"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L442",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:442"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/assets/js/39.463a1651.js b/assets/js/39.463a1651.js new file mode 100644 index 00000000..85f5f23a --- /dev/null +++ b/assets/js/39.463a1651.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{358:function(t,r,a){"use strict";a.r(r);var s=a(25),e=Object(s.a)({},(function(){var t=this,r=t._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"class-transactionmetadata"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#class-transactionmetadata"}},[t._v("#")]),t._v(" Class: TransactionMetadata")]),t._v(" "),r("h2",{attrs:{id:"table-of-contents"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),r("h3",{attrs:{id:"constructors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),r("h3",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html#computeunitsconsumed"}},[t._v("computeUnitsConsumed")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html#innerinstructions"}},[t._v("innerInstructions")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html#logs"}},[t._v("logs")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html#returndata"}},[t._v("returnData")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html#signature"}},[t._v("signature")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionMetadata.html#tostring"}},[t._v("toString")])],1)]),t._v(" "),r("h2",{attrs:{id:"constructors-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),r("h3",{attrs:{id:"constructor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("new TransactionMetadata")]),t._v("()")]),t._v(" "),r("h2",{attrs:{id:"methods-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"computeunitsconsumed"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#computeunitsconsumed"}},[t._v("#")]),t._v(" computeUnitsConsumed")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("computeUnitsConsumed")]),t._v("(): "),r("code",[t._v("bigint")])]),t._v(" "),r("h4",{attrs:{id:"returns"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("bigint")])]),t._v(" "),r("h4",{attrs:{id:"defined-in"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L497",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:497"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"innerinstructions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#innerinstructions"}},[t._v("#")]),t._v(" innerInstructions")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("innerInstructions")]),t._v("(): "),r("RouterLink",{attrs:{to:"/api/classes/InnerInstruction.html"}},[r("code",[t._v("InnerInstruction")])]),t._v("[][]")],1),t._v(" "),r("h4",{attrs:{id:"returns-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("RouterLink",{attrs:{to:"/api/classes/InnerInstruction.html"}},[r("code",[t._v("InnerInstruction")])]),t._v("[][]")],1),t._v(" "),r("h4",{attrs:{id:"defined-in-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L496",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:496"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"logs"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#logs"}},[t._v("#")]),t._v(" logs")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("logs")]),t._v("(): "),r("code",[t._v("string")]),t._v("[]")]),t._v(" "),r("h4",{attrs:{id:"returns-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("string")]),t._v("[]")]),t._v(" "),r("h4",{attrs:{id:"defined-in-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L495",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:495"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"returndata"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returndata"}},[t._v("#")]),t._v(" returnData")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("returnData")]),t._v("(): "),r("RouterLink",{attrs:{to:"/api/classes/TransactionReturnData.html"}},[r("code",[t._v("TransactionReturnData")])])],1),t._v(" "),r("h4",{attrs:{id:"returns-4"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-4"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("RouterLink",{attrs:{to:"/api/classes/TransactionReturnData.html"}},[r("code",[t._v("TransactionReturnData")])])],1),t._v(" "),r("h4",{attrs:{id:"defined-in-4"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L498",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:498"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"signature"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#signature"}},[t._v("#")]),t._v(" signature")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("signature")]),t._v("(): "),r("code",[t._v("Uint8Array")])]),t._v(" "),r("h4",{attrs:{id:"returns-5"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-5"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("Uint8Array")])]),t._v(" "),r("h4",{attrs:{id:"defined-in-5"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-5"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L494",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:494"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tostring"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toString")]),t._v("(): "),r("code",[t._v("string")])]),t._v(" "),r("h4",{attrs:{id:"returns-6"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-6"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("string")])]),t._v(" "),r("h4",{attrs:{id:"defined-in-6"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-6"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L499",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:499"),r("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/4.0471e9ae.js b/assets/js/4.0471e9ae.js new file mode 100644 index 00000000..e904301a --- /dev/null +++ b/assets/js/4.0471e9ae.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{316:function(t,e,n){},329:function(t,e,n){"use strict";n(316)},340:function(t,e,n){"use strict";n.r(e);var i={functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:(t,{props:e,slots:n})=>t("span",{class:["badge",e.type],style:{verticalAlign:e.vertical}},e.text||n().default)},p=(n(329),n(25)),l=Object(p.a)(i,void 0,void 0,!1,null,"15b7b770",null);e.default=l.exports}}]); \ No newline at end of file diff --git a/assets/js/40.78d0a454.js b/assets/js/40.78d0a454.js new file mode 100644 index 00000000..b46caade --- /dev/null +++ b/assets/js/40.78d0a454.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{359:function(t,r,a){"use strict";a.r(r);var s=a(25),e=Object(s.a)({},(function(){var t=this,r=t._self._c;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"class-transactionreturndata"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#class-transactionreturndata"}},[t._v("#")]),t._v(" Class: TransactionReturnData")]),t._v(" "),r("h2",{attrs:{id:"table-of-contents"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),r("h3",{attrs:{id:"constructors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionReturnData.html#constructor"}},[t._v("constructor")])],1)]),t._v(" "),r("h3",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("ul",[r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionReturnData.html#data"}},[t._v("data")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionReturnData.html#programid"}},[t._v("programId")])],1),t._v(" "),r("li",[r("RouterLink",{attrs:{to:"/api/classes/TransactionReturnData.html#tostring"}},[t._v("toString")])],1)]),t._v(" "),r("h2",{attrs:{id:"constructors-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructors-2"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),r("h3",{attrs:{id:"constructor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("new TransactionReturnData")]),t._v("()")]),t._v(" "),r("h2",{attrs:{id:"methods-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods-2"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"data"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("data")]),t._v("(): "),r("code",[t._v("Uint8Array")])]),t._v(" "),r("h4",{attrs:{id:"returns"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("Uint8Array")])]),t._v(" "),r("h4",{attrs:{id:"defined-in"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L490",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:490"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"programid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#programid"}},[t._v("#")]),t._v(" programId")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("programId")]),t._v("(): "),r("code",[t._v("Uint8Array")])]),t._v(" "),r("h4",{attrs:{id:"returns-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-2"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("Uint8Array")])]),t._v(" "),r("h4",{attrs:{id:"defined-in-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L489",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:489"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tostring"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tostring"}},[t._v("#")]),t._v(" toString")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("toString")]),t._v("(): "),r("code",[t._v("string")])]),t._v(" "),r("h4",{attrs:{id:"returns-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#returns-3"}},[t._v("#")]),t._v(" Returns")]),t._v(" "),r("p",[r("code",[t._v("string")])]),t._v(" "),r("h4",{attrs:{id:"defined-in-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),r("p",[r("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L491",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:491"),r("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/41.3951d254.js b/assets/js/41.3951d254.js new file mode 100644 index 00000000..af35cf6f --- /dev/null +++ b/assets/js/41.3951d254.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{360:function(t,e,r){"use strict";r.r(e);var n=r(25),a=Object(n.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"enumeration-slothistorycheck"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-slothistorycheck"}},[t._v("#")]),t._v(" Enumeration: SlotHistoryCheck")]),t._v(" "),e("h2",{attrs:{id:"table-of-contents"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),e("h3",{attrs:{id:"enumeration-members"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members"}},[t._v("#")]),t._v(" Enumeration Members")]),t._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/api/enums/SlotHistoryCheck.html#found"}},[t._v("Found")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/enums/SlotHistoryCheck.html#future"}},[t._v("Future")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/enums/SlotHistoryCheck.html#notfound"}},[t._v("NotFound")])],1),t._v(" "),e("li",[e("RouterLink",{attrs:{to:"/api/enums/SlotHistoryCheck.html#tooold"}},[t._v("TooOld")])],1)]),t._v(" "),e("h2",{attrs:{id:"enumeration-members-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members-2"}},[t._v("#")]),t._v(" Enumeration Members")]),t._v(" "),e("h3",{attrs:{id:"found"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#found"}},[t._v("#")]),t._v(" Found")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("Found")]),t._v(" = "),e("code",[t._v("2")])]),t._v(" "),e("h4",{attrs:{id:"defined-in"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:9"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"future"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#future"}},[t._v("#")]),t._v(" Future")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("Future")]),t._v(" = "),e("code",[t._v("0")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-2"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-2"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:7"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"notfound"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#notfound"}},[t._v("#")]),t._v(" NotFound")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("NotFound")]),t._v(" = "),e("code",[t._v("3")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-3"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-3"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:10"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"tooold"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tooold"}},[t._v("#")]),t._v(" TooOld")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("TooOld")]),t._v(" = "),e("code",[t._v("1")])]),t._v(" "),e("h4",{attrs:{id:"defined-in-4"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#defined-in-4"}},[t._v("#")]),t._v(" Defined in")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/LiteSVM/litesvm/blob/8574d8a/crates/node-litesvm/litesvm/internal.d.ts#L8",target:"_blank",rel:"noopener noreferrer"}},[t._v("internal.d.ts:8"),e("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/assets/js/42.d8eb3ae9.js b/assets/js/42.d8eb3ae9.js new file mode 100644 index 00000000..a7c4a12c --- /dev/null +++ b/assets/js/42.d8eb3ae9.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{361:function(t,s,a){"use strict";a.r(s);var n=a(25),e=Object(n.a)({},(function(){var t=this,s=t._self._c;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"tutorial"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tutorial"}},[t._v("#")]),t._v(" Tutorial")]),t._v(" "),s("h2",{attrs:{id:"deploying-programs"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#deploying-programs"}},[t._v("#")]),t._v(" Deploying programs")]),t._v(" "),s("p",[t._v("Most of the time we want to do more than just mess around with token transfers -\nwe want to test our own programs.")]),t._v(" "),s("div",{staticClass:"custom-block tip"},[s("p",{staticClass:"custom-block-title"},[t._v("TIP")]),t._v(" "),s("p",[t._v("If you want to pull a Solana program from mainnet or devnet, use the "),s("code",[t._v("solana program dump")]),t._v(" command from the Solana CLI.")])]),t._v(" "),s("p",[t._v("To add a compiled program to our tests we can use the "),s("code",[t._v("addProgramFromFile")]),t._v(" method.")]),t._v(" "),s("p",[t._v("Here's an example using a "),s("a",{attrs:{href:"https://github.com/solana-labs/solana-program-library/tree/bd216c8103cd8eb9f5f32e742973e7afb52f3b81/examples/rust/logging",target:"_blank",rel:"noopener noreferrer"}},[t._v("simple program"),s("OutboundLink")],1),t._v("\nfrom the Solana Program Library that just does some logging:")]),t._v(" "),s("div",{staticClass:"language-ts extra-class"},[s("pre",{pre:!0,attrs:{class:"language-ts"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" LiteSVM"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" TransactionMetadata "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"litesvm"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\tKeypair"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("LAMPORTS_PER_SOL")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tPublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tTransaction"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tTransactionInstruction"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"@solana/web3.js"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("test")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"spl logging"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" programId "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" PublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("unique")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" svm "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("LiteSVM")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("addProgramFromFile")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("programId"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"program_bytes/spl_example_logging.so"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" payer "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Keypair")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("airdrop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("payer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("publicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("BigInt")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("LAMPORTS_PER_SOL")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" blockhash "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("latestBlockhash")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ixs "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("TransactionInstruction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\t\tprogramId"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tkeys"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n\t\t\t\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" pubkey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" PublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("unique")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" isSigner"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" isWritable"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" tx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Transaction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("recentBlockhash "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" blockhash"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("ixs"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sign")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("payer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// let's sim it first")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" simRes "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("simulateTransaction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" sendRes "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sendTransaction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("sendRes "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("instanceof")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("TransactionMetadata")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("expect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("simRes"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("meta")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("logs")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toEqual")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("sendRes"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("logs")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("expect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("sendRes"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("logs")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBe")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Program log: static string"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("throw")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Error")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Unexpected tx failure"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"time-travel"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#time-travel"}},[t._v("#")]),t._v(" Time travel")]),t._v(" "),s("p",[t._v("Many programs rely on the "),s("code",[t._v("Clock")]),t._v(" sysvar: for example, a mint that doesn't become available until after\na certain time. With "),s("code",[t._v("litesvm")]),t._v(" you can dynamically overwrite the "),s("code",[t._v("Clock")]),t._v(" sysvar using "),s("code",[t._v("svm.setClock()")]),t._v(".\nHere's an example using a program that panics if "),s("code",[t._v("clock.unix_timestamp")]),t._v(" is greater than 100\n(which is on January 1st 1970):")]),t._v(" "),s("div",{staticClass:"language-ts extra-class"},[s("pre",{pre:!0,attrs:{class:"language-ts"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\tClock"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tFailedTransactionMetadata"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tLiteSVM"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tTransactionMetadata"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"litesvm"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\tKeypair"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("LAMPORTS_PER_SOL")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tPublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tTransaction"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tTransactionInstruction"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"@solana/web3.js"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("test")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"clock"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" programId "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" PublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("unique")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" svm "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("LiteSVM")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("addProgramFromFile")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("programId"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"program_bytes/litesvm_clock_example.so"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" payer "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Keypair")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("airdrop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("payer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("publicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("BigInt")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("LAMPORTS_PER_SOL")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" blockhash "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("latestBlockhash")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ixs "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("TransactionInstruction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" keys"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" programId"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Buffer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("from")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('""')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" tx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Transaction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("recentBlockhash "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" blockhash"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("ixs"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sign")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("payer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// set the time to January 1st 2000")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" initialClock "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getClock")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tinitialClock"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("unixTimestamp "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1735689600n")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setClock")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("initialClock"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this will fail because the contract wants it to be January 1970")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" failed "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sendTransaction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("failed "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("instanceof")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("FailedTransactionMetadata")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("expect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("failed"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("err")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toString")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toContain")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"ProgramFailedToComplete"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("throw")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Error")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"Expected transaction failure here"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// so let's turn back time")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" newClock "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getClock")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tnewClock"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("unixTimestamp "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50n")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setClock")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("newClock"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ixs2 "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("TransactionInstruction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\t\tkeys"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tprogramId"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tdata"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Buffer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("from")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"foobar"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// unused, just here to dedup the tx")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" tx2 "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Transaction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("recentBlockhash "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" blockhash"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("ixs2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\ttx2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sign")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("payer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// now the transaction goes through")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" success "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("sendTransaction")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tx2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("expect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("success"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBeInstanceOf")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("TransactionMetadata"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("See also: "),s("code",[t._v("svm.warpToSlot()")]),t._v(", which lets you jump to a future slot.")]),t._v(" "),s("h2",{attrs:{id:"writing-arbitrary-accounts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#writing-arbitrary-accounts"}},[t._v("#")]),t._v(" Writing arbitrary accounts")]),t._v(" "),s("p",[t._v("LiteSVM lets you write any account data you want, regardless of\nwhether the account state would even be possible.")]),t._v(" "),s("p",[t._v("Here's an example where we give an account a bunch of USDC,\neven though we don't have the USDC mint keypair. This is\nconvenient for testing because it means we don't have to\nwork with fake USDC in our tests:")]),t._v(" "),s("div",{staticClass:"language-ts extra-class"},[s("pre",{pre:!0,attrs:{class:"language-ts"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" LiteSVM "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"litesvm"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" PublicKey "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"@solana/web3.js"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\tgetAssociatedTokenAddressSync"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\tAccountLayout"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("ACCOUNT_SIZE")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("TOKEN_PROGRAM_ID")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"@solana/spl-token"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("test")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"infinite usdc mint"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" owner "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" PublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("unique")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" usdcMint "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("PublicKey")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ata "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getAssociatedTokenAddressSync")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("usdcMint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" owner"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" usdcToOwn "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1_000_000_000_000n")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" tokenAccData "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Buffer"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("alloc")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("ACCOUNT_SIZE")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tAccountLayout"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("encode")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\t\tmint"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" usdcMint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\towner"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tamount"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" usdcToOwn"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tdelegateOption"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tdelegate"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" PublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("default"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tdelegatedAmount"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0n")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tstate"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tisNativeOption"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tisNative"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0n")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tcloseAuthorityOption"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t\tcloseAuthority"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" PublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("default"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\ttokenAccData"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" svm "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("LiteSVM")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setAccount")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ata"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t\tlamports"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1_000_000_000")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\tdata"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" tokenAccData"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\towner"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token constant"}},[t._v("TOKEN_PROGRAM_ID")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t\texecutable"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" rawAccount "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getAccount")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ata"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("expect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("rawAccount"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("not"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBeNull")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" rawAccountData "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" rawAccount"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?.")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" decoded "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" AccountLayout"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("decode")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("rawAccountData"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("expect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("decoded"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("amount"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBe")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("usdcToOwn"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"copying-accounts-from-a-live-environment"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#copying-accounts-from-a-live-environment"}},[t._v("#")]),t._v(" Copying Accounts from a live environment")]),t._v(" "),s("p",[t._v("If you want to copy accounts from mainnet or devnet, you can use the "),s("code",[t._v("solana account")]),t._v(" command in the Solana CLI to save account data to a file.")]),t._v(" "),s("p",[t._v("Or, if you want to pull live data every time you test, you can do this with a few lines of code. Here's a simple example that pulls account data from devnet\nand passes it to LiteSVM:")]),t._v(" "),s("div",{staticClass:"language-ts extra-class"},[s("pre",{pre:!0,attrs:{class:"language-ts"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" LiteSVM "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"litesvm"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" PublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" Connection "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"@solana/web3.js"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("test")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"copy accounts from devnet"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("async")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" owner "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" PublicKey"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("unique")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" usdcMint "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("PublicKey")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n\t\t"),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" connection "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Connection")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"https://api.devnet.solana.com"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" accountInfo "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("await")]),t._v(" connection"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getAccountInfo")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("usdcMint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// the rent epoch goes above 2**53 which breaks web3.js, so just set it to 0;")]),t._v("\n\taccountInfo"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("rentEpoch "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" svm "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("LiteSVM")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\tsvm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setAccount")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("usdcMint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" accountInfo"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" rawAccount "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" svm"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getAccount")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("usdcMint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\t"),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("expect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("rawAccount"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("not"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBeNull")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"other-features"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#other-features"}},[t._v("#")]),t._v(" Other features")]),t._v(" "),s("p",[t._v("Other things you can do with "),s("code",[t._v("litesvm")]),t._v(" include:")]),t._v(" "),s("ul",[s("li",[t._v("Changing the max compute units and other compute budget behaviour using the "),s("code",[t._v("withComputeBudget")]),t._v(" method.")]),t._v(" "),s("li",[t._v("Disable transaction signature checking using "),s("code",[t._v("svm.withSigverify(false)")]),t._v(".")]),t._v(" "),s("li",[t._v("Find previous transactions using the "),s("code",[t._v("getTransaction")]),t._v(" method.")])]),t._v(" "),s("h2",{attrs:{id:"when-should-i-use-solana-test-validator"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#when-should-i-use-solana-test-validator"}},[t._v("#")]),t._v(" When should I use "),s("code",[t._v("solana-test-validator")]),t._v("?")]),t._v(" "),s("p",[t._v("While "),s("code",[t._v("litesvm")]),t._v(" is faster and more convenient, it is also less like a real RPC node.\nSo "),s("code",[t._v("solana-test-validator")]),t._v(" is still useful when you need to call RPC methods that LiteSVM\ndoesn't support, or when you want to test something that depends on real-life validator behaviour\nrather than just testing your program and client code.")]),t._v(" "),s("p",[t._v("In general though I would recommend using "),s("code",[t._v("litesvm")]),t._v(" wherever possible, as it will make your life\nmuch easier.")]),t._v(" "),s("h2",{attrs:{id:"supported-platforms"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#supported-platforms"}},[t._v("#")]),t._v(" Supported platforms")]),t._v(" "),s("p",[s("code",[t._v("litesvm")]),t._v(" is supported on Linux x64 and MacOS targets. If you find a platform that is not supported\nbut which can run the "),s("code",[t._v("litesvm")]),t._v(" Rust crate, please open an issue.")])])}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/assets/js/5.a9be735e.js b/assets/js/5.a9be735e.js new file mode 100644 index 00000000..9e9c10d9 --- /dev/null +++ b/assets/js/5.a9be735e.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{317:function(t,e,a){},330:function(t,e,a){"use strict";a(317)},336:function(t,e,a){"use strict";a.r(e);var s={name:"CodeBlock",props:{title:{type:String,required:!0},active:{type:Boolean,default:!1}},mounted(){this.$parent&&this.$parent.loadTabs&&this.$parent.loadTabs()}},i=(a(330),a(25)),n=Object(i.a)(s,(function(){return(0,this._self._c)("div",{staticClass:"theme-code-block",class:{"theme-code-block__active":this.active}},[this._t("default")],2)}),[],!1,null,"759a7d02",null);e.default=n.exports}}]); \ No newline at end of file diff --git a/assets/js/6.8707daba.js b/assets/js/6.8707daba.js new file mode 100644 index 00000000..d8c6b78e --- /dev/null +++ b/assets/js/6.8707daba.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{318:function(e,t,a){},331:function(e,t,a){"use strict";a(318)},337:function(e,t,a){"use strict";a.r(t);a(14),a(20),a(62),a(40);var o={name:"CodeGroup",data:()=>({codeTabs:[],activeCodeTabIndex:-1}),watch:{activeCodeTabIndex(e){this.activateCodeTab(e)}},mounted(){this.loadTabs()},methods:{changeCodeTab(e){this.activeCodeTabIndex=e},loadTabs(){this.codeTabs=(this.$slots.default||[]).filter(e=>Boolean(e.componentOptions)).map((e,t)=>(""===e.componentOptions.propsData.active&&(this.activeCodeTabIndex=t),{title:e.componentOptions.propsData.title,elm:e.elm})),-1===this.activeCodeTabIndex&&this.codeTabs.length>0&&(this.activeCodeTabIndex=0),this.activateCodeTab(0)},activateCodeTab(e){this.codeTabs.forEach(e=>{e.elm&&e.elm.classList.remove("theme-code-block__active")}),this.codeTabs[e].elm&&this.codeTabs[e].elm.classList.add("theme-code-block__active")}}},s=(a(331),a(25)),c=Object(s.a)(o,(function(){var e=this,t=e._self._c;return t("ClientOnly",[t("div",{staticClass:"theme-code-group"},[t("div",{staticClass:"theme-code-group__nav"},[t("ul",{staticClass:"theme-code-group__ul"},e._l(e.codeTabs,(function(a,o){return t("li",{key:a.title,staticClass:"theme-code-group__li"},[t("button",{staticClass:"theme-code-group__nav-tab",class:{"theme-code-group__nav-tab-active":o===e.activeCodeTabIndex},on:{click:function(t){return e.changeCodeTab(o)}}},[e._v("\n "+e._s(a.title)+"\n ")])])})),0)]),e._v(" "),e._t("default"),e._v(" "),e.codeTabs.length<1?t("pre",{staticClass:"pre-blank"},[e._v("// Make sure to add code blocks to your code group")]):e._e()],2)])}),[],!1,null,"deefee04",null);t.default=c.exports}}]); \ No newline at end of file diff --git a/assets/js/7.6a688e3c.js b/assets/js/7.6a688e3c.js new file mode 100644 index 00000000..ae766942 --- /dev/null +++ b/assets/js/7.6a688e3c.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{338:function(t,e,s){"use strict";s.r(e);const o=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."];var n={methods:{getMsg:()=>o[Math.floor(Math.random()*o.length)]}},h=s(25),i=Object(h.a)(n,(function(){var t=this._self._c;return t("div",{staticClass:"theme-container"},[t("div",{staticClass:"theme-default-content"},[t("h1",[this._v("404")]),this._v(" "),t("blockquote",[this._v(this._s(this.getMsg()))]),this._v(" "),t("RouterLink",{attrs:{to:"/"}},[this._v("\n Take me home.\n ")])],1)])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/assets/js/app.8381dbf3.js b/assets/js/app.8381dbf3.js new file mode 100644 index 00000000..6943021d --- /dev/null +++ b/assets/js/app.8381dbf3.js @@ -0,0 +1,10 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[]]);!function(t){function e(e){for(var r,a,s=e[0],c=e[1],u=e[2],f=0,p=[];f
'};function o(t,e,n){return tn?n:t}function i(t){return 100*(-1+t)}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(r[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=o(t,r.minimum,1),n.status=1===t?null:t;var c=n.render(!e),u=c.querySelector(r.barSelector),l=r.speed,f=r.easing;return c.offsetWidth,a((function(e){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),s(u,function(t,e,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+i(t)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+i(t)+"%,0)"}:{"margin-left":i(t)+"%"}).transition="all "+e+"ms "+n,o}(t,l,f)),1===t?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){s(c,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){n.remove(),e()}),l)}),l)):setTimeout(e,l)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout((function(){n.status&&(n.trickle(),t())}),r.trickleSpeed)};return r.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*o(Math.random()*e,.1,.95)),e=o(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===e&&n.start(),t++,e++,r.always((function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=r.template;var o,a=e.querySelector(r.barSelector),c=t?"-100":i(n.status||0),l=document.querySelector(r.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),r.showSpinner||(o=e.querySelector(r.spinnerSelector))&&p(o),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(e),e},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&p(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()})),e[n]||(e[n]=function(e){var n=document.body.style;if(e in n)return e;for(var r,o=t.length,i=e.charAt(0).toUpperCase()+e.slice(1);o--;)if((r=t[o]+i)in n)return r;return e}(n))}function r(t,e,r){e=n(e),t.style[e]=r}return function(t,e){var n,o,i=arguments;if(2==i.length)for(n in e)void 0!==(o=e[n])&&e.hasOwnProperty(n)&&r(t,n,o);else r(t,i[1],i[2])}}();function c(t,e){return("string"==typeof t?t:f(t)).indexOf(" "+e+" ")>=0}function u(t,e){var n=f(t),r=n+e;c(n,e)||(t.className=r.substring(1))}function l(t,e){var n,r=f(t);c(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function f(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function p(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";n(146)},function(t,e,n){"use strict";var r=n(154),o=n(11),i=n(1),a=n(45),s=n(156),c=n(33),u=n(30),l=n(157),f=n(87),p=n(51),d=TypeError,h=function(t,e){this.stopped=t,this.result=e},v=h.prototype;t.exports=function(t,e,n){var m,g,y,b,_,x,w,C=n&&n.that,S=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),k=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),$=r(e,C),j=function(t){return m&&p(m,"normal",t),new h(!0,t)},P=function(t){return S?(i(t),E?$(t[0],t[1],j):$(t[0],t[1])):E?$(t,j):$(t)};if(O)m=t.iterator;else if(k)m=t;else{if(!(g=f(t)))throw new d(a(t)+" is not iterable");if(s(g)){for(y=0,b=c(t);b>y;y++)if((_=P(t[y]))&&u(v,_))return _;return new h(!1)}m=l(t,g)}for(x=O?t.next:m.next;!(w=o(x,m)).done;){try{_=P(w.value)}catch(t){p(m,"throw",t)}if("object"==typeof _&&_&&u(v,_))return _}return new h(!1)}},function(t,e,n){"use strict";var r=n(0),o=n(15),i=n(76),a=n(47);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&i(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},function(t,e,n){"use strict";var r=n(44),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},function(t,e,n){"use strict";t.exports=function(t){return null==t}},function(t,e,n){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){"use strict";var r=n(18),o=n(2),i=n(47),a=t.exports=o["__core-js_shared__"]||i("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.40.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e,n){"use strict";var r=n(2),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){"use strict";var r=n(71),o=n(72),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){"use strict";var r=n(11),o=n(1),i=n(31);t.exports=function(t,e,n){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return o(a),n}},function(t,e,n){var r=n(179),o=n(17),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},function(t,e,n){var r=n(16)(n(12),"Map");t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(199),o=n(206),i=n(208),a=n(209),s=n(210);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(10),o=n(59),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(22),o=n(17);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";n(270)},function(t,e,n){"use strict";n(153)},function(t,e,n){"use strict";var r=n(5),o=n(11),i=n(123),a=n(27),s=n(28),c=n(65),u=n(8),l=n(73),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return a(!o(i.f,t,e),t[e])}},function(t,e,n){"use strict";var r=n(4),o=n(3),i=n(23),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):a(t)}:a},function(t,e,n){"use strict";var r=n(124),o=n(66);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){"use strict";var r=n(29),o=n(0),i=n(30),a=n(67),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},function(t,e,n){"use strict";var r=n(68);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){"use strict";var r=n(69),o=n(3),i=n(2).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){"use strict";var r,o,i=n(2),a=n(70),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){"use strict";var r=n(2).navigator,o=r&&r.userAgent;t.exports=o?String(o):""},function(t,e,n){"use strict";var r=n(46);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},function(t,e,n){"use strict";var r=n(4),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},function(t,e,n){"use strict";var r=n(5),o=n(3),i=n(74);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r=n(2),o=n(7),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){"use strict";var r=n(5),o=n(3);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){"use strict";var r=n(4),o=n(3),i=n(0),a=n(8),s=n(5),c=n(126).CONFIGURABLE,u=n(127),l=n(77),f=l.enforce,p=l.get,d=String,h=Object.defineProperty,v=r("".slice),m=r("".replace),g=r([].join),y=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=t.exports=function(t,e,n){"Symbol("===v(d(e),0,7)&&(e="["+m(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return i(this)&&p(this).source||u(this)}),"toString")},function(t,e,n){"use strict";var r,o,i,a=n(128),s=n(2),c=n(7),u=n(19),l=n(8),f=n(46),p=n(48),d=n(49),h=s.TypeError,v=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new h("Object already initialized");return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var g=p("state");d[g]=!0,r=function(t,e){if(l(t,g))throw new h("Object already initialized");return e.facade=t,u(t,g,e),e},o=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw new h("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){"use strict";var r=n(8),o=n(129),i=n(63),a=n(15);t.exports=function(t,e,n){for(var s=o(e),c=a.f,u=i.f,l=0;lu;)o(r,n=e[u++])&&(~a(l,n)||c(l,n));return l}},function(t,e,n){"use strict";var r=n(133);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},function(t,e,n){"use strict";var r=n(8),o=n(0),i=n(32),a=n(48),s=n(138),c=a("IE_PROTO"),u=Object,l=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=i(t);if(r(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},function(t,e,n){"use strict";var r,o,i,a=n(3),s=n(0),c=n(7),u=n(83),l=n(81),f=n(42),p=n(13),d=n(18),h=p("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):v=!0),!c(r)||a((function(){var t={};return r[h].call(t)!==t}))?r={}:d&&(r=u(r)),s(r[h])||f(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){"use strict";var r,o=n(1),i=n(140),a=n(50),s=n(49),c=n(142),u=n(74),l=n(48),f=l("IE_PROTO"),p=function(){},d=function(t){return" + + diff --git a/tutorial/index.html b/tutorial/index.html new file mode 100644 index 00000000..7354d705 --- /dev/null +++ b/tutorial/index.html @@ -0,0 +1,212 @@ + + + + + + Tutorial | LiteSVM + + + + + + + + +

# Tutorial

# Deploying programs

Most of the time we want to do more than just mess around with token transfers - +we want to test our own programs.

TIP

If you want to pull a Solana program from mainnet or devnet, use the solana program dump command from the Solana CLI.

To add a compiled program to our tests we can use the addProgramFromFile method.

Here's an example using a simple program (opens new window) +from the Solana Program Library that just does some logging:

import { LiteSVM, TransactionMetadata } from "litesvm";
+import {
+	Keypair,
+	LAMPORTS_PER_SOL,
+	PublicKey,
+	Transaction,
+	TransactionInstruction,
+} from "@solana/web3.js";
+
+test("spl logging", () => {
+	const programId = PublicKey.unique();
+	const svm = new LiteSVM();
+	svm.addProgramFromFile(programId, "program_bytes/spl_example_logging.so");
+	const payer = new Keypair();
+	svm.airdrop(payer.publicKey, BigInt(LAMPORTS_PER_SOL));
+	const blockhash = svm.latestBlockhash();
+	const ixs = [
+		new TransactionInstruction({
+			programId,
+			keys: [
+				{ pubkey: PublicKey.unique(), isSigner: false, isWritable: false },
+			],
+		}),
+	];
+	const tx = new Transaction();
+	tx.recentBlockhash = blockhash;
+	tx.add(...ixs);
+	tx.sign(payer);
+	// let's sim it first
+	const simRes = svm.simulateTransaction(tx);
+	const sendRes = svm.sendTransaction(tx);
+	if (sendRes instanceof TransactionMetadata) {
+		expect(simRes.meta().logs()).toEqual(sendRes.logs());
+		expect(sendRes.logs()[1]).toBe("Program log: static string");
+	} else {
+		throw new Error("Unexpected tx failure");
+	}
+});
+

# Time travel

Many programs rely on the Clock sysvar: for example, a mint that doesn't become available until after +a certain time. With litesvm you can dynamically overwrite the Clock sysvar using svm.setClock(). +Here's an example using a program that panics if clock.unix_timestamp is greater than 100 +(which is on January 1st 1970):

import {
+	Clock,
+	FailedTransactionMetadata,
+	LiteSVM,
+	TransactionMetadata,
+} from "litesvm";
+import {
+	Keypair,
+	LAMPORTS_PER_SOL,
+	PublicKey,
+	Transaction,
+	TransactionInstruction,
+} from "@solana/web3.js";
+
+test("clock", () => {
+	const programId = PublicKey.unique();
+	const svm = new LiteSVM();
+	svm.addProgramFromFile(programId, "program_bytes/litesvm_clock_example.so");
+	const payer = new Keypair();
+	svm.airdrop(payer.publicKey, BigInt(LAMPORTS_PER_SOL));
+	const blockhash = svm.latestBlockhash();
+	const ixs = [
+		new TransactionInstruction({ keys: [], programId, data: Buffer.from("") }),
+	];
+	const tx = new Transaction();
+	tx.recentBlockhash = blockhash;
+	tx.add(...ixs);
+	tx.sign(payer);
+	// set the time to January 1st 2000
+	const initialClock = svm.getClock();
+	initialClock.unixTimestamp = 1735689600n;
+	svm.setClock(initialClock);
+	// this will fail because the contract wants it to be January 1970
+	const failed = svm.sendTransaction(tx);
+	if (failed instanceof FailedTransactionMetadata) {
+		expect(failed.err().toString()).toContain("ProgramFailedToComplete");
+	} else {
+		throw new Error("Expected transaction failure here");
+	}
+	// so let's turn back time
+	const newClock = svm.getClock();
+	newClock.unixTimestamp = 50n;
+	svm.setClock(newClock);
+	const ixs2 = [
+		new TransactionInstruction({
+			keys: [],
+			programId,
+			data: Buffer.from("foobar"), // unused, just here to dedup the tx
+		}),
+	];
+	const tx2 = new Transaction();
+	tx2.recentBlockhash = blockhash;
+	tx2.add(...ixs2);
+	tx2.sign(payer);
+	// now the transaction goes through
+	const success = svm.sendTransaction(tx2);
+	expect(success).toBeInstanceOf(TransactionMetadata);
+});
+

See also: svm.warpToSlot(), which lets you jump to a future slot.

# Writing arbitrary accounts

LiteSVM lets you write any account data you want, regardless of +whether the account state would even be possible.

Here's an example where we give an account a bunch of USDC, +even though we don't have the USDC mint keypair. This is +convenient for testing because it means we don't have to +work with fake USDC in our tests:

import { LiteSVM } from "litesvm";
+import { PublicKey } from "@solana/web3.js";
+import {
+	getAssociatedTokenAddressSync,
+	AccountLayout,
+	ACCOUNT_SIZE,
+	TOKEN_PROGRAM_ID,
+} from "@solana/spl-token";
+
+test("infinite usdc mint", () => {
+	const owner = PublicKey.unique();
+	const usdcMint = new PublicKey(
+		"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
+	);
+	const ata = getAssociatedTokenAddressSync(usdcMint, owner, true);
+	const usdcToOwn = 1_000_000_000_000n;
+	const tokenAccData = Buffer.alloc(ACCOUNT_SIZE);
+	AccountLayout.encode(
+		{
+			mint: usdcMint,
+			owner,
+			amount: usdcToOwn,
+			delegateOption: 0,
+			delegate: PublicKey.default,
+			delegatedAmount: 0n,
+			state: 1,
+			isNativeOption: 0,
+			isNative: 0n,
+			closeAuthorityOption: 0,
+			closeAuthority: PublicKey.default,
+		},
+		tokenAccData,
+	);
+	const svm = new LiteSVM();
+	svm.setAccount(ata, {
+		lamports: 1_000_000_000,
+		data: tokenAccData,
+		owner: TOKEN_PROGRAM_ID,
+		executable: false,
+	});
+	const rawAccount = svm.getAccount(ata);
+	expect(rawAccount).not.toBeNull();
+	const rawAccountData = rawAccount?.data;
+	const decoded = AccountLayout.decode(rawAccountData);
+	expect(decoded.amount).toBe(usdcToOwn);
+});
+

# Copying Accounts from a live environment

If you want to copy accounts from mainnet or devnet, you can use the solana account command in the Solana CLI to save account data to a file.

Or, if you want to pull live data every time you test, you can do this with a few lines of code. Here's a simple example that pulls account data from devnet +and passes it to LiteSVM:

import { LiteSVM } from "litesvm";
+import { PublicKey, Connection } from "@solana/web3.js";
+
+test("copy accounts from devnet", async () => {
+	const owner = PublicKey.unique();
+	const usdcMint = new PublicKey(
+		"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
+	);
+	const connection = new Connection("https://api.devnet.solana.com");
+	const accountInfo = await connection.getAccountInfo(usdcMint);
+	// the rent epoch goes above 2**53 which breaks web3.js, so just set it to 0;
+	accountInfo.rentEpoch = 0;
+	const svm = new LiteSVM();
+	svm.setAccount(usdcMint, accountInfo);
+	const rawAccount = svm.getAccount(usdcMint);
+	expect(rawAccount).not.toBeNull();
+});
+

# Other features

Other things you can do with litesvm include:

  • Changing the max compute units and other compute budget behaviour using the withComputeBudget method.
  • Disable transaction signature checking using svm.withSigverify(false).
  • Find previous transactions using the getTransaction method.

# When should I use solana-test-validator?

While litesvm is faster and more convenient, it is also less like a real RPC node. +So solana-test-validator is still useful when you need to call RPC methods that LiteSVM +doesn't support, or when you want to test something that depends on real-life validator behaviour +rather than just testing your program and client code.

In general though I would recommend using litesvm wherever possible, as it will make your life +much easier.

# Supported platforms

litesvm is supported on Linux x64 and MacOS targets. If you find a platform that is not supported +but which can run the litesvm Rust crate, please open an issue.

+ + +