Skip to content

Commit

Permalink
feat: implement arg, len op codes via context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
boblat committed Dec 19, 2024
1 parent 895dfbb commit 5505df2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/algo-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@algorandfoundation/algorand-typescript",
"version": "0.0.1-alpha.22",
"version": "0.0.1-alpha.23",
"description": "This package contains definitions for the types which comprise Algorand TypeScript which can be compiled to run on the Algorand Virtual Machine using the Puya compiler.",
"private": false,
"main": "index.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/algo-ts/src/op.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ctxMgr } from './execution-context'

import {
AddwType,
ArgType,
BalanceType,
Base64DecodeType,
BitLengthType,
Expand Down Expand Up @@ -37,6 +38,7 @@ import {
ITxnType,
JsonRefType,
Keccak256Type,
LenType,
MulwType,
OnlineStakeType,
OpsNamespace,
Expand Down Expand Up @@ -82,6 +84,7 @@ const createObjectProxy = <TName extends ObjectKeys>(name: TName) => {
}

export const addw: AddwType = createFunctionProxy('addw')
export const arg: ArgType = createFunctionProxy('arg')
export const balance: BalanceType = createFunctionProxy('balance')
export const base64Decode: Base64DecodeType = createFunctionProxy('base64Decode')
export const bitLength: BitLengthType = createFunctionProxy('bitLength')
Expand Down Expand Up @@ -109,6 +112,7 @@ export const gloadBytes: GloadBytesType = createFunctionProxy('gloadBytes')
export const gloadUint64: GloadUint64Type = createFunctionProxy('gloadUint64')
export const itob: ItobType = createFunctionProxy('itob')
export const keccak256: Keccak256Type = createFunctionProxy('keccak256')
export const len: LenType = createFunctionProxy('len')
export const minBalance: BalanceType = createFunctionProxy('minBalance')
export const mulw: MulwType = createFunctionProxy('mulw')
export const replace: ReplaceType = createFunctionProxy('replace')
Expand Down

0 comments on commit 5505df2

Please sign in to comment.