@cityofzion/bs-neo3 0.7.2 → 0.8.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.
- package/.rush/temp/operation/build/all.log +1 -0
- package/.rush/temp/operation/build/state.json +1 -1
- package/.rush/temp/package-deps_build.json +11 -7
- package/.rush/temp/shrinkwrap-deps.json +354 -130
- package/CHANGELOG.json +22 -0
- package/CHANGELOG.md +11 -0
- package/bs-neo3.build.log +1 -2
- package/dist/BSNeo3.d.ts +28 -27
- package/dist/BSNeo3.js +184 -182
- package/dist/DoraBDSNeo3.d.ts +12 -12
- package/dist/DoraBDSNeo3.js +169 -169
- package/dist/DoraESNeo3.d.ts +7 -0
- package/dist/DoraESNeo3.js +19 -0
- package/dist/FlamingoEDSNeo3.d.ts +8 -8
- package/dist/FlamingoEDSNeo3.js +45 -44
- package/dist/GhostMarketNDSNeo3.d.ts +10 -10
- package/dist/GhostMarketNDSNeo3.js +75 -75
- package/dist/RpcBDSNeo3.d.ts +16 -15
- package/dist/RpcBDSNeo3.js +153 -152
- package/dist/assets/tokens/common.json +14 -14
- package/dist/assets/tokens/mainnet.json +116 -116
- package/dist/constants.d.ts +7 -7
- package/dist/constants.js +28 -28
- package/dist/index.d.ts +6 -6
- package/dist/index.js +22 -22
- package/jest.config.ts +13 -13
- package/jest.setup.ts +1 -1
- package/package.json +33 -32
- package/src/BSNeo3.ts +228 -223
- package/src/DoraBDSNeo3.ts +180 -180
- package/src/DoraESNeo3.ts +19 -0
- package/src/FlamingoEDSNeo3.ts +47 -45
- package/src/GhostMarketNDSNeo3.ts +117 -117
- package/src/RpcBDSNeo3.ts +157 -155
- package/src/__tests__/BDSNeo3.spec.ts +126 -126
- package/src/__tests__/BSNeo3.spec.ts +142 -142
- package/src/__tests__/DoraESNeo3.spec.ts +23 -0
- package/src/__tests__/FlamingoEDSNeo3.spec.ts +48 -45
- package/src/__tests__/GhostMarketNDSNeo3.spec.ts +43 -43
- package/src/__tests__/utils/sleep.ts +1 -1
- package/src/assets/tokens/common.json +13 -13
- package/src/assets/tokens/mainnet.json +115 -115
- package/src/constants.ts +29 -29
- package/src/index.ts +6 -6
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +14 -14
- package/dist/BDSNeo3.d.ts +0 -15
- package/dist/BDSNeo3.js +0 -211
- package/dist/assets/tokens.json +0 -128
- package/dist/exceptions.d.ts +0 -3
- package/dist/exceptions.js +0 -8
- package/dist/explorer/dora/DoraNeo3Responses.d.ts +0 -174
- package/dist/explorer/dora/DoraNeo3Responses.js +0 -3
- package/dist/explorer/dora/DoraNeo3Routes.d.ts +0 -6
- package/dist/explorer/dora/DoraNeo3Routes.js +0 -9
- package/dist/explorer/index.d.ts +0 -6
- package/dist/explorer/index.js +0 -23
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -22
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1280
- package/docs/classes/BDSNeo3.html +0 -253
- package/docs/classes/BSNeo3.html +0 -442
- package/docs/index.html +0 -82
- package/docs/interfaces/DoraNeo3Abi.html +0 -78
- package/docs/interfaces/DoraNeo3Asset.html +0 -117
- package/docs/interfaces/DoraNeo3AssetState.html +0 -96
- package/docs/interfaces/DoraNeo3Balance.html +0 -89
- package/docs/interfaces/DoraNeo3ConsensusNode.html +0 -75
- package/docs/interfaces/DoraNeo3Contract.html +0 -110
- package/docs/interfaces/DoraNeo3Event.html +0 -75
- package/docs/interfaces/DoraNeo3Features.html +0 -84
- package/docs/interfaces/DoraNeo3HistoryState.html +0 -75
- package/docs/interfaces/DoraNeo3Invocation.html +0 -75
- package/docs/interfaces/DoraNeo3Item.html +0 -131
- package/docs/interfaces/DoraNeo3Manifest.html +0 -117
- package/docs/interfaces/DoraNeo3Metadata.html +0 -138
- package/docs/interfaces/DoraNeo3Method.html +0 -102
- package/docs/interfaces/DoraNeo3Nef.html +0 -103
- package/docs/interfaces/DoraNeo3Notification.html +0 -82
- package/docs/interfaces/DoraNeo3Parameter.html +0 -75
- package/docs/interfaces/DoraNeo3Permission.html +0 -75
- package/docs/interfaces/DoraNeo3Signer.html +0 -75
- package/docs/interfaces/DoraNeo3Token.html +0 -96
- package/docs/interfaces/DoraNeo3Transaction.html +0 -166
- package/docs/interfaces/DoraNeo3TransactionHistory.html +0 -75
- package/docs/interfaces/DoraNeo3Transfer.html +0 -117
- package/docs/interfaces/DoraNeo3Witness.html +0 -75
- package/docs/modules.html +0 -122
- package/docs/variables/DORA_ASSET.html +0 -81
- package/docs/variables/DORA_BALANCE.html +0 -81
- package/docs/variables/DORA_CONTRACT.html +0 -81
- package/docs/variables/DORA_NODES.html +0 -81
- package/docs/variables/DORA_TRANSACTION.html +0 -81
- package/docs/variables/DORA_TRANSACTIONS.html +0 -81
- package/docs/variables/explorerOptions.html +0 -86
- package/docs/variables/gasInfoNeo3.html +0 -90
- package/docs/variables/neoInfoNeo3.html +0 -90
package/dist/constants.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
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.DERIVATION_PATH = exports.GHOSTMARKET_CHAIN_BY_NETWORK_TYPE = exports.GHOSTMARKET_URL_BY_NETWORK_TYPE = exports.DEFAULT_URL_BY_NETWORK_TYPE = exports.NEO_NS_HASH = exports.TOKENS = void 0;
|
|
7
|
-
const common_json_1 = __importDefault(require("./assets/tokens/common.json"));
|
|
8
|
-
const mainnet_json_1 = __importDefault(require("./assets/tokens/mainnet.json"));
|
|
9
|
-
exports.TOKENS = {
|
|
10
|
-
mainnet: [...common_json_1.default, ...mainnet_json_1.default],
|
|
11
|
-
testnet: common_json_1.default,
|
|
12
|
-
custom: common_json_1.default,
|
|
13
|
-
};
|
|
14
|
-
exports.NEO_NS_HASH = '0x50ac1c37690cc2cfc594472833cf57505d5f46de';
|
|
15
|
-
exports.DEFAULT_URL_BY_NETWORK_TYPE = {
|
|
16
|
-
mainnet: 'https://mainnet1.neo.coz.io:443',
|
|
17
|
-
testnet: 'https://testnet1.neo.coz.io:443',
|
|
18
|
-
custom: 'http://127.0.0.1:50012',
|
|
19
|
-
};
|
|
20
|
-
exports.GHOSTMARKET_URL_BY_NETWORK_TYPE = {
|
|
21
|
-
mainnet: 'https://api.ghostmarket.io/api/v2',
|
|
22
|
-
testnet: 'https://api-testnet.ghostmarket.io/api/v2',
|
|
23
|
-
};
|
|
24
|
-
exports.GHOSTMARKET_CHAIN_BY_NETWORK_TYPE = {
|
|
25
|
-
mainnet: 'n3',
|
|
26
|
-
testnet: 'n3t',
|
|
27
|
-
};
|
|
28
|
-
exports.DERIVATION_PATH = "m/44'/888'/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.DERIVATION_PATH = exports.GHOSTMARKET_CHAIN_BY_NETWORK_TYPE = exports.GHOSTMARKET_URL_BY_NETWORK_TYPE = exports.DEFAULT_URL_BY_NETWORK_TYPE = exports.NEO_NS_HASH = exports.TOKENS = void 0;
|
|
7
|
+
const common_json_1 = __importDefault(require("./assets/tokens/common.json"));
|
|
8
|
+
const mainnet_json_1 = __importDefault(require("./assets/tokens/mainnet.json"));
|
|
9
|
+
exports.TOKENS = {
|
|
10
|
+
mainnet: [...common_json_1.default, ...mainnet_json_1.default],
|
|
11
|
+
testnet: common_json_1.default,
|
|
12
|
+
custom: common_json_1.default,
|
|
13
|
+
};
|
|
14
|
+
exports.NEO_NS_HASH = '0x50ac1c37690cc2cfc594472833cf57505d5f46de';
|
|
15
|
+
exports.DEFAULT_URL_BY_NETWORK_TYPE = {
|
|
16
|
+
mainnet: 'https://mainnet1.neo.coz.io:443',
|
|
17
|
+
testnet: 'https://testnet1.neo.coz.io:443',
|
|
18
|
+
custom: 'http://127.0.0.1:50012',
|
|
19
|
+
};
|
|
20
|
+
exports.GHOSTMARKET_URL_BY_NETWORK_TYPE = {
|
|
21
|
+
mainnet: 'https://api.ghostmarket.io/api/v2',
|
|
22
|
+
testnet: 'https://api-testnet.ghostmarket.io/api/v2',
|
|
23
|
+
};
|
|
24
|
+
exports.GHOSTMARKET_CHAIN_BY_NETWORK_TYPE = {
|
|
25
|
+
mainnet: 'n3',
|
|
26
|
+
testnet: 'n3t',
|
|
27
|
+
};
|
|
28
|
+
exports.DERIVATION_PATH = "m/44'/888'/0'/0/?";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './DoraBDSNeo3';
|
|
2
|
-
export * from './RpcBDSNeo3';
|
|
3
|
-
export * from './BSNeo3';
|
|
4
|
-
export * from './constants';
|
|
5
|
-
export * from './FlamingoEDSNeo3';
|
|
6
|
-
export * from './GhostMarketNDSNeo3';
|
|
1
|
+
export * from './DoraBDSNeo3';
|
|
2
|
+
export * from './RpcBDSNeo3';
|
|
3
|
+
export * from './BSNeo3';
|
|
4
|
+
export * from './constants';
|
|
5
|
+
export * from './FlamingoEDSNeo3';
|
|
6
|
+
export * from './GhostMarketNDSNeo3';
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./DoraBDSNeo3"), exports);
|
|
18
|
-
__exportStar(require("./RpcBDSNeo3"), exports);
|
|
19
|
-
__exportStar(require("./BSNeo3"), exports);
|
|
20
|
-
__exportStar(require("./constants"), exports);
|
|
21
|
-
__exportStar(require("./FlamingoEDSNeo3"), exports);
|
|
22
|
-
__exportStar(require("./GhostMarketNDSNeo3"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DoraBDSNeo3"), exports);
|
|
18
|
+
__exportStar(require("./RpcBDSNeo3"), exports);
|
|
19
|
+
__exportStar(require("./BSNeo3"), exports);
|
|
20
|
+
__exportStar(require("./constants"), exports);
|
|
21
|
+
__exportStar(require("./FlamingoEDSNeo3"), exports);
|
|
22
|
+
__exportStar(require("./GhostMarketNDSNeo3"), exports);
|
package/jest.config.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { JestConfigWithTsJest } from 'ts-jest'
|
|
2
|
-
const config: JestConfigWithTsJest = {
|
|
3
|
-
preset: 'ts-jest',
|
|
4
|
-
testEnvironment: 'node',
|
|
5
|
-
clearMocks: true,
|
|
6
|
-
verbose: true,
|
|
7
|
-
bail: true,
|
|
8
|
-
testMatch: ['<rootDir>/**/*.spec.ts'],
|
|
9
|
-
setupFiles: ['<rootDir>/jest.setup.ts'],
|
|
10
|
-
detectOpenHandles: true,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default config
|
|
1
|
+
import { JestConfigWithTsJest } from 'ts-jest'
|
|
2
|
+
const config: JestConfigWithTsJest = {
|
|
3
|
+
preset: 'ts-jest',
|
|
4
|
+
testEnvironment: 'node',
|
|
5
|
+
clearMocks: true,
|
|
6
|
+
verbose: true,
|
|
7
|
+
bail: true,
|
|
8
|
+
testMatch: ['<rootDir>/**/*.spec.ts'],
|
|
9
|
+
setupFiles: ['<rootDir>/jest.setup.ts'],
|
|
10
|
+
detectOpenHandles: true,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default config
|
package/jest.setup.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import 'dotenv/config'
|
|
1
|
+
import 'dotenv/config'
|
package/package.json
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cityofzion/bs-neo3",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/index.d.ts",
|
|
6
|
-
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
7
|
-
"author": "Coz",
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"@cityofzion/neon-
|
|
15
|
-
"@cityofzion/
|
|
16
|
-
"@cityofzion/
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"@cityofzion/
|
|
20
|
-
"@cityofzion/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"ts-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@cityofzion/bs-neo3",
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
7
|
+
"author": "Coz",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@cityofzion/neon-js": "5.3.0",
|
|
11
|
+
"@cityofzion/neon-core": "5.3.0",
|
|
12
|
+
"@cityofzion/neon-invoker": "1.6.0",
|
|
13
|
+
"@cityofzion/neo3-invoker": "1.6.0",
|
|
14
|
+
"@cityofzion/neon-parser": "1.6.2",
|
|
15
|
+
"@cityofzion/neo3-parser": "1.6.0",
|
|
16
|
+
"@cityofzion/dora-ts": "0.0.11",
|
|
17
|
+
"axios": "1.5.1",
|
|
18
|
+
"query-string": "7.1.3",
|
|
19
|
+
"@cityofzion/blockchain-service": "0.8.0",
|
|
20
|
+
"@cityofzion/bs-asteroid-sdk": "0.7.3"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"ts-node": "10.9.1",
|
|
24
|
+
"typescript": "4.9.5",
|
|
25
|
+
"jest": "29.6.2",
|
|
26
|
+
"ts-jest": "29.1.1",
|
|
27
|
+
"@types/jest": "29.5.3",
|
|
28
|
+
"dotenv": "16.3.1"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc --project tsconfig.build.json",
|
|
32
|
+
"test": "jest --config jest.config.ts"
|
|
33
|
+
}
|
|
33
34
|
}
|