@cityofzion/bs-neo3 1.16.3 → 1.16.4

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 (43) hide show
  1. package/dist/BSNeo3.d.ts +39 -30
  2. package/dist/BSNeo3.js +102 -54
  3. package/dist/constants/BSNeo3Constants.d.ts +12 -17
  4. package/dist/constants/BSNeo3Constants.js +221 -37
  5. package/dist/helpers/BSNeo3Helper.d.ts +5 -6
  6. package/dist/helpers/BSNeo3Helper.js +9 -8
  7. package/dist/helpers/BSNeo3NeonDappKitSingletonHelper.d.ts +6 -0
  8. package/dist/helpers/BSNeo3NeonDappKitSingletonHelper.js +26 -0
  9. package/dist/helpers/BSNeo3NeonJsSingletonHelper.d.ts +7 -0
  10. package/dist/helpers/BSNeo3NeonJsSingletonHelper.js +26 -0
  11. package/dist/index.d.ts +3 -2
  12. package/dist/index.js +3 -2
  13. package/dist/services/blockchain-data/DoraBDSNeo3.d.ts +13 -12
  14. package/dist/services/blockchain-data/DoraBDSNeo3.js +130 -140
  15. package/dist/services/blockchain-data/RpcBDSNeo3.d.ts +13 -19
  16. package/dist/services/blockchain-data/RpcBDSNeo3.js +28 -62
  17. package/dist/services/chaim-data/RpcCDSNeo3.d.ts +7 -0
  18. package/dist/services/chaim-data/RpcCDSNeo3.js +27 -0
  19. package/dist/services/exchange-data/FlamingoForthewinEDSNeo3.d.ts +6 -7
  20. package/dist/services/exchange-data/FlamingoForthewinEDSNeo3.js +4 -19
  21. package/dist/services/explorer/DoraESNeo3.d.ts +5 -5
  22. package/dist/services/explorer/DoraESNeo3.js +19 -22
  23. package/dist/services/ledger/NeonDappKitLedgerServiceNeo3.d.ts +10 -10
  24. package/dist/services/ledger/NeonDappKitLedgerServiceNeo3.js +28 -38
  25. package/dist/services/neo3neoXBridge/Neo3NeoXBridgeService.d.ts +10 -9
  26. package/dist/services/neo3neoXBridge/Neo3NeoXBridgeService.js +26 -25
  27. package/dist/services/nft-data/GhostMarketNDSNeo3.d.ts +7 -11
  28. package/dist/services/nft-data/GhostMarketNDSNeo3.js +41 -79
  29. package/dist/services/vote/DoraVoteServiceNeo3.d.ts +8 -29
  30. package/dist/services/vote/DoraVoteServiceNeo3.js +81 -21
  31. package/dist/types.d.ts +84 -0
  32. package/dist/types.js +18 -0
  33. package/package.json +25 -25
  34. package/dist/assets/tokens/mainnet.json +0 -194
  35. package/dist/assets/tokens/native.json +0 -14
  36. package/dist/builder/invocation/NeonDappKitInvocationBuilderNeo3.d.ts +0 -34
  37. package/dist/builder/invocation/NeonDappKitInvocationBuilderNeo3.js +0 -102
  38. package/dist/interfaces.d.ts +0 -41
  39. package/dist/interfaces.js +0 -2
  40. package/dist/services/nft-data/RpcNDSNeo3.d.ts +0 -9
  41. package/dist/services/nft-data/RpcNDSNeo3.js +0 -59
  42. package/dist/services/vote/RpcVoteServiceNeo3.d.ts +0 -10
  43. package/dist/services/vote/RpcVoteServiceNeo3.js +0 -88
@@ -1,29 +1,220 @@
1
1
  "use strict";
2
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
- };
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- var _a, _BSNeo3Constants_tokenService;
2
+ var _a;
11
3
  Object.defineProperty(exports, "__esModule", { value: true });
12
4
  exports.BSNeo3Constants = void 0;
13
- const mainnet_json_1 = __importDefault(require("../assets/tokens/mainnet.json"));
14
- const native_json_1 = __importDefault(require("../assets/tokens/native.json"));
15
- const TokenServiceNeo3_1 = require("../services/token/TokenServiceNeo3");
16
5
  class BSNeo3Constants {
17
6
  }
18
7
  exports.BSNeo3Constants = BSNeo3Constants;
19
8
  _a = BSNeo3Constants;
20
- _BSNeo3Constants_tokenService = { value: new TokenServiceNeo3_1.TokenServiceNeo3() };
21
9
  BSNeo3Constants.EXTRA_TOKENS_BY_NETWORK_ID = {
22
- mainnet: __classPrivateFieldGet(_a, _a, "f", _BSNeo3Constants_tokenService).normalizeToken(mainnet_json_1.default),
10
+ mainnet: [
11
+ {
12
+ symbol: 'LRB',
13
+ name: 'LyrebirdToken',
14
+ hash: '0x8c07b4c9f5bc170a3922eac4f5bb7ef17b0acc8b',
15
+ decimals: 8,
16
+ },
17
+ {
18
+ symbol: 'USDL',
19
+ name: 'LyrebirdUSDToken',
20
+ hash: '0xa8c51aa0c177187aeed3db88bdfa908ccbc9b1a5',
21
+ decimals: 8,
22
+ },
23
+ {
24
+ symbol: 'FLM',
25
+ name: 'FLM',
26
+ hash: '0xf0151f528127558851b39c2cd8aa47da7418ab28',
27
+ decimals: 8,
28
+ },
29
+ {
30
+ symbol: 'CAKE',
31
+ hash: '0x570c27653683788177f05740257d88fed76bf74b',
32
+ decimals: 18,
33
+ name: 'CAKE',
34
+ },
35
+ {
36
+ symbol: 'fCAKE',
37
+ name: 'fCAKE',
38
+ hash: '0xe65b462b90516012826f8a9c4c285d8c750e3a77',
39
+ decimals: 18,
40
+ },
41
+ {
42
+ symbol: 'WING',
43
+ name: 'WING',
44
+ hash: '0x948a60635d1f7921063d04be8f6cb35c741df566',
45
+ decimals: 9,
46
+ },
47
+ {
48
+ symbol: 'pWING',
49
+ hash: '0xeeccd60ed722111f8400434dac3ba42c14d8beb1',
50
+ decimals: 9,
51
+ name: 'pWING',
52
+ },
53
+ {
54
+ symbol: 'WETH',
55
+ hash: '0xd3a41b53888a733b549f5d4146e7a98d3285fa21',
56
+ decimals: 18,
57
+ name: 'WETH',
58
+ },
59
+ {
60
+ symbol: 'fWETH',
61
+ name: 'fWETH',
62
+ hash: '0xc14b601252aa5dfa6166cf35fe5ccd2e35f3fdf5',
63
+ decimals: 18,
64
+ },
65
+ {
66
+ symbol: 'WBTC',
67
+ hash: '0x4548a3bcb3c2b5ce42bf0559b1cf2f1ec97a51d0',
68
+ decimals: 8,
69
+ name: 'WBTC',
70
+ },
71
+ {
72
+ symbol: 'fWBTC',
73
+ name: 'fWBTC',
74
+ hash: '0xd6abe115ecb75e1fa0b42f5e85934ce8c1ae2893',
75
+ decimals: 8,
76
+ },
77
+ {
78
+ symbol: 'SWTH',
79
+ name: 'SWTHToken',
80
+ hash: '0x78e1330db47634afdb5ea455302ba2d12b8d549f',
81
+ decimals: 8,
82
+ },
83
+ {
84
+ symbol: 'ONT',
85
+ hash: '0x0a1328bffb804ad7bb342673da82a972cc7af86c',
86
+ decimals: 9,
87
+ name: 'ONT',
88
+ },
89
+ {
90
+ symbol: 'pONT',
91
+ name: 'pONT',
92
+ hash: '0x8122bc2212ec971690a044b37a6f52a9349b702b',
93
+ decimals: 9,
94
+ },
95
+ {
96
+ symbol: 'USDT',
97
+ name: 'USDT',
98
+ hash: '0x68b938cc42b6a2d54fb9040f5facf4290ebb8c5f',
99
+ decimals: 6,
100
+ },
101
+ {
102
+ symbol: 'fUSDT',
103
+ name: 'fUSDT',
104
+ hash: '0xcd48b160c1bbc9d74997b803b9a7ad50a4bef020',
105
+ decimals: 6,
106
+ },
107
+ {
108
+ symbol: 'FLUND',
109
+ name: 'FLUND',
110
+ hash: '0xa9603a59e21d29e37ac39cf1b5f5abf5006b22a3',
111
+ decimals: 8,
112
+ },
113
+ {
114
+ symbol: 'GM',
115
+ name: 'GhostMarketToken',
116
+ hash: '0x9b049f1283515eef1d3f6ac610e1595ed25ca3e9',
117
+ decimals: 8,
118
+ },
119
+ {
120
+ symbol: 'TIPS',
121
+ name: 'TIPS',
122
+ hash: '0x340720c7107ef5721e44ed2ea8e314cce5c130fa',
123
+ decimals: 8,
124
+ },
125
+ {
126
+ symbol: 'CANDY',
127
+ name: 'NeoCandy',
128
+ hash: '0x88da18a5bca86ec8206d9b4960a7d0c4355a432f',
129
+ decimals: 9,
130
+ },
131
+ {
132
+ symbol: 'DOGER',
133
+ name: 'DogeRift',
134
+ hash: '0x322b5a366ca724801a1aa01e669b5f3d7f8c7f6f',
135
+ decimals: 8,
136
+ },
137
+ {
138
+ symbol: 'DOGEF',
139
+ name: 'DogeFood',
140
+ hash: '0xa3291b66f70d4687fc0e41977d8acb0699f235ae',
141
+ decimals: 8,
142
+ },
143
+ {
144
+ symbol: 'SOM',
145
+ name: 'Som',
146
+ hash: '0x2d4c6cf0417209a7eb410160344e224e74f87195',
147
+ decimals: 8,
148
+ },
149
+ {
150
+ symbol: 'LAMBO',
151
+ name: 'BoomerFund',
152
+ hash: '0xafdd6abedf066ff8c5fbc868cc89f80eac467142',
153
+ decimals: 8,
154
+ },
155
+ {
156
+ symbol: 'bNEO',
157
+ hash: '0x48c40d4666f93408be1bef038b6722404d9a4c2a',
158
+ decimals: 8,
159
+ name: 'BurgerNEO',
160
+ },
161
+ {
162
+ symbol: 'BNB',
163
+ hash: '0x00fb9575f220727f71a1537f75e83af9387628ff',
164
+ decimals: 18,
165
+ name: 'BNB',
166
+ },
167
+ {
168
+ symbol: 'fBNB',
169
+ hash: '0xb56f0fba45cc57a948b342186274dfd863996bb3',
170
+ decimals: 18,
171
+ name: 'fBNB',
172
+ },
173
+ {
174
+ symbol: 'FUSD',
175
+ hash: '0x1005d400bcc2a56b7352f09e273be3f9933a5fb1',
176
+ decimals: 8,
177
+ name: 'FUSD',
178
+ },
179
+ {
180
+ symbol: 'FDE',
181
+ hash: '0x9770f4d78a19d1a6fa94b472bcedffcc06b56c49',
182
+ decimals: 8,
183
+ name: 'FDE',
184
+ },
185
+ {
186
+ symbol: 'Hood',
187
+ hash: '0xc8d56cac2dd82e2da605ccae6865a99da491b97e',
188
+ decimals: 8,
189
+ name: 'RobinHood',
190
+ },
191
+ {
192
+ symbol: 'HD',
193
+ hash: '0x4b027a8320d5705802e5efbb51f6231ebf412cf6',
194
+ decimals: 8,
195
+ name: 'The Hongfei',
196
+ },
197
+ {
198
+ symbol: 'NRP',
199
+ hash: '0x789518aa302b571e3e825f2c85a01ad731014a45',
200
+ decimals: 8,
201
+ name: 'NeoRedPill',
202
+ },
203
+ ],
23
204
  };
24
- BSNeo3Constants.NATIVE_ASSETS = __classPrivateFieldGet(_a, _a, "f", _BSNeo3Constants_tokenService).normalizeToken(native_json_1.default);
25
- BSNeo3Constants.GAS_TOKEN = _a.NATIVE_ASSETS.find(token => token.name === 'GAS');
26
- BSNeo3Constants.NEO_TOKEN = _a.NATIVE_ASSETS.find(token => token.name === 'NEO');
205
+ BSNeo3Constants.GAS_TOKEN = {
206
+ symbol: 'GAS',
207
+ name: 'GAS',
208
+ hash: '0xd2a4cff31913016155e38e474a2c06d08be276cf',
209
+ decimals: 8,
210
+ };
211
+ BSNeo3Constants.NEO_TOKEN = {
212
+ symbol: 'NEO',
213
+ name: 'NEO',
214
+ hash: '0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5',
215
+ decimals: 0,
216
+ };
217
+ BSNeo3Constants.NATIVE_ASSETS = [_a.GAS_TOKEN, _a.NEO_TOKEN];
27
218
  BSNeo3Constants.RPC_LIST_BY_NETWORK_ID = {
28
219
  mainnet: [
29
220
  'https://mainnet1.neo.coz.io:443',
@@ -47,25 +238,18 @@ BSNeo3Constants.RPC_LIST_BY_NETWORK_ID = {
47
238
  'http://seed5t5.neo.org:20332',
48
239
  ],
49
240
  };
50
- BSNeo3Constants.MAINNET_NETWORK_IDS = ['mainnet'];
51
- BSNeo3Constants.TESTNET_NETWORK_IDS = ['testnet'];
52
- BSNeo3Constants.ALL_NETWORK_IDS = [..._a.MAINNET_NETWORK_IDS, ..._a.TESTNET_NETWORK_IDS];
53
- BSNeo3Constants.MAINNET_NETWORKS = [
54
- {
55
- id: 'mainnet',
56
- name: 'Mainnet',
57
- url: _a.RPC_LIST_BY_NETWORK_ID['mainnet'][0],
58
- },
59
- ];
60
- BSNeo3Constants.TESTNET_NETWORKS = [
61
- {
62
- id: 'testnet',
63
- name: 'Testnet',
64
- url: _a.RPC_LIST_BY_NETWORK_ID['testnet'][0],
65
- },
66
- ];
67
- BSNeo3Constants.ALL_NETWORKS = [..._a.MAINNET_NETWORKS, ..._a.TESTNET_NETWORKS];
68
- // If tou change this, make sure to update the tests accordingly
69
- BSNeo3Constants.DEFAULT_NETWORK = _a.MAINNET_NETWORKS[0];
241
+ BSNeo3Constants.MAINNET_NETWORK = {
242
+ id: 'mainnet',
243
+ name: 'Mainnet',
244
+ url: _a.RPC_LIST_BY_NETWORK_ID['mainnet'][0],
245
+ type: 'mainnet',
246
+ };
247
+ BSNeo3Constants.TESTNET_NETWORK = {
248
+ id: 'testnet',
249
+ name: 'Testnet',
250
+ url: _a.RPC_LIST_BY_NETWORK_ID['testnet'][0],
251
+ type: 'testnet',
252
+ };
253
+ BSNeo3Constants.ALL_NETWORKS = [_a.MAINNET_NETWORK, _a.TESTNET_NETWORK];
70
254
  BSNeo3Constants.NEO_NS_HASH = '0x50ac1c37690cc2cfc594472833cf57505d5f46de';
71
255
  BSNeo3Constants.DEFAULT_BIP44_DERIVATION_PATH = "m/44'/888'/0'/0/?";
@@ -1,8 +1,7 @@
1
- import { Network } from '@cityofzion/blockchain-service';
2
- import { BSNeo3NetworkId } from '../constants/BSNeo3Constants';
1
+ import { TBSNetwork } from '@cityofzion/blockchain-service';
2
+ import { TBSNeo3NetworkId } from '../types';
3
3
  export declare class BSNeo3Helper {
4
- static getTokens(network: Network<BSNeo3NetworkId>): import("@cityofzion/blockchain-service").Token[];
5
- static getRpcList(network: Network<BSNeo3NetworkId>): string[];
6
- static isMainnet(network: Network<BSNeo3NetworkId>): boolean;
7
- static isCustomNet(network: Network<BSNeo3NetworkId>): boolean;
4
+ static getTokens(network: TBSNetwork<TBSNeo3NetworkId>): import("@cityofzion/blockchain-service").TBSToken[];
5
+ static isCustomNetwork(network: TBSNetwork<TBSNeo3NetworkId>): boolean;
6
+ static isMainnetNetwork(network: TBSNetwork<TBSNeo3NetworkId>): boolean;
8
7
  }
@@ -8,15 +8,16 @@ class BSNeo3Helper {
8
8
  const extraTokens = (_a = BSNeo3Constants_1.BSNeo3Constants.EXTRA_TOKENS_BY_NETWORK_ID[network.id]) !== null && _a !== void 0 ? _a : [];
9
9
  return [...extraTokens, ...BSNeo3Constants_1.BSNeo3Constants.NATIVE_ASSETS];
10
10
  }
11
- static getRpcList(network) {
12
- var _a;
13
- return (_a = BSNeo3Constants_1.BSNeo3Constants.RPC_LIST_BY_NETWORK_ID[network.id]) !== null && _a !== void 0 ? _a : [];
14
- }
15
- static isMainnet(network) {
16
- return BSNeo3Constants_1.BSNeo3Constants.MAINNET_NETWORK_IDS.includes(network.id);
11
+ static isCustomNetwork(network) {
12
+ if (network.type === 'custom')
13
+ return true;
14
+ const knownNetwork = BSNeo3Constants_1.BSNeo3Constants.ALL_NETWORKS.find(n => n.id === network.id);
15
+ if (!knownNetwork)
16
+ return true;
17
+ return false;
17
18
  }
18
- static isCustomNet(network) {
19
- return !BSNeo3Constants_1.BSNeo3Constants.ALL_NETWORK_IDS.includes(network.id);
19
+ static isMainnetNetwork(network) {
20
+ return network.id === BSNeo3Constants_1.BSNeo3Constants.MAINNET_NETWORK.id && network.type === 'mainnet';
20
21
  }
21
22
  }
22
23
  exports.BSNeo3Helper = BSNeo3Helper;
@@ -0,0 +1,6 @@
1
+ import type * as NeonDappKit from '@cityofzion/neon-dappkit';
2
+ export declare class BSNeo3NeonDappKitSingletonHelper {
3
+ #private;
4
+ static getInstance(): typeof NeonDappKit;
5
+ }
6
+ export type * from '@cityofzion/neon-dappkit-types';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
+ };
7
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8
+ if (kind === "m") throw new TypeError("Private method is not writable");
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
11
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12
+ };
13
+ var _a, _BSNeo3NeonDappKitSingletonHelper_instance;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.BSNeo3NeonDappKitSingletonHelper = void 0;
16
+ class BSNeo3NeonDappKitSingletonHelper {
17
+ static getInstance() {
18
+ if (!__classPrivateFieldGet(_a, _a, "f", _BSNeo3NeonDappKitSingletonHelper_instance)) {
19
+ __classPrivateFieldSet(_a, _a, require('@cityofzion/neon-dappkit'), "f", _BSNeo3NeonDappKitSingletonHelper_instance);
20
+ }
21
+ return __classPrivateFieldGet(_a, _a, "f", _BSNeo3NeonDappKitSingletonHelper_instance);
22
+ }
23
+ }
24
+ exports.BSNeo3NeonDappKitSingletonHelper = BSNeo3NeonDappKitSingletonHelper;
25
+ _a = BSNeo3NeonDappKitSingletonHelper;
26
+ _BSNeo3NeonDappKitSingletonHelper_instance = { value: void 0 };
@@ -0,0 +1,7 @@
1
+ import type * as NeonJs from '@cityofzion/neon-js';
2
+ export declare class BSNeo3NeonJsSingletonHelper {
3
+ #private;
4
+ static getInstance(): typeof NeonJs;
5
+ }
6
+ export type { api } from '@cityofzion/neon-js';
7
+ export type * from '@cityofzion/neon-core';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
+ };
7
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8
+ if (kind === "m") throw new TypeError("Private method is not writable");
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
11
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12
+ };
13
+ var _a, _BSNeo3NeonJsSingletonHelper_instance;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.BSNeo3NeonJsSingletonHelper = void 0;
16
+ class BSNeo3NeonJsSingletonHelper {
17
+ static getInstance() {
18
+ if (!__classPrivateFieldGet(_a, _a, "f", _BSNeo3NeonJsSingletonHelper_instance)) {
19
+ __classPrivateFieldSet(_a, _a, require('@cityofzion/neon-js'), "f", _BSNeo3NeonJsSingletonHelper_instance);
20
+ }
21
+ return __classPrivateFieldGet(_a, _a, "f", _BSNeo3NeonJsSingletonHelper_instance);
22
+ }
23
+ }
24
+ exports.BSNeo3NeonJsSingletonHelper = BSNeo3NeonJsSingletonHelper;
25
+ _a = BSNeo3NeonJsSingletonHelper;
26
+ _BSNeo3NeonJsSingletonHelper_instance = { value: void 0 };
package/dist/index.d.ts CHANGED
@@ -1,14 +1,15 @@
1
1
  export * from './BSNeo3';
2
2
  export * from './constants/BSNeo3Constants';
3
3
  export * from './helpers/BSNeo3Helper';
4
+ export * from './helpers/BSNeo3NeonJsSingletonHelper';
5
+ export * from './helpers/BSNeo3NeonDappKitSingletonHelper';
4
6
  export * from './services/blockchain-data/DoraBDSNeo3';
5
7
  export * from './services/blockchain-data/RpcBDSNeo3';
6
8
  export * from './services/exchange-data/FlamingoForthewinEDSNeo3';
7
9
  export * from './services/explorer/DoraESNeo3';
8
10
  export * from './services/ledger/NeonDappKitLedgerServiceNeo3';
9
11
  export * from './services/nft-data/GhostMarketNDSNeo3';
10
- export * from './services/nft-data/RpcNDSNeo3';
11
12
  export * from './services/vote/DoraVoteServiceNeo3';
12
13
  export * from './services/neo3neoXBridge/Neo3NeoXBridgeService';
13
14
  export * from './services/token/TokenServiceNeo3';
14
- export * from './interfaces';
15
+ export * from './types';
package/dist/index.js CHANGED
@@ -17,14 +17,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BSNeo3"), exports);
18
18
  __exportStar(require("./constants/BSNeo3Constants"), exports);
19
19
  __exportStar(require("./helpers/BSNeo3Helper"), exports);
20
+ __exportStar(require("./helpers/BSNeo3NeonJsSingletonHelper"), exports);
21
+ __exportStar(require("./helpers/BSNeo3NeonDappKitSingletonHelper"), exports);
20
22
  __exportStar(require("./services/blockchain-data/DoraBDSNeo3"), exports);
21
23
  __exportStar(require("./services/blockchain-data/RpcBDSNeo3"), exports);
22
24
  __exportStar(require("./services/exchange-data/FlamingoForthewinEDSNeo3"), exports);
23
25
  __exportStar(require("./services/explorer/DoraESNeo3"), exports);
24
26
  __exportStar(require("./services/ledger/NeonDappKitLedgerServiceNeo3"), exports);
25
27
  __exportStar(require("./services/nft-data/GhostMarketNDSNeo3"), exports);
26
- __exportStar(require("./services/nft-data/RpcNDSNeo3"), exports);
27
28
  __exportStar(require("./services/vote/DoraVoteServiceNeo3"), exports);
28
29
  __exportStar(require("./services/neo3neoXBridge/Neo3NeoXBridgeService"), exports);
29
30
  __exportStar(require("./services/token/TokenServiceNeo3"), exports);
30
- __exportStar(require("./interfaces"), exports);
31
+ __exportStar(require("./types"), exports);
@@ -1,17 +1,18 @@
1
- import { BalanceResponse, ContractResponse, FullTransactionsByAddressParams, FullTransactionsByAddressResponse, Network, NftDataService, Token, TransactionResponse, TransactionsByAddressParams, TransactionsByAddressResponse, ExplorerService, ExportTransactionsByAddressParams, TokenService, INeo3NeoXBridgeService } from '@cityofzion/blockchain-service';
1
+ import { TBalanceResponse, ContractResponse, TFullTransactionsByAddressParams, TFullTransactionsByAddressResponse, TBSToken, TTransactionResponse, TTransactionsByAddressParams, TTransactionsByAddressResponse, TExportTransactionsByAddressParams } from '@cityofzion/blockchain-service';
2
2
  import { api } from '@cityofzion/dora-ts';
3
- import { BSNeo3NetworkId } from '../../constants/BSNeo3Constants';
4
3
  import { RpcBDSNeo3 } from './RpcBDSNeo3';
5
- export declare const DoraNeoRest: api.NeoRESTApi;
6
- export declare class DoraBDSNeo3 extends RpcBDSNeo3 {
4
+ import { IBSNeo3, TBSNeo3NetworkId } from '../../types';
5
+ export declare class DoraBDSNeo3<N extends string> extends RpcBDSNeo3<N> {
7
6
  #private;
8
- constructor(network: Network<BSNeo3NetworkId>, feeToken: Token, claimToken: Token, tokens: Token[], nftDataService: NftDataService, explorerService: ExplorerService, tokenService: TokenService, neo3NeoXBridgeService: INeo3NeoXBridgeService);
9
- getTransaction(hash: string): Promise<TransactionResponse>;
10
- getTransactionsByAddress({ address, nextPageParams, }: TransactionsByAddressParams): Promise<TransactionsByAddressResponse>;
11
- getFullTransactionsByAddress({ nextCursor, ...params }: FullTransactionsByAddressParams): Promise<FullTransactionsByAddressResponse>;
12
- exportFullTransactionsByAddress(params: ExportTransactionsByAddressParams): Promise<string>;
7
+ static readonly SUPPORTED_NEP11_STANDARDS: string[];
8
+ static readonly FULL_TRANSACTIONS_SUPPORTED_NETWORKS_IDS: TBSNeo3NetworkId[];
9
+ static getClient(): api.NeoRESTApi;
10
+ constructor(service: IBSNeo3<N>);
11
+ getTransaction(hash: string): Promise<TTransactionResponse>;
12
+ getTransactionsByAddress({ address, nextPageParams, }: TTransactionsByAddressParams): Promise<TTransactionsByAddressResponse>;
13
+ getFullTransactionsByAddress({ nextCursor, ...params }: TFullTransactionsByAddressParams): Promise<TFullTransactionsByAddressResponse>;
14
+ exportFullTransactionsByAddress(params: TExportTransactionsByAddressParams): Promise<string>;
13
15
  getContract(contractHash: string): Promise<ContractResponse>;
14
- getTokenInfo(tokenHash: string): Promise<Token>;
15
- getBalance(address: string): Promise<BalanceResponse[]>;
16
- private convertByteStringToAddress;
16
+ getTokenInfo(tokenHash: string): Promise<TBSToken>;
17
+ getBalance(address: string): Promise<TBalanceResponse[]>;
17
18
  }