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

@massalabs/massa-as-sdk

Package Overview
Dependencies
Maintainers
5
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@massalabs/massa-as-sdk

Massa assemblyscript sdk

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
64
decreased by-25.58%
Maintainers
5
Weekly downloads
 
Created
Source

Massa-as-sdk

check-code-coverage

Massa-as-sdk is a collection of tools, objects, and functions specifically designed for Massa smart contracts in AssemblyScript. This SDK enables you to import object classes, such as address and storage objects, and use them without having to write them from scratch every time. Additionally, it allows you to use Massa's ABI functions.

Massa-as-sdk is part of the Massa smart contract tooling. To learn more about Massa and its capabilities, visit the Massa website.

Installation

To use Massa-as-sdk in your AssemblyScript project, simply add it as a dependency:

npm i --save-dev @massalabs/massa-as-sdk

Usage

After installing Massa-as-sdk, you can import the object classes and functions that you need in your AssemblyScript smart contract.

For example, to use the generateEvent function and generate a "Hello, World!" event, you can import and use it like this:

import { generateEvent } from '@massalabs/massa-as-sdk';

// This main function is called automatically when the smart contract is executed by the blockchain.
// The function argument is unused and can be safely ignored.
export function main(_: StaticArray<u8>): void {
  generateEvent(`Hello, World!`);
}

Similarly, you can use other classes and functions provided by Massa-as-sdk. Refer to the technical documentation for more information.

Contributing

We welcome contributions from the community!

If you would like to contribute to Massa-as-sdk, please read the CONTRIBUTING file.

License

Massa-as-sdk is released under the MIT License.

Powered By

Massa-as-sdk is developed with love by MassaLabs and powered by a variety of open-source projects.

Keywords

FAQs

Package last updated on 10 Jun 2024

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