@cityofzion/bs-neo-legacy 0.4.2 → 0.7.0

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.
Files changed (52) hide show
  1. package/.rush/temp/shrinkwrap-deps.json +2 -2
  2. package/bs-neo-legacy.build.error.log +2 -82
  3. package/bs-neo-legacy.build.log +3 -84
  4. package/dist/BSNeoLegacy.d.ts +23 -13
  5. package/dist/BSNeoLegacy.js +98 -69
  6. package/dist/constants.d.ts +5 -2
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/BDSNeoLegacy.html +13 -13
  9. package/docs/classes/BSNeoLegacy.html +81 -37
  10. package/docs/interfaces/DoraNeoLegacyAsset.html +7 -7
  11. package/docs/interfaces/DoraNeoLegacyAssetResponse.html +9 -9
  12. package/docs/interfaces/DoraNeoLegacyBalance.html +5 -5
  13. package/docs/interfaces/DoraNeoLegacyConsensusNode.html +3 -3
  14. package/docs/interfaces/DoraNeoLegacyDetails.html +12 -12
  15. package/docs/interfaces/DoraNeoLegacyEntriesEntity.html +8 -8
  16. package/docs/interfaces/DoraNeoLegacyNameEntity.html +3 -3
  17. package/docs/interfaces/DoraNeoLegacyScriptsEntity.html +3 -3
  18. package/docs/interfaces/DoraNeoLegacyTransaction.html +14 -14
  19. package/docs/interfaces/DoraNeoLegacyTransactionsHistory.html +6 -6
  20. package/docs/interfaces/DoraNeoLegacyUnclaimed.html +4 -4
  21. package/docs/interfaces/DoraNeoLegacyVinEntity.html +3 -3
  22. package/docs/interfaces/DoraNeoLegacyVoutEntity.html +5 -5
  23. package/docs/variables/DORA_NEO_LEGACY_ASSET.html +1 -1
  24. package/docs/variables/DORA_NEO_LEGACY_BALANCE.html +1 -1
  25. package/docs/variables/DORA_NEO_LEGACY_CONTRACT.html +1 -1
  26. package/docs/variables/DORA_NEO_LEGACY_HISTORY_TRANSACTIONS.html +1 -1
  27. package/docs/variables/DORA_NEO_LEGACY_NODES.html +1 -1
  28. package/docs/variables/DORA_NEO_LEGACY_TRANSACTION.html +1 -1
  29. package/docs/variables/DORA_NEO_LEGACY_UNCLAIMED.html +1 -1
  30. package/docs/variables/explorerNeoLegacyOption.html +1 -1
  31. package/jest.config.ts +13 -0
  32. package/jest.setup.ts +1 -0
  33. package/package.json +10 -6
  34. package/src/BSNeoLegacy.ts +184 -152
  35. package/src/CryptoCompareEDSNeoLegacy.ts +40 -0
  36. package/src/DoraBDSNeoLegacy.ts +171 -0
  37. package/src/__tests__/BDSNeoLegacy.spec.ts +120 -0
  38. package/src/__tests__/BSNeoLegacy.spec.ts +127 -0
  39. package/src/__tests__/CryptoCompareExchange.spec.ts +46 -0
  40. package/src/assets/tokens/common.json +18 -0
  41. package/src/assets/tokens/mainnet.json +620 -0
  42. package/src/constants.ts +20 -17
  43. package/src/index.ts +3 -2
  44. package/tsconfig.build.json +4 -0
  45. package/tsconfig.json +3 -7
  46. package/src/BDSNeoLegacy.ts +0 -163
  47. package/src/asset/blockchain_icon_neo_legacy.png +0 -0
  48. package/src/asset/blockchain_icon_neo_legacy_white.png +0 -0
  49. package/src/asset/tokens.json +0 -481
  50. package/src/explorer/dora/DoraResponsesNeoLegacy.ts +0 -107
  51. package/src/explorer/dora/DoraRoutesNeoLegacy.ts +0 -7
  52. package/src/explorer/index.ts +0 -8
