Skip to content

Commit

Permalink
Merge pull request #75 from algorandfoundation/feat-export
Browse files Browse the repository at this point in the history
feat: export compile option types and ptypeToArc4EncodedType functions needed for stub implementation
  • Loading branch information
boblat authored Jan 13, 2025
2 parents 65e865d + 02bbad0 commit d8f1b2e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 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": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"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: 2 additions & 2 deletions packages/algo-ts/src/compiled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export type CompiledLogicSig = {
/**
* Options for compiling a contract
*/
type CompileContractOptions = {
export type CompileContractOptions = {
/**
* Number of extra program pages, defaults to minimum required for contract
*/
Expand Down Expand Up @@ -87,7 +87,7 @@ type CompileContractOptions = {
/**
* Options for compiling a logic signature
*/
type CompileLogicSigOptions = {
export type CompileLogicSigOptions = {
/**
* Template variables to substitute into the contract, key should be without the prefix, must evaluate to a compile time constant
* and match the type of the template var declaration
Expand Down
2 changes: 1 addition & 1 deletion packages/algo-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export { TransactionType } from './transactions'
export { LogicSig, logicsig } from './logic-sig'
export { TemplateVar } from './template-var'
export { Base64, Ec, Ecdsa, VrfVerify } from './op-types'
export { compile, CompiledContract, CompiledLogicSig } from './compiled'
export { compile, CompiledContract, CompiledLogicSig, CompileContractOptions, CompileLogicSigOptions } from './compiled'
export { MutableArray } from './mutable-array'
export { emit } from './arc-28'
3 changes: 2 additions & 1 deletion src/awst_build/ptypes/for-export.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* This file aggregates all ptypes into a single export for external consumption of the compiler api */
export * from './index'
export { ptypeToArc4EncodedType } from '../arc4-util'
export * from './arc4-types'
export * from './index'

0 comments on commit d8f1b2e

Please sign in to comment.