forked from zeropoolnetwork/zeropool-client-js
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging the develop branch into the main branch, v5.5.0
- Loading branch information
Showing
12 changed files
with
311 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "zkbob-client-js", | ||
"version": "5.4.0", | ||
"version": "5.5.0", | ||
"description": "zkBob integration library", | ||
"repository": "[email protected]:zkBob/libzkbob-client-js.git", | ||
"author": "Dmitry Vdovin <[email protected]>", | ||
|
@@ -30,8 +30,8 @@ | |
"graphql": "16.7.1", | ||
"hdwallet-babyjub": "^0.0.2", | ||
"idb": "^7.0.0", | ||
"libzkbob-rs-wasm-web": "1.5.0", | ||
"libzkbob-rs-wasm-web-mt": "1.5.0", | ||
"libzkbob-rs-wasm-web": "1.6.0", | ||
"libzkbob-rs-wasm-web-mt": "1.6.0", | ||
"promise-throttle": "^1.1.2", | ||
"regenerator-runtime": "^0.13.9", | ||
"tronweb": "^5.3.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { ZkAddressPrefix } from "./config" | ||
|
||
export const GENERIC_ADDRESS_PREFIX = 'zkbob'; | ||
export const PREFIXED_ADDR_REGEX: RegExp = /^[a-zA-Z][a-zA-Z0-9+_\-\,@&]+:([1-9A-HJ-NP-Za-km-z]{62,63})$/; | ||
export const NAKED_ADDR_REGEX: RegExp = /^([1-9A-HJ-NP-Za-km-z]{62,63})$/; | ||
|
||
|
||
export const hardcodedPrefixes: ZkAddressPrefix[] = [ | ||
// Production address prefixes | ||
{ | ||
poolId: 0x000000, | ||
prefix: 'zkbob_polygon', | ||
name: 'USDC on Polygon' | ||
}, | ||
{ | ||
poolId: 0x000001, | ||
prefix: 'zkbob_optimism', | ||
name: 'USDC on Optimism' | ||
}, | ||
{ | ||
poolId: 0x000002, | ||
prefix: 'zkbob_optimism_eth', | ||
name: 'WETH on Optimism' | ||
}, | ||
{ | ||
poolId: 0x000003, | ||
prefix: 'zkbob_tron', | ||
name: 'USDT on Tron' | ||
}, | ||
// Staging address prefixes | ||
{ | ||
poolId: 0x000000, | ||
prefix: 'zkbob_sepolia', | ||
name: 'BOB on Sepolia testnet' | ||
}, | ||
{ | ||
poolId: 0xffff02, | ||
prefix: 'zkbob_goerli', | ||
name: 'BOB on Goerli testnet' | ||
}, | ||
{ | ||
poolId: 0xffff03, | ||
prefix: 'zkbob_goerli_optimism', | ||
name: 'BOB on Goerli Optimism testnet' | ||
}, | ||
{ | ||
poolId: 0xffff04, | ||
prefix: 'zkbob_goerli_eth', | ||
name: 'WETH on Goerli testnet' | ||
}, | ||
{ | ||
poolId: 0xffff05, | ||
prefix: 'zkbob_goerli_usdc', | ||
name: 'USDC on Goerli testnet' | ||
}, | ||
{ | ||
poolId: 0xffff06, | ||
prefix: 'zkbob_shasta', | ||
name: 'USDT on Shasta testnet' | ||
}, | ||
{ | ||
poolId: 0xffff07, | ||
prefix: 'zkbob_nile', | ||
name: 'USDT on Nile testnet' | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.