@bandada/utils
Advanced tools
Comparing version 2.1.1 to 2.2.0
/** | ||
* @module @bandada/utils | ||
* @version 2.1.1 | ||
* @version 2.2.0 | ||
* @file General Bandada utility functions. | ||
* @copyright Ethereum Foundation 2023 | ||
* @license MIT | ||
* @see [Github]{@link https://github.com/privacy-scaling-explorations/bandada/tree/main/libs/utils} | ||
* @see [Github]{@link https://github.com/bandada-infra/bandada/tree/main/libs/utils} | ||
*/ | ||
@@ -1082,2 +1082,37 @@ 'use strict'; | ||
var blockchainCredentialSupportedNetworks = [ | ||
{ | ||
id: "sepolia", | ||
name: "Sepolia" | ||
}, | ||
{ | ||
id: "polygon_mumbai", | ||
name: "Polygon Mumbai" | ||
}, | ||
{ | ||
id: "optimism_sepolia", | ||
name: "Optimism Sepolia" | ||
}, | ||
{ | ||
id: "arbitrum_sepolia", | ||
name: "Arbitrum Sepolia" | ||
}, | ||
{ | ||
id: "avalanche_c_chain_fuji", | ||
name: "Avalanche C-Chain Fuji" | ||
} | ||
]; | ||
/** | ||
* Defines the possible actions that can be performed on an API key. | ||
* This includes generating a new API key, enabling an existing API key, | ||
* and disabling an existing API key. | ||
*/ | ||
exports.ApiKeyActions = void 0; | ||
(function (ApiKeyActions) { | ||
ApiKeyActions["Generate"] = "generate"; | ||
ApiKeyActions["Enable"] = "enable"; | ||
ApiKeyActions["Disable"] = "disable"; | ||
})(exports.ApiKeyActions || (exports.ApiKeyActions = {})); | ||
exports.BandadaABI = abi; | ||
@@ -1088,2 +1123,3 @@ exports.BandadaContract = BandadaContract; | ||
exports.SemaphoreContract = SemaphoreContract; | ||
exports.blockchainCredentialSupportedNetworks = blockchainCredentialSupportedNetworks; | ||
exports.getBandadaContract = getBandadaContract; | ||
@@ -1090,0 +1126,0 @@ exports.getContract = getContract; |
@@ -11,3 +11,4 @@ import CONTRACT_ADDRESSES, { getContractAddresses } from "./contractAddresses"; | ||
import shortenAddress from "./shortenAddress"; | ||
export * from "./types/index"; | ||
export { request, shortenAddress, getProvider, getContract, getSemaphoreContract, SemaphoreContract, getBandadaContract, BandadaContract, getWallet, CONTRACT_ADDRESSES, getContractAddresses, SemaphoreABI, BandadaABI }; | ||
import { blockchainCredentialSupportedNetworks } from "./getSupportedNetworks"; | ||
export { ApiKeyActions, Network, ContractName, OnchainBandadaGroup } from "./types/index"; | ||
export { request, shortenAddress, getProvider, getContract, getSemaphoreContract, SemaphoreContract, getBandadaContract, BandadaContract, getWallet, CONTRACT_ADDRESSES, getContractAddresses, SemaphoreABI, BandadaABI, blockchainCredentialSupportedNetworks }; |
@@ -7,1 +7,15 @@ export type Network = "localhost" | "sepolia"; | ||
}; | ||
export type BlockchainNetwork = { | ||
id: string; | ||
name: string; | ||
}; | ||
/** | ||
* Defines the possible actions that can be performed on an API key. | ||
* This includes generating a new API key, enabling an existing API key, | ||
* and disabling an existing API key. | ||
*/ | ||
export declare enum ApiKeyActions { | ||
Generate = "generate", | ||
Enable = "enable", | ||
Disable = "disable" | ||
} |
{ | ||
"name": "@bandada/utils", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "General Bandada utility functions.", | ||
@@ -18,6 +18,6 @@ "license": "MIT", | ||
], | ||
"repository": "https://github.com/privacy-scaling-explorations/bandada", | ||
"homepage": "https://github.com/privacy-scaling-explorations/bandada/tree/main/libs/utils", | ||
"repository": "https://github.com/bandada-infra/bandada", | ||
"homepage": "https://github.com/bandada-infra/bandada/tree/main/libs/utils", | ||
"bugs": { | ||
"url": "https://github.com/privacy-scaling-explorations/bandada.git/issues" | ||
"url": "https://github.com/bandada-infra/bandada.git/issues" | ||
}, | ||
@@ -24,0 +24,0 @@ "scripts": { |
@@ -9,7 +9,7 @@ <p align="center"> | ||
<p align="center"> | ||
<a href="https://github.com/privacy-scaling-explorations/bandada"> | ||
<a href="https://github.com/bandada-infra/bandada"> | ||
<img src="https://img.shields.io/badge/project-Bandada-blue.svg?style=flat-square"> | ||
</a> | ||
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/LICENSE"> | ||
<img alt="Github license" src="https://img.shields.io/github/license/privacy-scaling-explorations/bandada.svg?style=flat-square"> | ||
<a href="https://github.com/bandada-infra/bandada/blob/main/LICENSE"> | ||
<img alt="Github license" src="https://img.shields.io/github/license/bandada-infra/bandada.svg?style=flat-square"> | ||
</a> | ||
@@ -32,11 +32,11 @@ <a href="https://www.npmjs.com/package/@bandada/utils"> | ||
<h4> | ||
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/CONTRIBUTING.md"> | ||
<a href="https://github.com/bandada-infra/bandada/blob/main/CONTRIBUTING.md"> | ||
👥 Contributing | ||
</a> | ||
<span> | </span> | ||
<a href="https://github.com/privacy-scaling-explorations/bandada/blob/main/CODE_OF_CONDUCT.md"> | ||
<a href="https://github.com/bandada-infra/bandada/blob/main/CODE_OF_CONDUCT.md"> | ||
🤝 Code of conduct | ||
</a> | ||
<span> | </span> | ||
<a href="https://github.com/privacy-scaling-explorations/bandada/contribute"> | ||
<a href="https://github.com/bandada-infra/bandada/contribute"> | ||
🔎 Issues | ||
@@ -43,0 +43,0 @@ </a> |
@@ -11,5 +11,11 @@ import CONTRACT_ADDRESSES, { getContractAddresses } from "./contractAddresses" | ||
import shortenAddress from "./shortenAddress" | ||
import { blockchainCredentialSupportedNetworks } from "./getSupportedNetworks" | ||
export * from "./types/index" | ||
export { | ||
ApiKeyActions, | ||
Network, | ||
ContractName, | ||
OnchainBandadaGroup | ||
} from "./types/index" | ||
export { | ||
request, | ||
@@ -27,3 +33,4 @@ shortenAddress, | ||
SemaphoreABI, | ||
BandadaABI | ||
BandadaABI, | ||
blockchainCredentialSupportedNetworks | ||
} |
@@ -10,1 +10,17 @@ // Supported networks: https://docs.ethers.org/v5/api/providers/api-providers/#InfuraProvider | ||
} | ||
export type BlockchainNetwork = { | ||
id: string | ||
name: string | ||
} | ||
/** | ||
* Defines the possible actions that can be performed on an API key. | ||
* This includes generating a new API key, enabling an existing API key, | ||
* and disabling an existing API key. | ||
*/ | ||
export enum ApiKeyActions { | ||
Generate = "generate", | ||
Enable = "enable", | ||
Disable = "disable" | ||
} |
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
141010
30
3608