VmStack
For the complete documentation index, see llms.txt
@midnight-ntwrk/onchain-runtime v3.0.0
@midnight-ntwrk/onchain-runtime / VmStack
Class: VmStack
특정 시점의 VM 스택 상태를 나타냅니다. 스택은 StateValue 배열로, 각 요소에는 "강함" 또는 "약함" 주석이 달려 있습니다. 이는 해당 값을 온체인에 저장할 수 있는지 여부를 나타냅니다.
Constructors
new VmStack()
new VmStack(): VmStack
Returns
Methods
get()
get(idx): undefined | StateValue
Parameters
idx
number
Returns
undefined | StateValue
isStrong()
isStrong(idx): undefined | boolean
Parameters
idx
number
Returns
undefined | boolean
length()
length(): number
Returns
number
push()
push(value, is_strong): void
Parameters
value
is_strong
boolean
Returns
void
removeLast()
removeLast(): void
Returns
void
toString()
toString(compact?): string
Parameters
compact?
boolean
Returns
string