Docs

Discover how Phala's AI Agent Contract offers the essential tools to develop and profit from intelligent applications.

Explore Now

@phala/fn 0.2.3 release: Introducing standalone mode

2023-11-14

The @phala/fn 0.2.3 has been released. The major changes in the latest version include:

  1. Update to latest beta version of @phala/sdk 0.5.5-nightly-20231111
  1. Added a new command line argument, --pruntimeURL, which allows you to select the PRuntime endpoint to connect to.
  1. Added standalone mode, which means you can use it with npx or bunx to build your JavaScript/TypeScript.

Introducing to standalone mode

This improvement allows you to create a JavaScript/TypeScript file and easily generate the final artifact in the dist folder. Simply run npx @phala/fn@latest build my_phat_contract.ts, and the artifact will be generated in the same location as your my_phat_contract.ts. It reduce the steps you give a try for Phat Contract.

If you have already installed Bun, you can also give bunx a try: bunx @phala/fn build my_phat_contract.ts . It works!

About Phala

Phala Network is a decentralized cloud that offers secure and scalable computing for Web3.

With Phat Contracts, an innovative programming model enabling trustless off-chain computation, developers can create new Web3 use cases.

Get the latest Phala Content Straight To Your Inbox.