Skip to content

Commit 02a888d

Browse files
authored
chore(transactions): add delegate resignation builder and tests (#208)
- add Delegate Resignation Builder file to `/builders/` dir. - add Delegate Resignation header include to `builder.hpp`. - update the CHANGELOG.
1 parent 7d996cd commit 02a888d

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ 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+
## [Unreleased]
9+
10+
### Added
11+
- added Delegate Resignation Builder ([#208])
12+
813
## [1.0.0-arduino] - 2020-02-13
914

1015
### Changed
@@ -105,3 +110,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
105110
[#190]: https://github.com/ArkEcosystem/cpp-crypto/pull/190
106111
[#198]: https://github.com/ArkEcosystem/cpp-crypto/pull/198
107112
[1.0.0-arduino]: https://github.com/ArkEcosystem/cpp-crypto/compare/0.7.0-arduino...1.0.0-arduino
113+
[1.0.0]: https://github.com/ArkEcosystem/cpp-crypto/compare/0.7.0-arduino...1.0.0
114+
[#208]: https://github.com/ArkEcosystem/cpp-crypto/pull/208
115+
[unreleased]: https://github.com/ArkEcosystem/cpp-crypto/compare/1.0.0-arduino...develop

src/transactions/builders/builder.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// #include "transactions/builders/multi_signature.hpp"
1818
#include "transactions/builders/ipfs.hpp"
1919
#include "transactions/builders/multi_payment.hpp"
20+
#include "transactions/builders/delegate_resignation.hpp"
2021
#include "transactions/builders/htlc_lock.hpp"
2122
#include "transactions/builders/htlc_claim.hpp"
2223
#include "transactions/builders/htlc_refund.hpp"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* This file is part of Ark Cpp Crypto.
3+
*
4+
* (c) Ark Ecosystem <info@ark.io>
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
**/
9+
10+
#ifndef ARK_TRANSACTIONS_BUILDERS_DELEGATE_RESIGNATION_HPP
11+
#define ARK_TRANSACTIONS_BUILDERS_DELEGATE_RESIGNATION_HPP
12+
13+
#include "transactions/builders/common.hpp"
14+
15+
namespace Ark {
16+
namespace Crypto {
17+
namespace transactions {
18+
namespace builder {
19+
20+
////////////////////////////////////////////////////////////////////////////////
21+
// Forward Declaration
22+
class DelegateResignation;
23+
24+
////////////////////////////////////////////////////////////////////////////////
25+
class DelegateResignation : public Common<DelegateResignation> {
26+
public:
27+
DelegateResignation() {
28+
this->transaction.data.type = DELEGATE_RESIGNATION_TYPE;
29+
}
30+
};
31+
32+
} // namespace builder
33+
} // namespace transactions
34+
} // namespace Crypto
35+
} // namespace Ark
36+
37+
#endif

0 commit comments

Comments
 (0)