@@ -1,107 +0,0 @@
1
- export interface DoraNeoLegacyConsensusNode {
2
- url: string
3
- height: number
4
- }
5
-
6
- //Types and Interfaces related to Asset
7
- export interface DoraNeoLegacyAssetResponse {
8
- name: string;
9
- symbol: string;
10
- firstseen: number;
11
- scripthash: string;
12
- decimals: number;
13
- type: string;
14
- details: DoraNeoLegacyDetails;
15
- time: string;
16
- }
17
- export interface DoraNeoLegacyDetails {
18
- txid: string;
19
- size: number;
20
- type: string;
21
- version: number;
22
- attributes?: (null)[] | null;
23
- vin?: (null)[] | null;
24
- vout?: (null)[] | null;
25
- sys_fee: string;
26
- net_fee: string;
27
- scripts?: (null)[] | null;
28
- asset: DoraNeoLegacyAsset;
29
- }
30
- export interface DoraNeoLegacyAsset {
31
- type: string;
32
- name?: (DoraNeoLegacyNameEntity)[] | null;
33
- amount: string;
34
- precision: number;
35
- owner: string;
36
- admin: string;
37
- }
38
- export interface DoraNeoLegacyNameEntity {
39
- lang: string;
40
- name: string;
41
- }
42
-
43
- //Interfaces and types related to Transaction
44
-
45
- export interface DoraNeoLegacyTransaction {
46
- txid: string;
47
- size: number;
48
- type: string;
49
- version: number;
50
- attributes?: (null)[] | null;
51
- vin?: (DoraNeoLegacyVinEntity)[] | null;
52
- vout?: (DoraNeoLegacyVoutEntity)[] | null;
53
- sys_fee: string;
54
- net_fee: string;
55
- scripts?: (DoraNeoLegacyScriptsEntity)[] | null;
56
- time: string;
57
- block: number;
58
- jsonsize: number;
59
- }
60
- export interface DoraNeoLegacyVinEntity {
61
- txid: string;
62
- vout: number;
63
- }
64
- export interface DoraNeoLegacyVoutEntity {
65
- n: number;
66
- asset: string;
67
- value: string;
68
- address: string;
69
- }
70
- export interface DoraNeoLegacyScriptsEntity {
71
- invocation: string;
72
- verification: string;
73
- }
74
-
75
- //Interfaces and types related to Transactions History
76
-
77
- export interface DoraNeoLegacyTransactionsHistory {
78
- total_pages: number;
79
- total_entries: number;
80
- page_size: number;
81
- page_number: number;
82
- entries?: (DoraNeoLegacyEntriesEntity)[] | null;
83
- }
84
- export interface DoraNeoLegacyEntriesEntity {
85
- txid: string;
86
- time: number;
87
- block_height: number;
88
- asset: string;
89
- address_to: string;
90
- address_from: string;
91
- amount: number;
92
- }
93
-
94
- //Interface and types related to Balance
95
- export interface DoraNeoLegacyBalance {
96
- asset: string;
97
- balance: string | number;
98
- asset_name: string;
99
- symbol: string;
100
- }
101
-
102
- //Interface and types related to Unclaimed
103
- export interface DoraNeoLegacyUnclaimed {
104
- available: number;
105
- unavailable: number;
106
- unclaimed: number
107
- }
@@ -1,7 +0,0 @@
1
- export const DORA_NEO_LEGACY_NODES = 'get_all_nodes'
2
- export const DORA_NEO_LEGACY_HISTORY_TRANSACTIONS = 'get_address_abstracts'
3
- export const DORA_NEO_LEGACY_BALANCE = 'balance'
4
- export const DORA_NEO_LEGACY_CONTRACT = 'contract'
5
- export const DORA_NEO_LEGACY_TRANSACTION = 'transaction'
6
- export const DORA_NEO_LEGACY_ASSET = 'asset'
7
- export const DORA_NEO_LEGACY_UNCLAIMED = 'get_unclaimed'
@@ -1,8 +0,0 @@
1
- export * from './dora/DoraResponsesNeoLegacy'
2
- export * from './dora/DoraRoutesNeoLegacy'
3
-
4
- import { BDSNeoLegacy } from "../BDSNeoLegacy"
5
-
6
- export const explorerNeoLegacyOption = {
7
- dora: new BDSNeoLegacy()
8
- }