@cityofzion/bs-ethereum 1.4.3 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BSEthereum.d.ts +10 -8
- package/dist/BSEthereum.js +26 -23
- package/dist/BSEthereumHelper.d.ts +22 -0
- package/dist/BSEthereumHelper.js +236 -0
- package/dist/BitqueryBDSEthereum.d.ts +5 -1
- package/dist/BitqueryBDSEthereum.js +46 -25
- package/dist/BitqueryEDSEthereum.d.ts +3 -2
- package/dist/BitqueryEDSEthereum.js +10 -11
- package/dist/{LedgerServiceEthereum.d.ts → EthersLedgerServiceEthereum.d.ts} +4 -4
- package/dist/{LedgerServiceEthereum.js → EthersLedgerServiceEthereum.js} +39 -39
- package/dist/GhostMarketNDSEthereum.d.ts +6 -1
- package/dist/GhostMarketNDSEthereum.js +15 -7
- package/dist/RpcBDSEthereum.d.ts +2 -1
- package/dist/RpcBDSEthereum.js +22 -11
- package/dist/assets/abis/ERC20.d.ts +38 -0
- package/dist/assets/abis/ERC20.js +225 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +4 -3
- package/package.json +3 -3
- package/dist/assets/tokens/common.json +0 -8
- package/dist/constants.d.ts +0 -17
- package/dist/constants.js +0 -52
package/dist/constants.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NetworkType, Token } from '@cityofzion/blockchain-service';
|
|
2
|
-
export type BitqueryNetwork = 'ethereum' | 'goerli';
|
|
3
|
-
export declare const TOKENS: Record<NetworkType, Token[]>;
|
|
4
|
-
export declare const NATIVE_ASSETS: {
|
|
5
|
-
symbol: string;
|
|
6
|
-
name: string;
|
|
7
|
-
hash: string;
|
|
8
|
-
decimals: number;
|
|
9
|
-
}[];
|
|
10
|
-
export declare const BITQUERY_MIRROR_URL = "https://i4l7kcg43c.execute-api.us-east-1.amazonaws.com/production/";
|
|
11
|
-
export declare const BITQUERY_MIRROR_NETWORK_BY_NETWORK_TYPE: Record<Exclude<NetworkType, 'custom'>, BitqueryNetwork>;
|
|
12
|
-
export declare const GHOSTMARKET_URL_BY_NETWORK_TYPE: Partial<Record<NetworkType, string>>;
|
|
13
|
-
export declare const GHOSTMARKET_CHAIN_BY_NETWORK_TYPE: Partial<Record<NetworkType, string>>;
|
|
14
|
-
export declare const DERIVATION_PATH = "m/44'/60'/0'/0/?";
|
|
15
|
-
export declare const RPC_LIST_BY_NETWORK_TYPE: Record<NetworkType, string[]>;
|
|
16
|
-
export declare const DEFAULT_URL_BY_NETWORK_TYPE: Record<NetworkType, string>;
|
|
17
|
-
export declare const DEFAULT_PATH = "44'/60'/0'/0/0";
|
package/dist/constants.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DEFAULT_PATH = exports.DEFAULT_URL_BY_NETWORK_TYPE = exports.RPC_LIST_BY_NETWORK_TYPE = exports.DERIVATION_PATH = exports.GHOSTMARKET_CHAIN_BY_NETWORK_TYPE = exports.GHOSTMARKET_URL_BY_NETWORK_TYPE = exports.BITQUERY_MIRROR_NETWORK_BY_NETWORK_TYPE = exports.BITQUERY_MIRROR_URL = exports.NATIVE_ASSETS = exports.TOKENS = void 0;
|
|
7
|
-
const common_json_1 = __importDefault(require("./assets/tokens/common.json"));
|
|
8
|
-
exports.TOKENS = {
|
|
9
|
-
mainnet: [...common_json_1.default],
|
|
10
|
-
testnet: common_json_1.default,
|
|
11
|
-
custom: common_json_1.default,
|
|
12
|
-
};
|
|
13
|
-
exports.NATIVE_ASSETS = common_json_1.default;
|
|
14
|
-
exports.BITQUERY_MIRROR_URL = 'https://i4l7kcg43c.execute-api.us-east-1.amazonaws.com/production/';
|
|
15
|
-
exports.BITQUERY_MIRROR_NETWORK_BY_NETWORK_TYPE = {
|
|
16
|
-
mainnet: 'ethereum',
|
|
17
|
-
testnet: 'goerli',
|
|
18
|
-
};
|
|
19
|
-
exports.GHOSTMARKET_URL_BY_NETWORK_TYPE = {
|
|
20
|
-
mainnet: 'https://api.ghostmarket.io/api/v2',
|
|
21
|
-
testnet: 'https://api-testnet.ghostmarket.io/api/v2',
|
|
22
|
-
};
|
|
23
|
-
exports.GHOSTMARKET_CHAIN_BY_NETWORK_TYPE = {
|
|
24
|
-
mainnet: 'eth',
|
|
25
|
-
testnet: 'etht',
|
|
26
|
-
};
|
|
27
|
-
exports.DERIVATION_PATH = "m/44'/60'/0'/0/?";
|
|
28
|
-
exports.RPC_LIST_BY_NETWORK_TYPE = {
|
|
29
|
-
mainnet: [
|
|
30
|
-
'https://ethereum-mainnet-rpc.allthatnode.com',
|
|
31
|
-
'https://eth.llamarpc.com',
|
|
32
|
-
'https://ethereum-rpc.publicnode.com',
|
|
33
|
-
'https://endpoints.omniatech.io/v1/eth/mainnet/public',
|
|
34
|
-
'https://rpc.flashbots.net',
|
|
35
|
-
'https://rpc.mevblocker.io',
|
|
36
|
-
],
|
|
37
|
-
testnet: [
|
|
38
|
-
'https://ethereum-sepolia-rpc.publicnode.com',
|
|
39
|
-
'https://endpoints.omniatech.io/v1/eth/sepolia/public',
|
|
40
|
-
'https://eth-sepolia.public.blastapi.io',
|
|
41
|
-
'https://eth-sepolia-public.unifra.io',
|
|
42
|
-
'https://1rpc.io/sepolia',
|
|
43
|
-
'https://eth-sepolia.api.onfinality.io/public',
|
|
44
|
-
],
|
|
45
|
-
custom: ['http://127.0.0.1:8545'],
|
|
46
|
-
};
|
|
47
|
-
exports.DEFAULT_URL_BY_NETWORK_TYPE = {
|
|
48
|
-
mainnet: exports.RPC_LIST_BY_NETWORK_TYPE.mainnet[0],
|
|
49
|
-
testnet: exports.RPC_LIST_BY_NETWORK_TYPE.testnet[0],
|
|
50
|
-
custom: exports.RPC_LIST_BY_NETWORK_TYPE.custom[0],
|
|
51
|
-
};
|
|
52
|
-
exports.DEFAULT_PATH = "44'/60'/0'/0/0";
|