Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMatthewLayton committed Aug 19, 2022
2 parents 7d698ab + 9dabb2f commit 0765029
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {
junit_version = '5.3.1'

onixlabs_group = 'io.onixlabs'
onixlabs_corda_core_release_version = '4.0.2'
onixlabs_corda_core_release_version = '4.0.3'

cordapp_platform_version = 11
cordapp_contract_name = 'ONIXLabs Corda Identity Framework Contract'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=onixlabs-corda-identity-framework
group=io.onixlabs
version=4.0.2
version=4.0.3
onixlabs.development.jarsign.keystore=../lib/onixlabs.development.pkcs12
onixlabs.development.jarsign.password=5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,9 @@ class AccountParty(
private val accountType: Class<T>
) : AbstractSingularResolvable<T>() {

override val contractStateType: Class<T>
get() = accountType
override val contractStateType: Class<T> get() = accountType

@Transient
override val criteria = vaultQuery(accountType) {
override val criteria get() = vaultQuery(accountType) {
contractStateTypes(accountType)
linearIds(accountLinearId)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ class LinearAttestationPointer<T : LinearState> internal constructor(
constructor(state: T) : this(state.javaClass, state.linearId)
constructor(stateAndRef: StateAndRef<T>) : this(stateAndRef.state.data)

@Transient
private val criteria: QueryCriteria = vaultQuery(stateType) {
private val criteria: QueryCriteria get() = vaultQuery(stateType) {
stateStatus(Vault.StateStatus.UNCONSUMED)
relevancyStatus(Vault.RelevancyStatus.ALL)
linearIds(statePointer)
Expand Down Expand Up @@ -215,8 +214,7 @@ class StaticAttestationPointer<T : ContractState> internal constructor(

constructor(stateAndRef: StateAndRef<T>) : this(stateAndRef.state.data.javaClass, stateAndRef.ref)

@Transient
private val criteria: QueryCriteria = vaultQuery(stateType) {
private val criteria: QueryCriteria get() = vaultQuery(stateType) {
stateStatus(Vault.StateStatus.ALL)
relevancyStatus(Vault.RelevancyStatus.ALL)
stateRefs(statePointer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ class LinearClaimPointer<T : CordaClaim<*>> private constructor(
valueType = claim.value.javaClass
)

@Transient
private val criteria = vaultQuery(claimType) {
private val criteria get() = vaultQuery(claimType) {
stateStatus(Vault.StateStatus.UNCONSUMED)
relevancyStatus(Vault.RelevancyStatus.ALL)
linearIds(value)
Expand Down Expand Up @@ -214,8 +213,7 @@ class StaticClaimPointer<T : CordaClaim<*>> private constructor(
valueType = claim.state.data.value.javaClass
)

@Transient
private val criteria = vaultQuery(claimType) {
private val criteria get() = vaultQuery(claimType) {
stateStatus(Vault.StateStatus.ALL)
relevancyStatus(Vault.RelevancyStatus.ALL)
stateRefs(value)
Expand Down

0 comments on commit 0765029

Please sign in to comment.