@canvas-js/interfaces
Advanced tools
Comparing version 0.0.6 to 0.0.8
@@ -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 & { |
@@ -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)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4833
127