Skip to content
Snippets Groups Projects
Commit 74b44b01 authored by Boyan Tsolov's avatar Boyan Tsolov
Browse files

rebuild

parent f58968a9
No related branches found
No related tags found
1 merge request!90New design of qr code template
Pipeline #68388 passed
...@@ -66,7 +66,8 @@ class AeternityService { ...@@ -66,7 +66,8 @@ class AeternityService {
throw new Error("Aeternity contract bytecode not defined"); throw new Error("Aeternity contract bytecode not defined");
} }
//Default value for block height step is 2, based on tests //Default value for block height step is 2, based on tests
this._blockHeightStep = typeof blockHeightStep === "number" ? blockHeightStep : 2; this._blockHeightStep =
typeof blockHeightStep === "number" ? blockHeightStep : 2;
this._nodeUrls = typeof nodeUrls === "string" ? [nodeUrls] : nodeUrls; this._nodeUrls = typeof nodeUrls === "string" ? [nodeUrls] : nodeUrls;
this._compilerUrls = this._compilerUrls =
typeof compilerUrls === "string" ? [compilerUrls] : compilerUrls; typeof compilerUrls === "string" ? [compilerUrls] : compilerUrls;
...@@ -144,8 +145,9 @@ class AeternityService { ...@@ -144,8 +145,9 @@ class AeternityService {
getBlockHeightRange(startingBlock) { getBlockHeightRange(startingBlock) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const endBlockHeight = startingBlock + this._blockHeightStep; const endBlockHeight = startingBlock + this._blockHeightStep;
const { data } = yield this.requestNode({ url: `/mdw/v2/blocks?scope=gen${startingBlock}-${endBlockHeight}` }) const { data } = yield this.requestNode({
.then(({ data }) => data); url: `/mdw/v2/blocks?scope=gen${startingBlock}-${endBlockHeight}`,
}).then(({ data }) => data);
return data; return data;
}); });
} }
......
export interface AeternityAPITxData { export interface AeternityAPITxData {
"block_hash": string; block_hash: string;
"block_height": number; block_height: number;
"hash": string; hash: string;
"signatures": Array<string>; signatures: Array<string>;
"tx": { tx: {
"abi_version": number; abi_version: number;
"amount": number; amount: number;
"call_data": string; call_data: string;
"caller_id": string; caller_id: string;
"contract_id": string; contract_id: string;
"fee": number; fee: number;
"gas": number; gas: number;
"gas_price": number; gas_price: number;
"nonce": number; nonce: number;
"type": string; type: string;
"version": number; version: number;
}; };
} }
export interface AeternityAPIMicroBLock { export interface AeternityAPIMicroBLock {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment