Skip to content

Commit 91637e6

Browse files
committed
release 0.5.0
1 parent 054d53a commit 91637e6

File tree

103 files changed

+3037
-2664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+3037
-2664
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@ jobs:
5353
command: $(which bash) .circleci/test.sh
5454
- run:
5555
name: "Deploy to Conan"
56-
command: $(which bash) .circleci/deploy.sh
56+
command: $(which bash) .circleci/deploy.sh
57+
- run:
58+
name: Deploy to Github
59+
command: $(which bash) .circleci/package.sh

.circleci/package.sh

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
#!/usr/bin/env bash
2-
mkdir output
3-
mkdir -p _build_package && cd _build_package
2+
rm -rf _build_package && mkdir _build_package
43

5-
rm -rf _install
4+
cd _build_package
65

7-
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$(pwd)/_install
8-
cmake --build . --target minter_tx_merge -- -j4
9-
cmake -DCOMPONENT=minter-sdk -P cmake_install.cmake
6+
mkdir _build
7+
mkdir _install
8+
mkdir _output
9+
10+
BOOST_HASH=$(conan info boost/1.70.0@conan/stable | grep ID | head -n1 | awk '{print $2}')
11+
CONAN_BOOST_PREFIX=${HOME}/.conan/data/boost/1.70.0/conan/stable/package/${BOOST_HASH}
12+
13+
cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CONAN=Off -DBOOST_ROOT=${CONAN_BOOST_PREFIX} -DENABLE_SHARED=On -DCMAKE_INSTALL_PREFIX=$(pwd)/_install
14+
cmake --build . -- -j4
15+
cmake --build . --target install
1016

