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

zkt-sdk

Package Overview
Dependencies
Maintainers
1
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.0.4 to 1.0.5

src/config/abi.ts

3

package.json
{
"name": "zkt-sdk",
"version": "1.0.4",
"version": "1.0.5",
"description": "zkToken | JS SDK",

@@ -24,2 +24,3 @@ "main": "src/index.js",

"dotenv": "^16.4.5",
"ethers": "^6.12.1",
"ts-node": "^10.9.2",

@@ -26,0 +27,0 @@ "typescript": "^5.4.3"

@@ -8,17 +8,17 @@ import axios from "axios";

export default class ZkEth {
export default class Authentication {
private SXT_SECRETS_PROXY_URL: string = "";
private SXT_BASE_URL: string = "";
constructor(walletBaseUrl: string, spBaseUrl: string) {
constructor(baseUrl: string, secretsProxyUrl: string) {
if (
typeof walletBaseUrl === "string" &&
walletBaseUrl !== "" &&
typeof spBaseUrl === "string" &&
spBaseUrl !== ""
typeof baseUrl === "string" &&
baseUrl !== "" &&
typeof secretsProxyUrl === "string" &&
secretsProxyUrl !== ""
) {
this.SXT_SECRETS_PROXY_URL = spBaseUrl;
this.SXT_BASE_URL = walletBaseUrl;
this.SXT_SECRETS_PROXY_URL = secretsProxyUrl;
this.SXT_BASE_URL = baseUrl;
} else {
throw new Error("Invalid baseurl input provided");
throw new Error("Invalid baseUrl or secretsProxyUrl provided");
}

@@ -25,0 +25,0 @@ }

import ZkEth from "zkt-sdk";
const zkEth = new ZkEth("<SXT_ENDPOINT>", "<SECRETS_PROXY_ENDPOINT>");
console.log(zkEth);
const zkEth = new ZkEth();
const auth = zkEth.authentication("<SXT_ENDPOINT>", "<SECRETS_PROXY_ENDPOINT>");
console.log(auth);

@@ -1,3 +0,3 @@

import ZkEth from "./authentication/auth";
import ZkEth from "./zketh/zketh";
export default ZkEth;

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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