Comparing version 1.3.1 to 1.3.2
@@ -1,2 +0,2 @@ | ||
export declare const supportedChains: readonly [137, 17000]; | ||
export declare const supportedChains: readonly ["137", "17000"]; | ||
export type SupportedChain = typeof supportedChains[number]; | ||
@@ -13,7 +13,3 @@ export declare const zkETHContractItem: readonly ["zkETH", "zkETHRelayer"]; | ||
}; | ||
export declare const tokenLogos: { | ||
[K in TokenName]: string; | ||
}; | ||
export declare const getTokenList: (chainId: SupportedChain) => TokenListType; | ||
export declare const getTokenListWithMetadata: (chainId: SupportedChain) => { | ||
export type TokenMetadataType = { | ||
chainId: string; | ||
@@ -24,3 +20,11 @@ name: "usdt" | "usdc" | "link" | "wsteth"; | ||
native: boolean; | ||
}[]; | ||
}; | ||
export type TokenListWithMetadataType = { | ||
[key: string]: TokenMetadataType[]; | ||
}; | ||
export declare const tokenLogos: { | ||
[K in TokenName]: string; | ||
}; | ||
export declare const getTokenList: (chainId: SupportedChain) => TokenListType; | ||
export declare const getTokenListWithMetadata: (chainId: SupportedChain) => TokenMetadataType[]; | ||
export declare const getContracts: (chainId: SupportedChain) => ContractListType; |
@@ -9,4 +9,4 @@ "use strict"; | ||
exports.supportedChains = [ | ||
137, // polygon | ||
17000 // holesky | ||
'137', // polygon | ||
'17000' // holesky | ||
]; | ||
@@ -16,3 +16,3 @@ exports.zkETHContractItem = ["zkETH", "zkETHRelayer"]; | ||
const tokenLists = { | ||
137: { | ||
'137': { | ||
usdt: "0xc2132d05d31c914a87c6611c10748aeb04b58e8f", | ||
@@ -23,3 +23,3 @@ usdc: "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", | ||
}, | ||
17000: { | ||
'17000': { | ||
usdt: '0xe6b7B021d8eE68E0A514e8a1a8aEEd2D6129724c', | ||
@@ -26,0 +26,0 @@ usdc: '0xe6b7B021d8eE68E0A514e8a1a8aEEd2D6129724c', |
import ZkEth from "./zketh/zketh.js"; | ||
export { ZkEth }; | ||
import { Signer, ethers } from "ethers"; | ||
export { ZkEth, Signer, ethers }; | ||
export * from "./config/utils"; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -6,4 +20,7 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ZkEth = void 0; | ||
exports.ethers = exports.ZkEth = void 0; | ||
const zketh_js_1 = __importDefault(require("./zketh/zketh.js")); | ||
exports.ZkEth = zketh_js_1.default; | ||
const ethers_1 = require("ethers"); | ||
Object.defineProperty(exports, "ethers", { enumerable: true, get: function () { return ethers_1.ethers; } }); | ||
__exportStar(require("./config/utils"), exports); |
@@ -12,2 +12,3 @@ import { ethers } from "ethers"; | ||
private tokenList; | ||
private tokenListsWithMetadata; | ||
private contracts; | ||
@@ -14,0 +15,0 @@ constructor(signer: ethers.Signer, chainId: SupportedChain); |
@@ -73,2 +73,3 @@ "use strict"; | ||
this.tokenList = (0, utils_js_1.getTokenList)(this.chainId); | ||
this.tokenListsWithMetadata = (0, utils_js_1.getTokenListWithMetadata)(this.chainId); | ||
this.contracts = (0, utils_js_1.getContracts)(this.chainId); | ||
@@ -75,0 +76,0 @@ } |
{ | ||
"name": "zkt-sdk", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "zkToken | JS SDK", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
64517
1751