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

@cityofzion/bs-ethereum

Package Overview
Dependencies
Maintainers
6
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cityofzion/bs-ethereum - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

12

.rush/temp/package-deps_build.json

@@ -5,9 +5,9 @@ {

"packages/bs-ethereum/jest.setup.ts": "9a1976a32050616d4d2ee95b1aa21041bc4daca3",
"packages/bs-ethereum/package.json": "bc413e80daf25edafffbc30138ce3900d4bcfa5c",
"packages/bs-ethereum/package.json": "00abfb87cbc8ce01504511abff875edec226e059",
"packages/bs-ethereum/src/BSEthereum.ts": "ea8070202977445b77ff67135f7fc7093f0ed2b9",
"packages/bs-ethereum/src/BitqueryBDSEthereum.ts": "811c83c0610f64e44318ea8edce5ac9d1390ebc4",
"packages/bs-ethereum/src/BitqueryEDSEthereum.ts": "69c8a010389fa636fbbfb6eb2772daa0bde910a7",
"packages/bs-ethereum/src/BitqueryBDSEthereum.ts": "08abbfa7b39f842b722cf58953bfb1e73745fcc9",
"packages/bs-ethereum/src/BitqueryEDSEthereum.ts": "c04aa2be223166140f3b98e01390a6f5f7ded8df",
"packages/bs-ethereum/src/GhostMarketNDSEthereum.ts": "145273284b3c27494eea0e80c0c1de8001b11c57",
"packages/bs-ethereum/src/RpcBDSEthereum.ts": "d5e1ec436231894672fee3e677a8dc2f56628b0e",
"packages/bs-ethereum/src/__tests__/BDSEthereum.spec.ts": "ef43b385d3a26181ed0ebf8ef07c643476d5d364",
"packages/bs-ethereum/src/__tests__/BDSEthereum.spec.ts": "8b66ba80d8457601fac69819cc1fae4d7bc7b08a",
"packages/bs-ethereum/src/__tests__/BSEthereum.spec.ts": "0da33cb4c9f89a3b6c2c8445d800ff4ddb41d161",

@@ -18,9 +18,9 @@ "packages/bs-ethereum/src/__tests__/BitqueryEDSEthereum.spec.ts": "8e26084a00916be48eeeb65d3918e5eed6368f0c",

"packages/bs-ethereum/src/constants.ts": "40862a7cc04298a21e380ecdf02e09349897a6f5",
"packages/bs-ethereum/src/graphql.ts": "06c16fa064a6b0ec523e6917f142ed4abb5214e0",
"packages/bs-ethereum/src/graphql.ts": "aadff73a44a9d12cc65ebe1b0b161f1ecc4f6021",
"packages/bs-ethereum/src/index.ts": "69ca9c23acdd0afd70f7eaa0a840b07b62bdb07a",
"packages/bs-ethereum/tsconfig.build.json": "4dc23fb9c4c5e4d19a9bc3947a47c523f4bd967c",
"packages/bs-ethereum/tsconfig.json": "93e09769572b58e642d4990e9552c70a8b85e142",
"common/config/rush/npm-shrinkwrap.json": "4994dce94cedd11a678400d92e08741ac7bc9d3f"
"common/config/rush/npm-shrinkwrap.json": "c7f58d681afa54f5c08d809a1ace9947b56fb633"
},
"arguments": "tsc --project tsconfig.build.json "
}

@@ -29,3 +29,3 @@ "use strict";

url: constants_1.BITQUERY_URL,
exchanges: [core_1.cacheExchange, core_1.fetchExchange],
exchanges: [core_1.fetchExchange],
fetch: node_fetch_1.default,

@@ -80,3 +80,3 @@ fetchOptions: {

throw new Error('Address does not have transactions');
const totalCount = ((_a = result.data.ethereum.sentCount.count) !== null && _a !== void 0 ? _a : 0) + ((_b = result.data.ethereum.receiverCount.count) !== null && _b !== void 0 ? _b : 0);
const totalCount = ((_a = result.data.ethereum.sentCount[0].count) !== null && _a !== void 0 ? _a : 0) + ((_b = result.data.ethereum.receiverCount[0].count) !== null && _b !== void 0 ? _b : 0);
const mixedTransfers = [...((_e = (_d = (_c = result === null || result === void 0 ? void 0 : result.data) === null || _c === void 0 ? void 0 : _c.ethereum) === null || _d === void 0 ? void 0 : _d.sent) !== null && _e !== void 0 ? _e : []), ...((_h = (_g = (_f = result === null || result === void 0 ? void 0 : result.data) === null || _f === void 0 ? void 0 : _f.ethereum) === null || _g === void 0 ? void 0 : _g.received) !== null && _h !== void 0 ? _h : [])];

@@ -83,0 +83,0 @@ const transactions = new Map();

@@ -28,3 +28,3 @@ "use strict";

url: constants_1.BITQUERY_URL,
exchanges: [core_1.cacheExchange, core_1.fetchExchange],
exchanges: [core_1.fetchExchange],
fetch: node_fetch_1.default,

@@ -31,0 +31,0 @@ fetchOptions: {

@@ -35,6 +35,6 @@ type BitqueryNetwork = 'ethereum' | 'goerli';

count: number;
};
}[];
receiverCount: {
count: number;
};
}[];
};

