Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "eip-712", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Utility functions that can help with signing and verifying EIP-712 based messages", | ||
@@ -23,3 +23,3 @@ "author": "Maarten Zuidhoorn <maarten@zuidhoorn.com>", | ||
"engines": { | ||
"node": "10" | ||
"node": ">=10" | ||
}, | ||
@@ -26,0 +26,0 @@ "files": [ |
# `eip-712` | ||
![Version](https://img.shields.io/npm/v/Mrtenz/eip-712) ![License](https://img.shields.io/github/license/Mrtenz/eip-712) [![Travis CI](https://travis-ci.com/Mrtenz/eip-712.svg?branch=master)](https://travis-ci.com/Mrtenz/eip-712) [![codecov](https://codecov.io/gh/Mrtenz/eip-712/branch/master/graph/badge.svg)](https://codecov.io/gh/Mrtenz/eip-712) | ||
![Version](https://img.shields.io/npm/v/eip-712) ![License](https://img.shields.io/github/license/Mrtenz/eip-712) [![Travis CI](https://travis-ci.com/Mrtenz/eip-712.svg?branch=master)](https://travis-ci.com/Mrtenz/eip-712) [![codecov](https://codecov.io/gh/Mrtenz/eip-712/branch/master/graph/badge.svg)](https://codecov.io/gh/Mrtenz/eip-712) | ||
@@ -109,3 +109,3 @@ This is a library for Node.js and web browsers with some utility functions that can help with signing and verifying [EIP-712](https://eips.ethereum.org/EIPS/eip-712) based messages. It is fully written in TypeScript. | ||
const getTypeHash = { /*...*/ }; | ||
const typedData = { /*...*/ }; | ||
console.log(getTypeHash(typedData, 'EIP712Domain').toString('hex')); // 8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f | ||
@@ -121,3 +121,3 @@ ``` | ||
const getTypeHash = { /*...*/ }; | ||
const typedData = { /*...*/ }; | ||
console.log(encodeType(typedData, 'EIP712Domain')); // EIP712Domain(string name,string version,uint256 chainId,address verifyingContract) | ||
@@ -133,5 +133,5 @@ ``` | ||
const getTypeHash = { /*...*/ }; | ||
const typedData = { /*...*/ }; | ||
console.log(getDependencies(typedData, 'EIP712Domain')); // ['EIP712Domain'] | ||
console.log(getDependencies(typedData, 'Mail')); // ['Mail', 'Person'] | ||
``` |
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
67062