@cityofzion/bs-neox 1.1.2 → 1.2.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/dist/BSNeoX.d.ts +3 -2
- package/dist/BSNeoX.js +2 -0
- package/dist/assets/abis/bridge.d.ts +95 -0
- package/dist/assets/abis/bridge.js +1880 -0
- package/dist/constants/BSNeoXConstants.d.ts +3 -2
- package/dist/constants/BSNeoXConstants.js +30 -13
- package/dist/helpers/BSNeoXHelper.d.ts +5 -0
- package/dist/helpers/BSNeoXHelper.js +10 -0
- package/dist/services/blockchain-data/BlockscoutBDSNeoX.js +14 -11
- package/dist/services/neo3neoXBridge/Neo3NeoXBridgeService.d.ts +16 -0
- package/dist/services/neo3neoXBridge/Neo3NeoXBridgeService.js +314 -0
- package/package.json +3 -3
package/dist/BSNeoX.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BSEthereum } from '@cityofzion/bs-ethereum';
|
|
2
2
|
import { BSNeoXNetworkId } from './constants/BSNeoXConstants';
|
|
3
|
-
import { GetLedgerTransport, Network } from '@cityofzion/blockchain-service';
|
|
4
|
-
export declare class BSNeoX<BSName extends string = string> extends BSEthereum<BSName, BSNeoXNetworkId> {
|
|
3
|
+
import { GetLedgerTransport, IBSWithNeo3NeoXBridge, INeo3NeoXBridgeService, Network } from '@cityofzion/blockchain-service';
|
|
4
|
+
export declare class BSNeoX<BSName extends string = string> extends BSEthereum<BSName, BSNeoXNetworkId> implements IBSWithNeo3NeoXBridge<BSName> {
|
|
5
|
+
neo3NeoXBridgeService: INeo3NeoXBridgeService<BSName>;
|
|
5
6
|
constructor(name: BSName, network?: Network<BSNeoXNetworkId>, getLedgerTransport?: GetLedgerTransport<BSName>);
|
|
6
7
|
setNetwork(network: Network<BSNeoXNetworkId>): void;
|
|
7
8
|
}
|
package/dist/BSNeoX.js
CHANGED
|
@@ -7,6 +7,7 @@ const BlockscoutBDSNeoX_1 = require("./services/blockchain-data/BlockscoutBDSNeo
|
|
|
7
7
|
const FlamingoForthewinEDSNeoX_1 = require("./services/exchange-data/FlamingoForthewinEDSNeoX");
|
|
8
8
|
const BlockscoutESNeoX_1 = require("./services/explorer/BlockscoutESNeoX");
|
|
9
9
|
const GhostMarketNDSNeoX_1 = require("./services/nft-data/GhostMarketNDSNeoX");
|
|
10
|
+
const Neo3NeoXBridgeService_1 = require("./services/neo3neoXBridge/Neo3NeoXBridgeService");
|
|
10
11
|
class BSNeoX extends bs_ethereum_1.BSEthereum {
|
|
11
12
|
constructor(name, network, getLedgerTransport) {
|
|
12
13
|
network = network !== null && network !== void 0 ? network : BSNeoXConstants_1.BSNeoXConstants.DEFAULT_NETWORK;
|
|
@@ -21,6 +22,7 @@ class BSNeoX extends bs_ethereum_1.BSEthereum {
|
|
|
21
22
|
this.explorerService = new BlockscoutESNeoX_1.BlockscoutESNeoX(network);
|
|
22
23
|
this.exchangeDataService = new FlamingoForthewinEDSNeoX_1.FlamingoForthewinEDSNeoX(network);
|
|
23
24
|
this.blockchainDataService = new BlockscoutBDSNeoX_1.BlockscoutBDSNeoX(network, this.nftDataService, this.explorerService);
|
|
25
|
+
this.neo3NeoXBridgeService = new Neo3NeoXBridgeService_1.Neo3NeoXBridgeService(this);
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
exports.BSNeoX = BSNeoX;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare const BRIDGE_ABI: ({
|
|
2
|
+
inputs: never[];
|
|
3
|
+
stateMutability: string;
|
|
4
|
+
type: string;
|
|
5
|
+
name?: undefined;
|
|
6
|
+
anonymous?: undefined;
|
|
7
|
+
outputs?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
inputs: {
|
|
10
|
+
internalType: string;
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
}[];
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
stateMutability?: undefined;
|
|
17
|
+
anonymous?: undefined;
|
|
18
|
+
outputs?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
anonymous: boolean;
|
|
21
|
+
inputs: ({
|
|
22
|
+
indexed: boolean;
|
|
23
|
+
internalType: string;
|
|
24
|
+
name: string;
|
|
25
|
+
type: string;
|
|
26
|
+
components?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
components: {
|
|
29
|
+
internalType: string;
|
|
30
|
+
name: string;
|
|
31
|
+
type: string;
|
|
32
|
+
}[];
|
|
33
|
+
indexed: boolean;
|
|
34
|
+
internalType: string;
|
|
35
|
+
name: string;
|
|
36
|
+
type: string;
|
|
37
|
+
})[];
|
|
38
|
+
name: string;
|
|
39
|
+
type: string;
|
|
40
|
+
stateMutability?: undefined;
|
|
41
|
+
outputs?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
inputs: ({
|
|
44
|
+
internalType: string;
|
|
45
|
+
name: string;
|
|
46
|
+
type: string;
|
|
47
|
+
components?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
components: {
|
|
50
|
+
internalType: string;
|
|
51
|
+
name: string;
|
|
52
|
+
type: string;
|
|
53
|
+
}[];
|
|
54
|
+
internalType: string;
|
|
55
|
+
name: string;
|
|
56
|
+
type: string;
|
|
57
|
+
})[];
|
|
58
|
+
name: string;
|
|
59
|
+
outputs: never[];
|
|
60
|
+
stateMutability: string;
|
|
61
|
+
type: string;
|
|
62
|
+
anonymous?: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
inputs: {
|
|
65
|
+
internalType: string;
|
|
66
|
+
name: string;
|
|
67
|
+
type: string;
|
|
68
|
+
}[];
|
|
69
|
+
name: string;
|
|
70
|
+
outputs: ({
|
|
71
|
+
internalType: string;
|
|
72
|
+
name: string;
|
|
73
|
+
type: string;
|
|
74
|
+
components?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
components: {
|
|
77
|
+
internalType: string;
|
|
78
|
+
name: string;
|
|
79
|
+
type: string;
|
|
80
|
+
}[];
|
|
81
|
+
internalType: string;
|
|
82
|
+
name: string;
|
|
83
|
+
type: string;
|
|
84
|
+
})[];
|
|
85
|
+
stateMutability: string;
|
|
86
|
+
type: string;
|
|
87
|
+
anonymous?: undefined;
|
|
88
|
+
} | {
|
|
89
|
+
stateMutability: string;
|
|
90
|
+
type: string;
|
|
91
|
+
inputs?: undefined;
|
|
92
|
+
name?: undefined;
|
|
93
|
+
anonymous?: undefined;
|
|
94
|
+
outputs?: undefined;
|
|
95
|
+
})[];
|