Giter Club home page Giter Club logo

massa-as-sdk's Introduction

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.

massa-as-sdk's People

Contributors

ben-rey avatar peterjah avatar thykof avatar aurelienft avatar massabot avatar eitu33 avatar greglibert avatar sydhds avatar batigencho avatar sebastienvalla avatar qdrn avatar 0xswapfeeder avatar elli610 avatar slnpons avatar 0xmazout avatar trottoir avatar leo-besancon avatar dependabot[bot] avatar gterzian avatar asapsegfault avatar damip avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.