Skip to content

Commit 2be2ffc

Browse files
Merge pull request #7 from onix-labs/main
Main
2 parents b4d49b8 + 671cd8d commit 2be2ffc

File tree

124 files changed

+8567
-579
lines changed

Some content is hidden

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

124 files changed

+8567
-579
lines changed

.idea/runConfigurations/Run_Contract_Tests.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Run_Workflow_Tests.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 0 additions & 142 deletions
This file was deleted.

HEADER

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
/**
2-
* Copyright 2020 Matthew Layton
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
Copyright 2020-2021 ONIXLabs
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

README.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,57 @@
22

33
# ONIXLabs Corda Core
44

5-
ONIXLabs Corda Core provides Corda developers with a suite of APIs to empower development of CorDapps, and also serves as the foundation for all of the ONIXLabs Corda Frameworks and APIs.
5+
The ONIXLabs Corda Core API provides Corda developers with a suite of APIs to empower development of Corda contracts, workflows and integration. These APIs are not intended to be used as CorDapps, since they do not contain any states or contracts, however they are partitioned into contract, workflow and integration modules containing features to improve and simplify CorDapp design and development.
66

7-
Whilst the ONIXLabs Corda Core API isn't intended to be used as a CorDapp (it doesn't have any of it's own states and/or contracts), it's partitioned into contract, workflow and integration layers for simplicty, and is signed with the ONIXLabs key.
7+
## CorDapp Signing
88

9+
As of version 2.0.0 of the ONIXLabs Corda Core API, this repository ships with the ONIXLabs developer signing key so that this repository can be checked out and built locally. Official releases of this API are signed with the ONIXLabs production signing key.
910

11+
## Integration Guide
1012

13+
Follow these steps to integrate the ONIXLabs Corda Core API into your application
1114

15+
1. Add the following to your project's top level **build.gradle** file.
1216

17+
```
18+
buildscript {
19+
ext {
20+
onixlabs_group = 'io.onixlabs'
21+
onixlabs_corda_core_release_version = '2.0.0'
22+
}
23+
}
24+
```
25+
26+
2. Implement the ONIXLabs Corda Core contract module into your contract.
27+
28+
```
29+
dependencies {
30+
cordapp "$onixlabs_group:onixlabs-corda-core-contract:$onixlabs_corda_core_release_version"
31+
}
32+
```
33+
34+
3. Implement the ONIXLabs Corda Core workflow module into your workflow.
35+
36+
```
37+
dependencies {
38+
cordapp "$onixlabs_group:onixlabs-corda-core-workflow:$onixlabs_corda_core_release_version"
39+
}
40+
```
41+
42+
4. Implement the ONIXLabs Corda Core integration module into your integration.
43+
44+
```
45+
dependencies {
46+
implementation "$onixlabs_group:onixlabs-corda-core-integration:$onixlabs_corda_core_release_version"
47+
}
48+
```
49+
50+
## Package Versioning
51+
52+
The ONIXLabs Corda Core API uses semantic versioning for every published release of the API. Version numbers apply the following format, **_major_._minor_._patch_**; for example 1.2.34
53+
54+
- **Major** - The API contains breaking changes which are not backwards compatible.
55+
- **Minor** - The API contains new features which are backwards compatible.
56+
- **Patch** - The API contains bug fixes which are backwards compatible.
57+
58+
Release Candidate versions are considered unstable and likely to change quickly. Release Candidate version numbers apply the following format, **_major_._minor_._patch_-rc#**; for example 1.2.0-rc3

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ buildscript {
2323
cordapp_signing_enabled = true
2424
cordapp_signing_alias = 'cordapp-signer'
2525
cordapp_signing_storetype = 'PKCS12'
26-
cordapp_signing_keystore = getProperty('jar.sign.keystore')
27-
cordapp_signing_password = getProperty('jar.sign.password')
26+
cordapp_signing_keystore = findProperty('onixlabs.production.jarsign.keystore') ?: getProperty('onixlabs.development.jarsign.keystore')
27+
cordapp_signing_password = findProperty('onixlabs.production.jarsign.password') ?: getProperty('onixlabs.development.jarsign.password')
2828
}
2929

3030
repositories {
@@ -42,7 +42,7 @@ buildscript {
4242
}
4343

4444
group 'io.onixlabs'
45-
version '1.2.0'
45+
version '2.0.0'
4646

4747
subprojects {
4848
repositories {

0 commit comments

Comments
 (0)