@cityofzion/bs-neo3 1.1.1 → 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/DoraBDSNeo3.d.ts +1 -1
- package/dist/DoraBDSNeo3.js +6 -5
- package/dist/GhostMarketNDSNeo3.js +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/package.json +2 -2
package/dist/DoraBDSNeo3.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { BSNeo3NetworkId } from './BSNeo3Helper';
|
|
|
4
4
|
export declare class DoraBDSNeo3 extends RPCBDSNeo3 {
|
|
5
5
|
constructor(network: Network<BSNeo3NetworkId>, feeToken: Token, claimToken: Token, tokens: Token[]);
|
|
6
6
|
getTransaction(hash: string): Promise<TransactionResponse>;
|
|
7
|
-
getTransactionsByAddress({ address,
|
|
7
|
+
getTransactionsByAddress({ address, nextPageParams, }: TransactionsByAddressParams): Promise<TransactionsByAddressResponse>;
|
|
8
8
|
getContract(contractHash: string): Promise<ContractResponse>;
|
|
9
9
|
getTokenInfo(tokenHash: string): Promise<Token>;
|
|
10
10
|
getBalance(address: string): Promise<BalanceResponse[]>;
|
package/dist/DoraBDSNeo3.js
CHANGED
|
@@ -49,15 +49,15 @@ class DoraBDSNeo3 extends RpcBDSNeo3_1.RPCBDSNeo3 {
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
getTransactionsByAddress({ address,
|
|
52
|
+
getTransactionsByAddress({ address, nextPageParams = 1, }) {
|
|
53
53
|
const _super = Object.create(null, {
|
|
54
54
|
getTransactionsByAddress: { get: () => super.getTransactionsByAddress }
|
|
55
55
|
});
|
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
57
|
if (BSNeo3Helper_1.BSNeo3Helper.isCustomNet(this._network)) {
|
|
58
|
-
return yield _super.getTransactionsByAddress.call(this, { address,
|
|
58
|
+
return yield _super.getTransactionsByAddress.call(this, { address, nextPageParams });
|
|
59
59
|
}
|
|
60
|
-
const data = yield NeoRest.addressTXFull(address,
|
|
60
|
+
const data = yield NeoRest.addressTXFull(address, nextPageParams, this._network.id);
|
|
61
61
|
const promises = data.items.map((item) => __awaiter(this, void 0, void 0, function* () {
|
|
62
62
|
var _a, _b;
|
|
63
63
|
const transferPromises = [];
|
|
@@ -111,10 +111,11 @@ class DoraBDSNeo3 extends RpcBDSNeo3_1.RPCBDSNeo3 {
|
|
|
111
111
|
};
|
|
112
112
|
}));
|
|
113
113
|
const transactions = yield Promise.all(promises);
|
|
114
|
+
const limit = 15;
|
|
115
|
+
const totalPages = Math.ceil(data.totalCount / limit);
|
|
114
116
|
return {
|
|
115
|
-
|
|
117
|
+
nextPageParams: nextPageParams < totalPages ? nextPageParams + 1 : undefined,
|
|
116
118
|
transactions,
|
|
117
|
-
limit: 15,
|
|
118
119
|
};
|
|
119
120
|
});
|
|
120
121
|
}
|
|
@@ -65,7 +65,8 @@ _GhostMarketNDSNeo3_network = new WeakMap(), _GhostMarketNDSNeo3_instances = new
|
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
if (srcImage.startsWith('ipfs://')) {
|
|
68
|
-
const
|
|
68
|
+
const splitImage = srcImage.split('/');
|
|
69
|
+
const imageId = splitImage.slice(-2).join('/');
|
|
69
70
|
return `https://ghostmarket.mypinata.cloud/ipfs/${imageId}`;
|
|
70
71
|
}
|
|
71
72
|
return srcImage;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
export * from './flamingo-swap/FlamingoSwapControllerService';
|
|
2
|
+
export * from './flamingo-swap/FlamingoSwapHelper';
|
|
3
|
+
export * from './flamingo-swap/FlamingoSwapNeonDappKitInvocationBuilder';
|
|
1
4
|
export * from './BSNeo3';
|
|
2
5
|
export * from './BSNeo3Helper';
|
|
3
6
|
export * from './DoraBDSNeo3';
|
|
4
|
-
export * from './RpcBDSNeo3';
|
|
5
7
|
export * from './DoraESNeo3';
|
|
6
8
|
export * from './FlamingoEDSNeo3';
|
|
7
9
|
export * from './GhostMarketNDSNeo3';
|
|
8
|
-
export * from './RpcNDSNeo3';
|
|
9
10
|
export * from './NeonDappKitLedgerServiceNeo3';
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './flamingo-swap/FlamingoSwapNeonDappKitInvocationBuilder';
|
|
11
|
+
export * from './RpcBDSNeo3';
|
|
12
|
+
export * from './RpcNDSNeo3';
|
package/dist/index.js
CHANGED
|
@@ -14,15 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./flamingo-swap/FlamingoSwapControllerService"), exports);
|
|
18
|
+
__exportStar(require("./flamingo-swap/FlamingoSwapHelper"), exports);
|
|
19
|
+
__exportStar(require("./flamingo-swap/FlamingoSwapNeonDappKitInvocationBuilder"), exports);
|
|
17
20
|
__exportStar(require("./BSNeo3"), exports);
|
|
18
21
|
__exportStar(require("./BSNeo3Helper"), exports);
|
|
19
22
|
__exportStar(require("./DoraBDSNeo3"), exports);
|
|
20
|
-
__exportStar(require("./RpcBDSNeo3"), exports);
|
|
21
23
|
__exportStar(require("./DoraESNeo3"), exports);
|
|
22
24
|
__exportStar(require("./FlamingoEDSNeo3"), exports);
|
|
23
25
|
__exportStar(require("./GhostMarketNDSNeo3"), exports);
|
|
24
|
-
__exportStar(require("./RpcNDSNeo3"), exports);
|
|
25
26
|
__exportStar(require("./NeonDappKitLedgerServiceNeo3"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
27
|
-
__exportStar(require("./
|
|
28
|
-
__exportStar(require("./flamingo-swap/FlamingoSwapNeonDappKitInvocationBuilder"), exports);
|
|
27
|
+
__exportStar(require("./RpcBDSNeo3"), exports);
|
|
28
|
+
__exportStar(require("./RpcNDSNeo3"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-neo3",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/CityOfZion/blockchain-services",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@cityofzion/neon-dappkit": "0.4.1",
|
|
20
20
|
"bignumber.js": "~9.1.2",
|
|
21
21
|
"isomorphic-ws": "~5.0.0",
|
|
22
|
-
"@cityofzion/blockchain-service": "1.
|
|
22
|
+
"@cityofzion/blockchain-service": "1.2.0",
|
|
23
23
|
"@cityofzion/bs-asteroid-sdk": "0.9.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|