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

zkt-sdk

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zkt-sdk - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

dist/examples/index.html

2

dist/node/zketh/zketh.js
import { ethers } from "ethers";
import { getContracts, getTokenList, supportedChains, } from "../config/deployments";
import { getContracts, getTokenList, supportedChains, } from "../config/utils";
import { ERC20ABI, zkETHABI } from "../config/abi";

@@ -4,0 +4,0 @@ import Authentication from "../authentication/auth";

{
"name": "zkt-sdk",
"version": "1.1.10",
"version": "1.1.11",
"description": "zkToken | JS SDK",

@@ -21,5 +21,6 @@ "main": "src/index.ts",

"scripts": {
"copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css dist/",
"test-web": "cp ./src/examples/index.html ./dist/web && webpack serve --mode production",
"build-web": "webpack --mode production",
"build-node": "tsc",
"build-web": "rimraf dist/web && webpack --mode production",
"build-node": "rimraf dist/node && tsc && yarn copy-files",
"pub": "npm version patch --force && npm publish"

@@ -48,2 +49,4 @@ },

"@types/node": "^20.11.30",
"copyfiles": "^2.4.1",
"rimraf": "^5.0.7",
"ts-loader": "^9.5.1",

@@ -50,0 +53,0 @@ "webpack": "^5.91.0",

@@ -7,2 +7,3 @@ # zkt-sdk

### As a package for typescript project

@@ -18,2 +19,16 @@

### Example in React Project
```js
import { ZkEth } from "zkt-sdk";
import { ethers } from 'ethers';
const provider = new ethers.BrowserProvider(window.ethereum, { name: 'polygon', chainId: 137 });
const zkEth = new ZkEth(provider, 137);
await zkEth.depositNative(33, '0x3077Bf667dBD81d3c718684Da4DE4Dc8448220E1', 0)
```
### As a bundled js file for the web

@@ -20,0 +35,0 @@

@@ -10,3 +10,3 @@ import { ethers } from "ethers";

supportedChains,
} from "../config/deployments";
} from "../config/utils";
import { ERC20ABI, zkETHABI } from "../config/abi";

@@ -13,0 +13,0 @@ import Authentication from "../authentication/auth";

{
"compilerOptions": {
"rootDirs": ["src"],
"rootDirs": [
"src"
],
"outDir": "dist/node",
"lib": ["es2020"],
"lib": [
"es2020"
],
"target": "es2020",

@@ -10,4 +14,6 @@ "module": "esnext",

"esModuleInterop": true,
"types": ["node"]
}
}
"types": [
"node"
]
},
}

@@ -17,6 +17,10 @@ const path = require("path");

},
{
test: /\.svg$/,
type: 'asset/resource'
}
],
},
resolve: {
extensions: [".tsx", ".ts", ".js"],
extensions: [".tsx", ".ts", ".js", ".svg"],
},

@@ -23,0 +27,0 @@ devtool: "source-map",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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