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

tezbridge-network

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tezbridge-network - npm Package Compare versions

Comparing version 1.0.28 to 1.0.29

2

package.json
{
"name": "tezbridge-network",
"version": "1.0.28",
"version": "1.0.29",
"description": "The TezBridge network library for Tezos blockchain in JavaScript with Flow type system",

@@ -5,0 +5,0 @@ "main": "Pt24m4xi/index.js",

@@ -13,6 +13,6 @@ // @flow

domain() {
if (this.net_type === 'mainnet')
domain(net_type : string) {
if (net_type === 'mainnet')
return 'https://api1.tzscan.io/v3'
else if (this.net_type === 'alphanet')
else if (net_type === 'alphanet')
return 'https://api.alphanet.tzscan.io/v3'

@@ -23,4 +23,4 @@ else

async originated_contracts(address : string, spendable : boolean = true) {
const url = this.domain() + `/operations/${address}?type=Origination`
async originated_contracts(address : string, spendable : boolean = true, net_type? : string) {
const url = this.domain(net_type || this.net_type) + `/operations/${address}?type=Origination`
const operations = await this.fetch(url)

@@ -27,0 +27,0 @@ const result = []

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