1117
function to_lower() {
1218
local outRes=$(echo ${1} | awk '{ for ( i=1; i <= NF; i++) { sub(".", substr(tolower($i),1,1) , $i) } print }')
@@ -39,17 +45,16 @@ fi
3945
arch=$(uname -m)
4046
sysname=$(uname)
4147
sysname=$(to_lower ${sysname})
42-
gvers=$(git tag)
4348
ghash=$(git rev-parse --short=8 HEAD)
44-
fname_sufix="v${gvers}-${ghash}-${sysname}-${arch}"
49+
fname_sufix="v${VERS}-${ghash}-${sysname}-${arch}"
4550
fname="libminter_tx-${fname_sufix}.tar.gz"
4651

4752
cd $(pwd)/_install
4853

4954
tar -zcvf ${fname} .
5055

51-
mv ${fname} ../../output
52-
cd ../../output
56+
mv ${fname} ../_output
57+
cd ../_output
5358

5459
ls -lsa $(pwd)
5560

.clang-format

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: LLVM
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlines: Right
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: None
15+
AllowShortIfStatementsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: false
20+
AlwaysBreakTemplateDeclarations: Yes
21+
BinPackArguments: true
22+
BinPackParameters: true
23+
BraceWrapping:
24+
AfterClass: false
25+
AfterControlStatement: false
26+
AfterEnum: false
27+
AfterFunction: false
28+
AfterNamespace: false
29+
AfterObjCDeclaration: false
30+
AfterStruct: false
31+
AfterUnion: false
32+
AfterExternBlock: false
33+
BeforeCatch: false
34+
BeforeElse: false
35+
IndentBraces: false
36+
SplitEmptyFunction: true
37+
SplitEmptyRecord: true
38+
SplitEmptyNamespace: true
39+
BreakBeforeBinaryOperators: None
40+
BreakBeforeBraces: Attach
41+
BreakBeforeInheritanceComma: false
42+
BreakInheritanceList: BeforeColon
43+
BreakBeforeTernaryOperators: true
44+
BreakConstructorInitializersBeforeComma: false
45+
BreakConstructorInitializers: BeforeColon
46+
BreakAfterJavaFieldAnnotations: false
47+
BreakStringLiterals: true
48+
ColumnLimit: 0
49+
CommentPragmas: '^ IWYU pragma:'
50+
CompactNamespaces: false
51+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
52+
ConstructorInitializerIndentWidth: 4
53+
ContinuationIndentWidth: 4
54+
Cpp11BracedListStyle: true
55+
DerivePointerAlignment: false
56+
DisableFormat: false
57+
ExperimentalAutoDetectBinPacking: false
58+
FixNamespaceComments: true
59+
ForEachMacros:
60+
- foreach
61+
- Q_FOREACH
62+
- BOOST_FOREACH
63+
IncludeBlocks: Regroup
64+
IncludeCategories:
65+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
66+
Priority: 2
67+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
68+
Priority: 3
69+
- Regex: '.*'
70+
Priority: 1
71+
IncludeIsMainRegex: '(Test)?$'
72+
IndentCaseLabels: false
73+
IndentPPDirectives: None
74+
IndentWidth: 4
75+
IndentWrappedFunctionNames: false
76+
JavaScriptQuotes: Leave
77+
JavaScriptWrapImports: true
78+
KeepEmptyLinesAtTheStartOfBlocks: true
79+
MacroBlockBegin: ''
80+
MacroBlockEnd: ''
81+
MaxEmptyLinesToKeep: 1
82+
NamespaceIndentation: None
83+
ObjCBinPackProtocolList: Auto
84+
ObjCBlockIndentWidth: 2
85+
ObjCSpaceAfterProperty: false
86+
ObjCSpaceBeforeProtocolList: true
87+
PenaltyBreakAssignment: 2
88+
PenaltyBreakBeforeFirstCallParameter: 19
89+
PenaltyBreakComment: 300
90+
PenaltyBreakFirstLessLess: 120
91+
PenaltyBreakString: 1000
92+
PenaltyBreakTemplateDeclaration: 10
93+
PenaltyExcessCharacter: 1000000
94+
PenaltyReturnTypeOnItsOwnLine: 60
95+
PointerAlignment: Left
96+
ReflowComments: true
97+
SortIncludes: true
98+
SortUsingDeclarations: true
99+
SpaceAfterCStyleCast: true
100+
SpaceAfterTemplateKeyword: false
101+
SpaceBeforeAssignmentOperators: true
102+
SpaceBeforeCpp11BracedList: false
103+
SpaceBeforeCtorInitializerColon: true
104+
SpaceBeforeInheritanceColon: true
105+
SpaceBeforeParens: ControlStatements
106+
SpaceBeforeRangeBasedForLoopColon: true
107+
SpaceInEmptyParentheses: false
108+
SpacesBeforeTrailingComments: 1
109+
SpacesInAngles: false
110+
SpacesInContainerLiterals: true
111+
SpacesInCStyleCastParentheses: false
112+
SpacesInParentheses: false
113+
SpacesInSquareBrackets: false
114+
Standard: Cpp11
115+
TabWidth: 4
116+
UseTab: Never
117+
...
118+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ _build*
1111
build_*
1212
.vscode
1313
privs.txt
14-
include/minter/minter_tx_core.h
14+
include/minter/minter_tx_config.h

.gitmodules

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[submodule "libs/secp256k1"]
22
path = libs/secp256k1
33
url = https://github.com/edwardstock/native-secp256k1-java.git
4-
[submodule "libs/bip39"]
5-
path = libs/bip39
6-
url = https://github.com/edwardstock/native-bip39.git
74
[submodule "libs/gtest"]
85
path = libs/gtest
96
url = https://github.com/google/googletest.git
10-
[submodule "libs/toolboxpp"]
11-
path = libs/toolboxpp
12-
url = https://github.com/edwardstock/toolboxpp.git
7+
[submodule "libs/bip3x"]
8+
path = libs/bip3x
9+
url = https://github.com/edwardstock/bip3x.git
10+
[submodule "libs/toolbox"]
11+
path = libs/toolbox
12+
url = https://github.com/edwardstock/toolbox.git

0 commit comments

Comments
 (0)