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

matchstick-as

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matchstick-as - npm Package Compare versions

Comparing version 0.0.53 to 0.1.3

12

assembly/index.ts
import { Address, ethereum } from "@graphprotocol/graph-ts";
import { log } from "./log";
import { critical } from "./log";

@@ -7,3 +7,3 @@ export { clearStore, logStore } from "./store";

export { assert } from "./assert";
export { log } from "./log";
export { critical, success, error, info, debug, warning } from "./log";

@@ -33,3 +33,3 @@ const CLASS_IN_FINISHED_STATE_ERROR_MESSAGE =

signature: string;
args: ethereum.Value[];
args: ethereum.Value[] = [];

@@ -46,3 +46,3 @@ constructor(contractAddress: Address, fnName: string, fnSignature: string) {

} else {
log.critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE);
critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE);
}

@@ -64,3 +64,3 @@ return this;

} else {
log.critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE);
critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE);
}

@@ -81,3 +81,3 @@ }

} else {
log.critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE);
critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE);
}

@@ -84,0 +84,0 @@ }

@@ -6,35 +6,33 @@ export declare namespace log {

export namespace log {
export enum Level {
CRITICAL = 0,
ERROR = 1,
WARNING = 2,
INFO = 3,
DEBUG = 4,
SUCCESS = 5
}
export enum Level {
CRITICAL = 0,
ERROR = 1,
WARNING = 2,
INFO = 3,
DEBUG = 4,
SUCCESS = 5
}
export function critical(msg: string): void {
log(Level.CRITICAL, msg);
}
export function critical(msg: string): void {
log.log(Level.CRITICAL, msg);
}
export function error(msg: string): void {
log(Level.ERROR, msg);
}
export function error(msg: string): void {
log.log(Level.ERROR, msg);
}
export function warning(msg: string): void {
log(Level.WARNING, msg);
}
export function warning(msg: string): void {
log.log(Level.WARNING, msg);
}
export function info(msg: string): void {
log(Level.INFO, msg);
}
export function info(msg: string): void {
log.log(Level.INFO, msg);
}
export function debug(msg: string): void {
log(Level.DEBUG, msg);
}
export function debug(msg: string): void {
log.log(Level.DEBUG, msg);
}
export function success(msg: string): void {
log(Level.SUCCESS, msg);
}
export function success(msg: string): void {
log.log(Level.SUCCESS, msg);
}
{
"name": "matchstick-as",
"version": "0.0.53",
"version": "0.1.3",
"description": "Helper library for writing subgraph unit tests in Assemblyscript",

@@ -5,0 +5,0 @@ "dependencies": {

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