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

@canvas-js/interfaces

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canvas-js/interfaces - npm Package Compare versions

Comparing version 0.0.6 to 0.0.8

9

lib/actions.d.ts

@@ -0,2 +1,10 @@

import type { Chain, ChainId } from "./contracts.js";
export declare type ActionArgument = null | boolean | number | string;
export declare type Block = {
chain: Chain;
chainId: ChainId;
blocknum: number;
blockhash: string;
timestamp: number;
};
export declare type ActionContext = {

@@ -6,2 +14,3 @@ from: string;

timestamp: number;
block?: Block;
};

@@ -8,0 +17,0 @@ export declare type ActionPayload = ActionContext & {

6

lib/contracts.d.ts

@@ -0,6 +1,8 @@

export declare type Chain = "eth" | "cosmos" | "solana" | "substrate";
export declare type ChainId = number;
export declare type ContractMetadata = {
chain: string;
chainId: number;
chain: Chain;
chainId: ChainId;
address: string;
abi: string[];
};

@@ -0,1 +1,2 @@

import type { Block } from "./actions.js";
export declare type SessionPayload = {

@@ -7,2 +8,3 @@ from: string;

session_duration: number;
block?: Block;
};

@@ -9,0 +11,0 @@ export declare type Session = {

{
"name": "@canvas-js/interfaces",
"version": "0.0.6",
"version": "0.0.8",
"type": "module",

@@ -5,0 +5,0 @@ "author": "Canvas Technology Corporation (https://canvas.xyz)",

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