Skip to content

Commit 751212f

Browse files
authored
Merge pull request #187 from ArkEcosystem/release/1.4.1
release: 1.4.1
2 parents 392ad9a + 974b9ed commit 751212f

23 files changed

+200
-138
lines changed

.codacy.yml

-4
This file was deleted.

.codeclimate.yml

-15
This file was deleted.

.github/workflows/codeclimate.yml

-35
This file was deleted.

.github/workflows/test/clang_format.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -ex
1+
#!/usr/bin/env bash
22

33
grep -nr '\s$' src test .gitignore 2>&1 > /dev/null
44
if $?; then

.github/workflows/test/clang_tidy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# run clang tidy
44
cmake -DENABLE_CLANG_TIDY=ON -DUNIT_TEST=ON .

.github/workflows/test/install_platform_io.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
# install PlatformIO
24
sudo pip install -U platformio
35

.github/workflows/test/script_desktop.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
# run desktop builds
24
cmake . -DCMAKE_BUILD_TYPE=Coverage -DBUILD_TESTING=OFF
35
cmake --build .

.github/workflows/test/script_platform_io.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
# run PlatformIO builds
24
platformio run
35

CHANGELOG.md

+19-14
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,58 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [1.4.0] - 2020-02-13
8+
## [1.4.1] - 2020-03-06
9+
10+
### Added
11+
- added first and last block methods ([#183])
912

10-
## [1.4.0-arduino] - 2020-02-13
13+
### Changed
14+
- improved building as a project dependency ([#176])
15+
16+
## [1.4.0] - 2020-02-13
1117

1218
### Added
1319
- added Core 2.6 endpoints ([#159])
1420

1521
## [1.3.0] - 2019-10-09
1622

17-
## [1.3.0-arduino] - 2019-10-09
18-
1923
### Added
2024
- added Blockchain API endpoint ([#104])
2125

2226
### Changed
27+
- moved external libraries out of source tree ([#140])
2328
- improved API query usage to accept strings ([#114])
2429
- improved class members and test coverage ([#93])
2530
- improved formatting and maintainability ([#92])
2631
- dropped Hunter Package Manager in favor of git submodules in OS builds ([#90])
2732
- updated ArduinoJson 5.13.2 >> 6.10.1, usage patterns, and documentation/examples ([#87])
28-
- moved external libraries out of source tree ([#140])
2933

3034
### Fixed
3135
- fixed typos in Arduino examples ([#86])
3236
- changed to "statusCode" '422' to test API Post response for empty Transactions objects ([#85])
3337

3438
## [1.2.0] - 2019-02-16
35-
## [1.2.0-arduino] - 2019-02-16
39+
3640
### Added
3741
- arduino CircleCI config ([#73])
3842

3943
### Changed
44+
- removed `./src/stl` library ([#78])
4045
- updated `keywords.txt`. ([#77])
41-
- updated `./library.json` package export settings ([#70])
46+
- updated `ARDUINO_IDE.sh` script to reflect `lib/` changes ([#76])
4247
- reorganized files and documentation ([#75])
43-
- removed `./src/stl` library ([#78])
4448
- automated `ARDUINO_IDE.sh` script ([#72])
45-
- updated `ARDUINO_IDE.sh` script to reflect `lib/` changes ([#76])
49+
- updated `./library.json` package export settings ([#70])
4650

4751
## [1.1.0] - 2019-02-07
52+
4853
### Added
49-
- added an API `send()` method for the `Transactions` class ([#64])
5054
- added Arduino Sketch Paths to `library.json` ([#67])
55+
- added an API `send()` method for the `Transactions` class ([#64])
5156

5257
### Fixed
53-
- fixed unterminated comment which resulted in skipped `Node` tests ([#63])
5458
- renamed `Helpers` class to avoid naming collision with Cpp-Crypto `Helpers` ([#65])
59+
- fixed unterminated comment which resulted in skipped `Node` tests ([#63])
5560

5661
## [1.0.0] - 2019-01-19
5762
- Initial Release
@@ -70,7 +75,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7075
[#77]: https://github.com/ArkEcosystem/cpp-client/pull/77
7176
[#78]: https://github.com/ArkEcosystem/cpp-client/pull/78
7277
[1.2.0]: https://github.com/ArkEcosystem/cpp-client/compare/1.1.0...1.2.0
73-
[1.2.0-arduino]: https://github.com/ArkEcosystem/cpp-client/compare/1.1.0-arduino...1.2.0-arduino
7478
[#85]: https://github.com/ArkEcosystem/cpp-client/pull/85
7579
[#86]: https://github.com/ArkEcosystem/cpp-client/pull/86
7680
[#87]: https://github.com/ArkEcosystem/cpp-client/pull/87
@@ -80,8 +84,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
8084
[#104]: https://github.com/ArkEcosystem/cpp-client/pull/104
8185
[#114]: https://github.com/ArkEcosystem/cpp-client/pull/114
8286
[#140]: https://github.com/ArkEcosystem/cpp-client/pull/140
83-
[1.3.0-arduino]: https://github.com/ArkEcosystem/cpp-client/compare/1.2.0-arduino...1.3.0-arduino
8487
[1.3.0]: https://github.com/ArkEcosystem/cpp-client/compare/1.2.0...1.3.0
8588
[#159]: https://github.com/ArkEcosystem/cpp-client/pull/159
8689
[1.4.0]: https://github.com/ArkEcosystem/cpp-client/compare/1.3.0...1.4.0
87-
[1.4.0]: https://github.com/ArkEcosystem/cpp-client/compare/1.3.0-arduino...1.4.0-arduino
90+
[#176]: https://github.com/ArkEcosystem/cpp-client/pull/176
91+
[#183]: https://github.com/ArkEcosystem/cpp-client/pull/183
92+
[1.4.1]: https://github.com/ArkEcosystem/cpp-client/compare/1.4.0...1.4.1

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
rm -dfr build
44
mkdir build

cmake/External.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (APPLE)
1616
endif()
1717

1818
# Set the configuration
19-
configure_file(${CMAKE_SOURCE_DIR}/cmake/extern/CURL.txt.in
19+
configure_file(${CMAKE_INSTALL_PREFIX}/cmake/extern/CURL.txt.in
2020
${EXTERNAL_LIBRARY_DIR}/curl/CMakeLists.txt)
2121

2222
# Execute Git Clone and run Cmake

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "https://github.com/ArkEcosystem/Cpp-Client.git"
99
},
10-
"version": "1.4.0",
10+
"version": "1.4.1",
1111
"authors": [
1212
{
1313
"name": "Ark Ecosystem",

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Ark-Cpp-Client
2-
version=1.4.0
2+
version=1.4.1
33
author=Ark Ecosystem
44
maintainer=Ark Ecosystem
55
sentence=A simple API client implementation in C++ for the ARK Blockchain.

run_tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
rm -dfr build
44
mkdir build

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(ark_cpp_client C CXX)
77
# External Libraries
88
# ------------------------------------------------------------------------------
99

10-
include(${CMAKE_SOURCE_DIR}/cmake/External.cmake)
10+
include(${CMAKE_INSTALL_PREFIX}/cmake/External.cmake)
1111

1212
# ------------------------------------------------------------------------------
1313

src/api/blocks/blocks.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ std::string Blocks::get(const char* blockId) {
1919

2020
/**/
2121

22+
std::string Blocks::first() {
23+
return http_->get(paths::Blocks::first(this->host_).c_str());
24+
}
25+
26+
/**/
27+
28+
std::string Blocks::last() {
29+
return http_->get(paths::Blocks::last(this->host_).c_str());
30+
}
31+
32+
/**/
33+
2234
std::string Blocks::all(const char* const query) {
2335
return http_->get(paths::Blocks::all(this->host_, query).c_str());
2436
}

0 commit comments

Comments
 (0)