Skip to content
Snippets Groups Projects
Commit 9874d49b authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

Merge branch 'template-update' into 'master'

New design of qr code template

See merge request !90
parents 651bf002 90fb0fcb
No related branches found
No related tags found
1 merge request!90New design of qr code template
Pipeline #68402 passed
......@@ -66,7 +66,8 @@ class AeternityService {
throw new Error("Aeternity contract bytecode not defined");
}
//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._compilerUrls =
typeof compilerUrls === "string" ? [compilerUrls] : compilerUrls;
......@@ -144,8 +145,9 @@ class AeternityService {
getBlockHeightRange(startingBlock) {
return __awaiter(this, void 0, void 0, function* () {
const endBlockHeight = startingBlock + this._blockHeightStep;
const { data } = yield this.requestNode({ url: `/mdw/v2/blocks?scope=gen${startingBlock}-${endBlockHeight}` })
.then(({ data }) => data);
const { data } = yield this.requestNode({
url: `/mdw/v2/blocks?scope=gen${startingBlock}-${endBlockHeight}`,
}).then(({ data }) => data);
return data;
});
}
......
export interface AeternityAPITxData {
"block_hash": string;
"block_height": number;
"hash": string;
"signatures": Array<string>;
"tx": {
"abi_version": number;
"amount": number;
"call_data": string;
"caller_id": string;
"contract_id": string;
"fee": number;
"gas": number;
"gas_price": number;
"nonce": number;
"type": string;
"version": number;
block_hash: string;
block_height: number;
hash: string;
signatures: Array<string>;
tx: {
abi_version: number;
amount: number;
call_data: string;
caller_id: string;
contract_id: string;
fee: number;
gas: number;
gas_price: number;
nonce: number;
type: string;
version: number;
};
}
export interface AeternityAPIMicroBLock {
......
This diff is collapsed.
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