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.2
  • Source
  • npm
  • Socket score

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

Beaker Typescript Client Generator

EXPERIMENTAL

:warning: Barely works, zero tests, hardcoded paths

Example

git clone this repo and cd into it

rm src/examples/hello/hellobeaker_client.ts
npm run gen src/examples/hello/hello.json src/examples/hello
npm run hello

Generate a client

To generate a client, 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):
    #...

#...

app_client = ApplicationClient(algod_client, App(), signer=signer)
with open("app.json", "w") as f:
  f.write(json.dumps(app_client.application_spec()))

npm run gen $PATH_TO_APP_SPEC_JSON $PATH_TO_WHERE_CLIENT_SHOULD_BE_WRITTEN 

Please report issues (bound to be lots)

FAQs

Package last updated on 31 Aug 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