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

@canvas-js/interfaces

Package Overview
Dependencies
Maintainers
3
Versions
223
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.1.3 to 0.2.0

lib/addresses.d.ts

12

package.json
{
"name": "@canvas-js/interfaces",
"version": "0.1.3",
"version": "0.2.0",
"type": "module",

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

"@ava/typescript": "^3.0.1",
"@canvas-js/chain-cosmos": "0.1.3",
"@canvas-js/chain-ethereum": "0.1.3",
"@canvas-js/chain-solana": "0.1.3",
"@canvas-js/chain-substrate": "0.1.3",
"@canvas-js/interfaces": "0.1.3",
"@canvas-js/chain-cosmos": "0.2.0",
"@canvas-js/chain-ethereum": "0.2.0",
"@canvas-js/chain-solana": "0.2.0",
"@canvas-js/chain-substrate": "0.2.0",
"@canvas-js/interfaces": "0.2.0",
"@types/sha.js": "^2.4.0",

@@ -27,0 +27,0 @@ "ava": "^5.1.0",

@@ -7,13 +7,12 @@ # @canvas-js/interfaces

### Default Canvas types
* **[Action](https://github.com/canvasxyz/canvas/blob/main/packages/interfaces/src/actions.ts)**:
- **[Action](https://github.com/canvasxyz/canvas/blob/main/packages/interfaces/src/actions.ts)**:
An object that carries the signed data, signature, and optionally a `session` field
if the payload was signed using a session address.
* **[ActionPayload](https://github.com/canvasxyz/canvas/blob/main/packages/interfaces/src/actions.ts)**:
- **[ActionPayload](https://github.com/canvasxyz/canvas/blob/main/packages/interfaces/src/actions.ts)**:
The default signed data for a user interaction. This includes a function call and its arguments.
* **[Session](https://github.com/canvasxyz/canvas/blob/main/packages/interfaces/src/sessions.ts)**:
- **[Session](https://github.com/canvasxyz/canvas/blob/main/packages/interfaces/src/sessions.ts)**:
An object that carries the signed data and signature for a session.
* **[SessionPayload](https://github.com/canvasxyz/canvas/blob/main/packages/interfaces/src/sessions.ts)**:
- **[SessionPayload](https://github.com/canvasxyz/canvas/blob/main/packages/interfaces/src/sessions.ts)**:
The default signed data for initiating a session. This includes

@@ -29,6 +28,5 @@ a signature, timestamp, and for applications that read from blockchain data,

### Custom Actions
### Custom Canvas types
Canvas will also support custom action payloads. More documentation on
this will be included in an upcoming release.
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