Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

beaker-ts

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beaker-ts

EXPERIMENTAL

  • 0.0.17
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
186
increased by148%
Maintainers
1
Weekly downloads
 
Created
Source

Beaker Typescript Client Generator

EXPERIMENTAL

:warning: zero tests, please report issues

Generate a client Spec

Use beaker-pyteal to create an Application and write the app spec to json

import json
from beaker import Application
from beaker.client import ApplicationClient

class App(Application):
    #...

with open("app.json", "w") as f:
  f.write(json.dumps(App.application_spec()))

Generate a TypeScript Client

In a node project directory install beaker-ts

npm install beaker-ts

Generate the client using the beaker command

npx beaker generate  $PATH_TO_APP_SPEC_JSON $PATH_TO_WHERE_CLIENT_SHOULD_BE_WRITTEN 

This should create a new file called ${NAME_OF_APP}_client.ts

The client can now be imported and used to create or call the app!

See the examples directory for usage examples.

Please report issues (bound to be lots)

FAQs

Package last updated on 02 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc