@cityofzion/bs-neo3 3.0.0 → 3.0.2

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.
@@ -93,8 +93,8 @@ class DoraBDSNeo3 extends RpcBDSNeo3_1.RpcBDSNeo3 {
93
93
  date: new Date(Number(response.time) * 1000).toISOString(),
94
94
  txId: response.hash,
95
95
  txIdUrl,
96
- systemFeeAmount: blockchain_service_1.BSBigNumberHelper.format((_c = response.sysfee) !== null && _c !== void 0 ? _c : 0, { decimals: this._service.feeToken.decimals }),
97
- networkFeeAmount: blockchain_service_1.BSBigNumberHelper.format((_d = response.netfee) !== null && _d !== void 0 ? _d : 0, { decimals: this._service.feeToken.decimals }),
96
+ systemFeeAmount: blockchain_service_1.BSBigNumberHelper.format(blockchain_service_1.BSBigNumberHelper.fromDecimals((_c = response.sysfee) !== null && _c !== void 0 ? _c : 0, this._service.feeToken.decimals), { decimals: this._service.feeToken.decimals }),
97
+ networkFeeAmount: blockchain_service_1.BSBigNumberHelper.format(blockchain_service_1.BSBigNumberHelper.fromDecimals((_d = response.netfee) !== null && _d !== void 0 ? _d : 0, this._service.feeToken.decimals), { decimals: this._service.feeToken.decimals }),
98
98
  events,
99
99
  invocationCount: 0,
100
100
  notificationCount: 0,
@@ -132,8 +132,8 @@ class DoraBDSNeo3 extends RpcBDSNeo3_1.RpcBDSNeo3 {
132
132
  date: new Date(Number(item.time) * 1000).toISOString(),
133
133
  txId: item.hash,
134
134
  txIdUrl,
135
- systemFeeAmount: blockchain_service_1.BSBigNumberHelper.format((_c = item.sysfee) !== null && _c !== void 0 ? _c : 0, { decimals: this._service.feeToken.decimals }),
136
- networkFeeAmount: blockchain_service_1.BSBigNumberHelper.format((_d = item.netfee) !== null && _d !== void 0 ? _d : 0, { decimals: this._service.feeToken.decimals }),
135
+ systemFeeAmount: blockchain_service_1.BSBigNumberHelper.format(blockchain_service_1.BSBigNumberHelper.fromDecimals((_c = item.sysfee) !== null && _c !== void 0 ? _c : 0, this._service.feeToken.decimals), { decimals: this._service.feeToken.decimals }),
136
+ networkFeeAmount: blockchain_service_1.BSBigNumberHelper.format(blockchain_service_1.BSBigNumberHelper.fromDecimals((_d = item.netfee) !== null && _d !== void 0 ? _d : 0, this._service.feeToken.decimals), { decimals: this._service.feeToken.decimals }),
137
137
  events,
138
138
  invocationCount: 0,
139
139
  notificationCount: (_e = notifications === null || notifications === void 0 ? void 0 : notifications.length) !== null && _e !== void 0 ? _e : 0,
@@ -137,10 +137,10 @@ class RpcBDSNeo3 {
137
137
  txId: response.hash,
138
138
  txIdUrl,
139
139
  block: response.validuntilblock,
140
- systemFeeAmount: blockchain_service_1.BSBigNumberHelper.format((_a = response.sysfee) !== null && _a !== void 0 ? _a : 0, {
140
+ systemFeeAmount: blockchain_service_1.BSBigNumberHelper.format(blockchain_service_1.BSBigNumberHelper.fromDecimals((_a = response.sysfee) !== null && _a !== void 0 ? _a : 0, this._service.feeToken.decimals), {
141
141
  decimals: this._service.feeToken.decimals,
142
142
  }),
143
- networkFeeAmount: blockchain_service_1.BSBigNumberHelper.format((_b = response.netfee) !== null && _b !== void 0 ? _b : 0, {
143
+ networkFeeAmount: blockchain_service_1.BSBigNumberHelper.format(blockchain_service_1.BSBigNumberHelper.fromDecimals((_b = response.netfee) !== null && _b !== void 0 ? _b : 0, this._service.feeToken.decimals), {
144
144
  decimals: this._service.feeToken.decimals,
145
145
  }),
146
146
  invocationCount: 0,
@@ -18,6 +18,9 @@ class GhostMarketNDSNeo3 extends blockchain_service_1.GhostMarketNDS {
18
18
  }
19
19
  hasToken(_a) {
20
20
  return __awaiter(this, arguments, void 0, function* ({ collectionHash, address }) {
21
+ if (!collectionHash) {
22
+ throw new blockchain_service_1.BSError('collectionHash is required to get NFT from GhostMarketNDSNeo3', 'REQUIRED_PARAMETER_MISSING');
23
+ }
21
24
  const { NeonParser, NeonInvoker } = BSNeo3NeonDappKitSingletonHelper_1.BSNeo3NeonDappKitSingletonHelper.getInstance();
22
25
  const invoker = yield NeonInvoker.init({ rpcAddress: this._service.network.url });
23
26
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neo3",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",
@@ -15,7 +15,7 @@
15
15
  "@cityofzion/neon-core": "~5.7.0",
16
16
  "@cityofzion/neon-dappkit": "~0.6.0",
17
17
  "axios": "~1.13.2",
18
- "@cityofzion/blockchain-service": "3.0.0"
18
+ "@cityofzion/blockchain-service": "3.0.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@cityofzion/neon-dappkit-types": "~0.5.0",