@@ -41,0 +41,0 @@ };

@@ -8,3 +8,6 @@ "use strict";

ethereum(network: $network) {
sent: transfers(options: { limit: $limit, offset: $offset }, sender: { is: $address }) {
sent: transfers(
options: { limit: $limit, offset: $offset, desc: "block.timestamp.unixtime" }
sender: { is: $address }
) {
block {

@@ -36,3 +39,6 @@ timestamp {

}
received: transfers(options: { limit: $limit, offset: $offset }, receiver: { is: $address }) {
received: transfers(
options: { limit: $limit, offset: $offset, desc: "block.timestamp.unixtime" }
receiver: { is: $address }
) {
block {

@@ -39,0 +45,0 @@ timestamp {

{
"name": "@cityofzion/bs-ethereum",
"version": "0.7.1",
"version": "0.7.2",
"main": "dist/index.js",

@@ -14,3 +14,3 @@ "types": "dist/index.d.ts",

"dependencies": {
"@cityofzion/blockchain-service": "0.7.1",
"@cityofzion/blockchain-service": "0.7.2",
"ethers": "5.7.2",

@@ -17,0 +17,0 @@ "@urql/core": "~4.1.1",

@@ -44,2 +44,3 @@ import { BDSClaimable, BlockchainDataService } from '@cityofzion/blockchain-service'

const response = await BDSEthereum.getTransactionsByAddress({ address: address, page: 1 })
expect(response.totalCount).toBeGreaterThan(0)
response.transactions.forEach(transaction => {

@@ -46,0 +47,0 @@ expect(transaction).toEqual(

@@ -13,3 +13,3 @@ import {

} from '@cityofzion/blockchain-service'
import { Client, cacheExchange, fetchExchange, gql } from '@urql/core'
import { Client, fetchExchange } from '@urql/core'
import fetch from 'node-fetch'

@@ -38,3 +38,3 @@ import { BITQUERY_API_KEY, BITQUERY_NETWORK_BY_NETWORK_TYPE, BITQUERY_URL, TOKENS } from './constants'

url: BITQUERY_URL,
exchanges: [cacheExchange, fetchExchange],
exchanges: [fetchExchange],
fetch,

@@ -98,3 +98,4 @@ fetchOptions: {

const totalCount = (result.data.ethereum.sentCount.count ?? 0) + (result.data.ethereum.receiverCount.count ?? 0)
const totalCount =
(result.data.ethereum.sentCount[0].count ?? 0) + (result.data.ethereum.receiverCount[0].count ?? 0)
const mixedTransfers = [...(result?.data?.ethereum?.sent ?? []), ...(result?.data?.ethereum?.received ?? [])]

@@ -101,0 +102,0 @@

import { Currency, ExchangeDataService, NetworkType, TokenPricesResponse } from '@cityofzion/blockchain-service'
import { Client, cacheExchange, fetchExchange, gql } from '@urql/core'
import { Client, fetchExchange } from '@urql/core'
import fetch from 'node-fetch'

@@ -19,3 +19,3 @@ import { BITQUERY_API_KEY, BITQUERY_URL } from './constants'

url: BITQUERY_URL,
exchanges: [cacheExchange, fetchExchange],
exchanges: [fetchExchange],
fetch,

@@ -22,0 +22,0 @@ fetchOptions: {

@@ -39,6 +39,6 @@ import { gql } from '@urql/core'

count: number
}
}[]
receiverCount: {
count: number
}
}[]
}

@@ -60,3 +60,6 @@ }

ethereum(network: $network) {
sent: transfers(options: { limit: $limit, offset: $offset }, sender: { is: $address }) {
sent: transfers(
options: { limit: $limit, offset: $offset, desc: "block.timestamp.unixtime" }
sender: { is: $address }
) {
block {

@@ -88,3 +91,6 @@ timestamp {

}
received: transfers(options: { limit: $limit, offset: $offset }, receiver: { is: $address }) {
received: transfers(
options: { limit: $limit, offset: $offset, desc: "block.timestamp.unixtime" }
receiver: { is: $address }
) {
block {

@@ -91,0 +97,0 @@ timestamp {

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