Socket
Socket
Sign inDemoInstall

@project-serum/anchor

Package Overview
Dependencies
65
Maintainers
6
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @project-serum/anchor

Anchor client


Version published
Maintainers
6
Install size
33.4 MB
Created

Changelog

Source

[0.25.0] - 2022-07-05

Features

  • lang: Add realloc, realloc::payer, and realloc::zero as a new constraint group for program accounts (#1986).
  • lang: Add PartialEq and Eq for anchor_lang::Error (#1544).
  • cli: Add --skip-build to anchor publish (#1786).
  • cli: Add --program-keypair to anchor deploy (#1786).
  • cli: Add compilation optimizations to cli template (#1807).
  • cli: build now adds docs to idl. This can be turned off with --no-docs (#1561).
  • cli: Add b and t aliases for build and test respectively (#1823).
  • spl: Add more derived traits to TokenAccount to Mint (#1818).
  • spl: Add sync_native token program CPI wrapper function (#1833).
  • cli: Allow passing arguments to an underlying script with anchor run (#1914).
  • ts: Implement a coder for system program (#1920).
  • ts: Add program.coder.types for encoding/decoding user-defined types (#1931).
  • client: Add send_with_spinner_and_config function to RequestBuilder (#1926).
  • ts: Implement a coder for SPL associated token program (#1939).
  • ts: verbose error for missing ANCHOR_WALLET variable when using NodeWallet.local() (#1958).
  • ts: Add MethodsBuilder#accountsStrict for strict typing on ix account input (#2019).
  • Update solana dependencies to 1.10.29 (#2027).

Fixes

  • cli: Fix anchor keys list reading the target folder in the wrong path (#2063).
  • cli: Move overflow-checks into workspace Cargo.toml so that it will not be ignored by compiler (#1806).
  • lang: Fix missing account name information when deserialization fails when using init or zero (#1800).
  • ts: Expose the wallet's publickey on the Provider (#1845).

Breaking

  • ts: Change BROWSER env variable to ANCHOR_BROWSER (#1233).
  • ts: Add transaction signature to EventCallback parameters (#1851).
  • ts: Change EventParser#parseLogs implementation to be a generator instead of callback function (#2018).
  • lang: Adds a new &mut reallocs: BTreeSet<Pubkey> argument to Accounts::try_accounts (#1986).

Readme

Source

@project-serum/anchor

npm Docs

TypeScript client for Anchor programs.

Note

  • @project-serum/anchor depends on node.js native modules. Therefore, webpack 5 will not work with current version. You will either need to rollback to webpack 4, or use a polyfill for each missing dependency.

FAQs

Last updated on 05 Jul 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc