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

@project-serum/anchor

Package Overview
Dependencies
Maintainers
5
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@project-serum/anchor - npm Package Versions

1
8

0.11.0

Diff

Changelog

Source

[0.11.0] - 2021-07-03

Features

  • lang: Add fallback functions (#457).
  • lang: Add feature flag for using the old state account discriminator. This is a temporary flag for those with programs built prior to v0.7.0 but want to use the latest Anchor version. Expect this to be removed in a future version (#446).
  • lang: Add generic support to Accounts (#496).

Breaking Changes

  • cli: Remove .spec suffix on TypeScript tests files (#441).
  • lang: Remove belongs_to constraint (#459).
armaniferrante
published 0.10.0 •

Changelog

Source

[0.10.0] - 2021-06-27

Features

  • lang: Add #[account(address = <expr>)] constraint for asserting the address of an account (#400).
  • lang: Add #[account(init, token = <mint-target>, authority = <token-owner-target>...)] constraint for initializing SPL token accounts as program derived addresses for the program. Can be used when initialized via seeds or associated (#400).
  • lang: Add associated_seeds! macro for generating signer seeds for CPIs signed by an #[account(associated = <target>)] account (#400).
  • cli: Add [scripts] section to the Anchor.toml for specifying workspace scripts that can be run via anchor run <script> (#400).
  • cli: [clusters.<network>] table entries can now also use { address = <base58-str>, idl = <filepath-str> } to specify workspace programs (#400).

Breaking Changes

  • cli: Remove --yarn flag in favor of using npx (#432).
armaniferrante
published 0.9.0 •

Changelog

Source

[0.9.0] - 2021-06-15

Features

  • lang: Instruction data is now available to accounts constraints (#386).
  • lang: Initialize program derived addresses with accounts constraints (#386).

Breaking Changes

  • lang: Event field names in IDLs are now mixed case. (#379).
  • lang: Accounts trait now accepts an additional &[u8] parameter (#386).
armaniferrante
published 0.8.1-beta.1 •

armaniferrante
published 0.8.0 •

Changelog

Source

[0.8.0] - 2021-06-10

Features

  • cli: Add --program-name option for build command to build a single program at a time (#362).
  • cli, client: Parse custom cluster urls from str (#369).
  • cli, client, lang: Update solana toolchain to v1.7.1 (#368).
  • ts: Instruction decoding and formatting (#372).
  • lang: Add #[account(close = <destination>)] constraint for closing accounts and sending the rent exemption lamports to a specified destination account (#371).

Fixes

  • lang: Allows one to use remaining_accounts with CpiContext by implementing the ToAccountMetas trait on CpiContext (#351).

Breaking

  • lang, ts: Framework defined error codes are introduced, reserving error codes 0-300 for Anchor, and 300 and up for user defined error codes (#354).
armaniferrante
published 0.7.0 •

Changelog

Source

[0.7.0] - 2021-05-31

Features

  • cli: Add global options for override Anchor.toml values (#313).
  • spl: Add SetAuthority instruction (#307).
  • spl: Add init and close open orders instructions (#245).
  • lang: constraint = <expression> added as a replacement for (the now deprecated) string literal constraints (#341).
  • lang: Span information is now preserved, providing informative compiler error messages (#341).
  • ts: Address metadata is now optional for anchor.workspace clients (#310).

Breaking Changes

  • ts: Retrieving deserialized accounts from the <program>.account.<my-account> and <program>.state namespaces now require explicitly invoking the fetch API. For example, program.account.myAccount(<address>) and program.state() is now program.account.myAccount.fetch(<address>) and program.state.fetch() (#322).
  • lang: #[account(associated)] now requires init to be provided to create an associated account. If not provided, then the address will be assumed to exist, and a constraint will be added to ensure the correctness of the address (#318).
  • lang, ts: Change account discriminator pre-image of the #[state] account discriminator to be namespaced by "state:" (#320).
  • lang, ts: Change domain delimiters for the pre-image of the instruction sighash to be a single colon : to be consistent with accounts (#321).
  • lang: Associated constraints no longer automatically implement mut (#341).
  • lang: Associated space constraints must now be literal integers instead of literal strings (#341).
armaniferrante
published 0.6.1-beta.1 •

armaniferrante
published 0.6.0 •

Changelog

Source

[0.6.0] - 2021-05-23

Features

  • ts: Add program.simulate namespace (#266).
  • ts: Introduce Address type, allowing one to use Base 58 encoded strings in public APIs (#304).
  • ts: Replace deprecated web3.Account with web3.Signer in public APIs (#296).
  • ts: Generated anchor.workspace clients can now be customized per network with [cluster.<slug>] in the Anchor.toml (#308).
  • cli: Add yarn flag to test command (#267).
  • cli: Add --skip-build flag to test command (301).
  • cli: Add anchor shell command to spawn a node shell populated with an Anchor.toml based environment (#303).

Breaking Changes

  • cli: The Anchor.toml's wallet and cluster settings must now be under the [provider] table (#305).
  • ts: Event coder decode API changed to decode strings directly instead of buffers (#292).
  • ts: Event coder encode API removed (#292).
armaniferrante
published 0.6.0-beta.3 •

armaniferrante
published 0.6.0-beta.2 •

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