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

@stfy/test-contract-sdk

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stfy/test-contract-sdk

Implements JS Contract SDK core functionality, rpc services, tools and utilities.

  • 1.0.11
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

JS SDK CONTRACT CORE

Implements JS Contract SDK core functionality, rpc services, tools and utilities.

Getting Started

Run following in command line:

npm i @wavesenterpise/contract-core

Create contract.ts as follows

import {Action, Contract, ContractState, Param, State} from '@wavesenterpise/contract-core';

@Contract
class MyContract {
    @State state: ContractState;

    @Action
    greeting(@Param('name') name: string) {
        this.state.set('greeting', `Hello, ${name}`);
    }
}

License

This project is licensed under the MIT License.

FAQs

Package last updated on 18 May 2022

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