diff --git a/.github/workflows/remove-stale-branches.yml b/.github/workflows/remove-stale-branches.yml new file mode 100644 index 0000000000..25dd1b9f8c --- /dev/null +++ b/.github/workflows/remove-stale-branches.yml @@ -0,0 +1,19 @@ +name: 'Remove stale branches' +on: + schedule: + - cron: '0 0 * * 1-5' + +jobs: + remove-stale-branches: + name: Remove stale branches + runs-on: ubuntu-latest + steps: + - uses: fpicalausa/remove-stale-branches@v1.5.8 + with: + dry-run: true + days-before-branch-stale: 30 + days-before-branch-delete: 14 + stale-branch-message: "@{author} The branch [{branchName}]({branchUrl}) hasn't been updated in the last 30 days and is marked as stale. It will be removed in 14 days.\r\nIf you want to keep this branch around, delete this comment or add new commits to this branch." + exempt-protected-branches: true + exempt-branches-regex: "^(release\\/|feature\\/|poc\\/).*" + operations-per-run: 30 diff --git a/application/build.gradle b/application/build.gradle index b93fbaefd1..7b4d113e22 100644 --- a/application/build.gradle +++ b/application/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda Application' diff --git a/application/scans/corda-application-5.1.0.yaml b/application/scans/corda-application-5.1.0.yaml new file mode 100644 index 0000000000..8c86ca41b3 --- /dev/null +++ b/application/scans/corda-application-5.1.0.yaml @@ -0,0 +1,1900 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.application.crypto.CompositeKeyGenerator: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + create: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.security.PublicKey + params: + keys: + annotation: + - NotNull + type: java.util.List + threshold: + annotation: + - Nullable + type: Integer +net.corda.v5.application.crypto.DigestService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + defaultDigestAlgorithm: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.DigestAlgorithmName + digestLength: + annotations: + - Suspendable + default: false + type: public abstract + returnType: int + params: + digestName: + annotation: + - NotNull + type: net.corda.v5.crypto.DigestAlgorithmName + hash: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + params: + inputStream: + annotation: + - NotNull + type: java.io.InputStream + digestName: + annotation: + - NotNull + type: net.corda.v5.crypto.DigestAlgorithmName + parseSecureHash: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + params: + algoNameAndHexString: + annotation: + - NotNull + type: String + supportedDigestAlgorithms: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.Set +net.corda.v5.application.crypto.DigitalSignatureAndMetadata: + annotations: + - CordaSerializable + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + obj: + annotation: + - Nullable + type: Object + getBy: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash + getMetadata: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.application.crypto.DigitalSignatureMetadata + getProof: + annotations: + - Nullable + default: false + type: public + returnType: net.corda.v5.crypto.merkle.MerkleProof + getSignature: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.DigitalSignature$WithKeyId + hashCode: + annotations: [] + default: false + type: public + returnType: int + toString: + annotations: + - NotNull + default: false + type: public + returnType: String +net.corda.v5.application.crypto.DigitalSignatureMetadata: + annotations: + - CordaSerializable + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + obj: + annotation: + - Nullable + type: Object + getProperties: + annotations: + - NotNull + default: false + type: public + returnType: "java.util.Map" + getSignatureSpec: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.SignatureSpec + getTimestamp: + annotations: + - NotNull + default: false + type: public + returnType: java.time.Instant + hashCode: + annotations: [] + default: false + type: public + returnType: int + toString: + annotations: + - NotNull + default: false + type: public + returnType: String +net.corda.v5.application.crypto.DigitalSignatureVerificationService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + verify: + annotations: [] + default: false + type: public abstract + returnType: void + params: + originalData: + annotation: + - NotNull + type: "byte[]" + signature: + annotation: + - NotNull + type: net.corda.v5.crypto.DigitalSignature + publicKey: + annotation: + - NotNull + type: java.security.PublicKey + signatureSpec: + annotation: + - NotNull + type: net.corda.v5.crypto.SignatureSpec +net.corda.v5.application.crypto.MerkleTreeFactory: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + createHashDigest: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.merkle.MerkleTreeHashDigest + params: + merkleTreeHashDigestProviderName: + annotation: + - NotNull + type: String + digestAlgorithmName: + annotation: + - NotNull + type: net.corda.v5.crypto.DigestAlgorithmName + options: + annotation: + - NotNull + type: "java.util.Map" + createTree: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.merkle.MerkleTree + params: + leaves: + annotation: + - NotNull + type: "java.util.List" + digest: + annotation: + - NotNull + type: net.corda.v5.crypto.merkle.MerkleTreeHashDigest +net.corda.v5.application.crypto.SignatureSpecService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + compatibleSignatureSpecs: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + publicKey: + annotation: + - NotNull + type: java.security.PublicKey + digestAlgorithmName: + annotation: + - NotNull + type: net.corda.v5.crypto.DigestAlgorithmName + defaultSignatureSpec: + annotations: + - Suspendable + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.crypto.SignatureSpec + params: + publicKey: + annotation: + - NotNull + type: java.security.PublicKey + digestAlgorithmName: + annotation: + - NotNull + type: net.corda.v5.crypto.DigestAlgorithmName +net.corda.v5.application.crypto.SigningService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + findMySigningKeys: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: "java.util.Map" + params: + keys: + annotation: + - NotNull + type: java.util.Set + sign: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.DigitalSignature$WithKeyId + params: + bytes: + annotation: + - NotNull + type: "byte[]" + publicKey: + annotation: + - NotNull + type: java.security.PublicKey + signatureSpec: + annotation: + - NotNull + type: net.corda.v5.crypto.SignatureSpec +net.corda.v5.application.flows.ClientRequestBody: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + getRequestBody: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getRequestBodyAs: + annotations: + - NotNull + default: false + type: public abstract + returnType: T + params: + marshallingService: + annotation: + - NotNull + type: net.corda.v5.application.marshalling.MarshallingService + clazz: + annotation: + - NotNull + type: Class + getRequestBodyAsList: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + marshallingService: + annotation: + - NotNull + type: net.corda.v5.application.marshalling.MarshallingService + clazz: + annotation: + - NotNull + type: Class + getRequestBodyAsMap: + annotations: + - NotNull + default: false + type: public abstract + returnType: "java.util.Map" + params: + marshallingService: + annotation: + - NotNull + type: net.corda.v5.application.marshalling.MarshallingService + keyClass: + annotation: + - NotNull + type: Class + valueClass: + annotation: + - NotNull + type: Class +net.corda.v5.application.flows.ClientStartableFlow: + annotations: + - DoNotImplement + type: public interface + extends: + - net.corda.v5.application.flows.Flow + interface: true + methods: + call: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: String + params: + requestBody: + annotation: + - NotNull + type: net.corda.v5.application.flows.ClientRequestBody +net.corda.v5.application.flows.CordaInject: + annotations: [] + type: public @interface + interface: false + methods: {} +net.corda.v5.application.flows.Flow: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: {} +net.corda.v5.application.flows.FlowContextProperties: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + get: + annotations: + - Nullable + default: false + type: public abstract + returnType: String + params: + key: + annotation: + - NotNull + type: String + put: + annotations: [] + default: false + type: public abstract + returnType: void + params: + key: + annotation: + - NotNull + type: String + value: + annotation: + - NotNull + type: String +net.corda.v5.application.flows.FlowContextPropertyKeys: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: {} + fields: + CPI_NAME: + annotation: [] + type: public static final String + initialised value: corda.cpiName + CPI_VERSION: + annotation: [] + type: public static final String + initialised value: corda.cpiVersion + CPI_SIGNER_SUMMARY_HASH: + annotation: [] + type: public static final String + initialised value: corda.cpiSignerSummaryHash + CPI_FILE_CHECKSUM: + annotation: [] + type: public static final String + initialised value: corda.cpiFileChecksum + CPK_FILE_CHECKSUM: + annotation: [] + type: public static final String + initialised value: corda.cpkFileChecksum + INITIAL_PLATFORM_VERSION: + annotation: [] + type: public static final String + initialised value: corda.initialPlatformVersion + INITIAL_SOFTWARE_VERSION: + annotation: [] + type: public static final String + initialised value: corda.initialSoftwareVersion +net.corda.v5.application.flows.FlowEngine: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getFlowContextProperties: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.flows.FlowContextProperties + getFlowId: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.UUID + getVirtualNodeName: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name + subFlow: + annotations: + - Suspendable + default: false + type: public abstract + returnType: R + params: + subFlow: + annotation: + - NotNull + type: net.corda.v5.application.flows.SubFlow +net.corda.v5.application.flows.InitiatedBy: + annotations: [] + type: public @interface + interface: false + methods: + protocol: + annotations: [] + default: false + type: public abstract + returnType: String + version: + annotations: [] + default: false + type: public abstract + returnType: "int[]" +net.corda.v5.application.flows.InitiatingFlow: + annotations: [] + type: public @interface + interface: false + methods: + protocol: + annotations: [] + default: false + type: public abstract + returnType: String + version: + annotations: [] + default: false + type: public abstract + returnType: "int[]" +net.corda.v5.application.flows.ResponderFlow: + annotations: + - DoNotImplement + type: public interface + extends: + - net.corda.v5.application.flows.Flow + interface: true + methods: + call: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + session: + annotation: + - NotNull + type: net.corda.v5.application.messaging.FlowSession +net.corda.v5.application.flows.SubFlow: + annotations: + - DoNotImplement + type: public interface + extends: + - net.corda.v5.application.flows.Flow + interface: true + methods: + call: + annotations: + - Suspendable + default: false + type: public abstract + returnType: T +net.corda.v5.application.marshalling.JsonMarshallingService: + annotations: + - DoNotImplement + type: public interface + extends: + - net.corda.v5.application.marshalling.MarshallingService + interface: true + methods: + format: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + params: + data: + annotation: + - NotNull + type: Object + parse: + annotations: [] + default: false + type: public abstract + returnType: T + params: + input: + annotation: + - NotNull + type: String + clazz: + annotation: + - NotNull + type: Class + parseList: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + input: + annotation: + - NotNull + type: String + clazz: + annotation: + - NotNull + type: Class + parseMap: + annotations: + - NotNull + default: false + type: public abstract + returnType: "java.util.Map" + params: + input: + annotation: + - NotNull + type: String + keyClass: + annotation: + - NotNull + type: Class + valueClass: + annotation: + - NotNull + type: Class +net.corda.v5.application.marshalling.MarshallingService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + format: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + params: + data: + annotation: + - NotNull + type: Object + parse: + annotations: [] + default: false + type: public abstract + returnType: T + params: + input: + annotation: + - NotNull + type: String + clazz: + annotation: + - NotNull + type: Class + parseList: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + input: + annotation: + - NotNull + type: String + clazz: + annotation: + - NotNull + type: Class + parseMap: + annotations: + - NotNull + default: false + type: public abstract + returnType: "java.util.Map" + params: + input: + annotation: + - NotNull + type: String + keyClass: + annotation: + - NotNull + type: Class + valueClass: + annotation: + - NotNull + type: Class +net.corda.v5.application.marshalling.json.JsonDeserializer: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + deserialize: + annotations: [] + default: false + type: public abstract + returnType: T + params: + jsonRoot: + annotation: + - NotNull + type: net.corda.v5.application.marshalling.json.JsonNodeReader +net.corda.v5.application.marshalling.json.JsonNodeReader: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + asArray: + annotations: + - Nullable + default: false + type: public abstract + returnType: java.util.Iterator + asBoolean: + annotations: [] + default: false + type: public abstract + returnType: boolean + params: + defaultValue: + annotation: [] + type: boolean + asDouble: + annotations: [] + default: false + type: public abstract + returnType: double + params: + defaultValue: + annotation: [] + type: double + asInt: + annotations: [] + default: false + type: public abstract + returnType: int + params: + defaultValue: + annotation: [] + type: int + asLong: + annotations: [] + default: false + type: public abstract + returnType: long + params: + defaultValue: + annotation: [] + type: long + asText: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + params: + defaultValue: + annotation: + - NotNull + type: String + bigDecimalValue: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.math.BigDecimal + bigIntegerValue: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.math.BigInteger + binaryValue: + annotations: + - Nullable + default: false + type: public abstract + returnType: "byte[]" + canConvertToInt: + annotations: [] + default: false + type: public abstract + returnType: boolean + canConvertToLong: + annotations: [] + default: false + type: public abstract + returnType: boolean + doubleValue: + annotations: [] + default: false + type: public abstract + returnType: double + fields: + annotations: + - Nullable + default: false + type: public abstract + returnType: "java.util.Iterator>" + floatValue: + annotations: [] + default: false + type: public abstract + returnType: float + getField: + annotations: + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.application.marshalling.json.JsonNodeReader + params: + fieldName: + annotation: + - NotNull + type: String + getType: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.marshalling.json.JsonNodeReaderType + hasField: + annotations: [] + default: false + type: public abstract + returnType: boolean + params: + fieldName: + annotation: + - NotNull + type: String + isArray: + annotations: [] + default: false + type: public abstract + returnType: boolean + isBoolean: + annotations: [] + default: false + type: public abstract + returnType: boolean + isDouble: + annotations: [] + default: false + type: public abstract + returnType: boolean + isFloatingPointNumber: + annotations: [] + default: false + type: public abstract + returnType: boolean + isInt: + annotations: [] + default: false + type: public abstract + returnType: boolean + isNull: + annotations: [] + default: false + type: public abstract + returnType: boolean + isNumber: + annotations: [] + default: false + type: public abstract + returnType: boolean + isObject: + annotations: [] + default: false + type: public abstract + returnType: boolean + isText: + annotations: [] + default: false + type: public abstract + returnType: boolean + numberValue: + annotations: + - Nullable + default: false + type: public abstract + returnType: Number + parse: + annotations: + - Nullable + default: false + type: public abstract + returnType: T + params: + clazz: + annotation: + - NotNull + type: Class + shortValue: + annotations: [] + default: false + type: public abstract + returnType: short +net.corda.v5.application.marshalling.json.JsonNodeReaderType: + annotations: [] + type: public final class + extends: java.lang.Enum + implements: [] + interface: false + methods: + valueOf: + annotations: [] + default: false + type: public static + returnType: net.corda.v5.application.marshalling.json.JsonNodeReaderType + params: {} + values: + annotations: [] + default: false + type: public static + returnType: "net.corda.v5.application.marshalling.json.JsonNodeReaderType[]" +net.corda.v5.application.marshalling.json.JsonSerializedBase64Config: + annotations: [] + type: public final class + extends: java.lang.Enum + implements: [] + interface: false + methods: + valueOf: + annotations: [] + default: false + type: public static + returnType: net.corda.v5.application.marshalling.json.JsonSerializedBase64Config + params: {} + values: + annotations: [] + default: false + type: public static + returnType: "net.corda.v5.application.marshalling.json.JsonSerializedBase64Config[]" +net.corda.v5.application.marshalling.json.JsonSerializer: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + serialize: + annotations: [] + default: false + type: public abstract + returnType: void + params: + item: + annotation: [] + type: T + jsonWriter: + annotation: + - NotNull + type: net.corda.v5.application.marshalling.json.JsonWriter +net.corda.v5.application.marshalling.json.JsonWriter: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + writeArray: + annotations: [] + default: false + type: public abstract + returnType: void + params: + array: + annotation: + - NotNull + type: "String[]" + offset: + annotation: [] + type: int + len: + annotation: [] + type: int + writeArrayFieldStart: + annotations: [] + default: false + type: public abstract + returnType: void + params: + fieldName: + annotation: + - NotNull + type: String + writeBinary: + annotations: [] + default: false + type: public abstract + returnType: void + params: + data: + annotation: + - NotNull + type: java.io.InputStream + len: + annotation: [] + type: int + writeBinaryField: + annotations: [] + default: false + type: public abstract + returnType: void + params: + fieldName: + annotation: + - NotNull + type: String + data: + annotation: + - NotNull + type: "byte[]" + writeBoolean: + annotations: [] + default: false + type: public abstract + returnType: void + params: + state: + annotation: [] + type: boolean + writeBooleanField: + annotations: [] + default: false + type: public abstract + returnType: void + params: + fieldName: + annotation: + - NotNull + type: String + state: + annotation: [] + type: boolean + writeEndArray: + annotations: [] + default: false + type: public abstract + returnType: void + writeEndObject: + annotations: [] + default: false + type: public abstract + returnType: void + writeFieldName: + annotations: [] + default: false + type: public abstract + returnType: void + params: + fieldName: + annotation: + - NotNull + type: String + writeNull: + annotations: [] + default: false + type: public abstract + returnType: void + writeNullField: + annotations: [] + default: false + type: public abstract + returnType: void + params: + fieldName: + annotation: + - NotNull + type: String + writeNumber: + annotations: [] + default: false + type: public abstract + returnType: void + params: + v: + annotation: [] + type: short + writeNumberField: + annotations: [] + default: false + type: public abstract + returnType: void + params: + fieldName: + annotation: + - NotNull + type: String + v: + annotation: [] + type: long + writeObject: + annotations: [] + default: false + type: public abstract + returnType: void + params: + pojo: + annotation: + - NotNull + type: Object + writeObjectField: + annotations: [] + default: false + type: public abstract + returnType: void + params: + fieldName: + annotation: + - NotNull + type: String + pojo: + annotation: + - NotNull + type: Object + writeObjectFieldStart: + annotations: [] + default: false + type: public abstract + returnType: void + params: + fieldName: + annotation: + - NotNull + type: String + writeRaw: + annotations: [] + default: false + type: public abstract + returnType: void + params: + text: + annotation: + - NotNull + type: String + offset: + annotation: [] + type: int + len: + annotation: [] + type: int + writeRawValue: + annotations: [] + default: false + type: public abstract + returnType: void + params: + text: + annotation: + - NotNull + type: String + offset: + annotation: [] + type: int + len: + annotation: [] + type: int + writeStartArray: + annotations: [] + default: false + type: public abstract + returnType: void + writeStartObject: + annotations: [] + default: false + type: public abstract + returnType: void + writeString: + annotations: [] + default: false + type: public abstract + returnType: void + params: + text: + annotation: + - NotNull + type: String + writeStringField: + annotations: [] + default: false + type: public abstract + returnType: void + params: + fieldName: + annotation: + - NotNull + type: String + text: + annotation: + - NotNull + type: String +net.corda.v5.application.membership.MemberLookup: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + lookup: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.List + myInfo: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.membership.MemberInfo +net.corda.v5.application.messaging.ExternalMessaging: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + send: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + channelName: + annotation: + - NotNull + type: String + messageId: + annotation: + - NotNull + type: String + message: + annotation: + - NotNull + type: String +net.corda.v5.application.messaging.FlowContextPropertiesBuilder: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + apply: + annotations: [] + default: false + type: public abstract + returnType: void + params: + flowContextProperties: + annotation: + - NotNull + type: net.corda.v5.application.flows.FlowContextProperties +net.corda.v5.application.messaging.FlowInfo: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: + protocol: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + protocolVersion: + annotations: + - NotNull + default: false + type: public abstract + returnType: Integer +net.corda.v5.application.messaging.FlowMessaging: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + initiateFlow: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.messaging.FlowSession + params: + x500Name: + annotation: + - NotNull + type: net.corda.v5.base.types.MemberX500Name + requireClose: + annotation: [] + type: boolean + flowContextPropertiesBuilder: + annotation: + - NotNull + type: net.corda.v5.application.messaging.FlowContextPropertiesBuilder + receiveAll: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + receiveType: + annotation: + - NotNull + type: Class + sessions: + annotation: + - NotNull + type: java.util.Set + receiveAllMap: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: "java.util.Map" + params: + sessions: + annotation: + - NotNull + type: "java.util.Map>" + sendAll: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + payload: + annotation: + - NotNull + type: Object + sessions: + annotation: + - NotNull + type: java.util.Set + sendAllMap: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + payloadsPerSession: + annotation: + - NotNull + type: "java.util.Map" +net.corda.v5.application.messaging.FlowSession: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + close: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + getContextProperties: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.flows.FlowContextProperties + getCounterparty: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name + getCounterpartyFlowInfo: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.messaging.FlowInfo + receive: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: R + params: + receiveType: + annotation: + - NotNull + type: Class + send: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + payload: + annotation: + - NotNull + type: Object + sendAndReceive: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: R + params: + receiveType: + annotation: + - NotNull + type: Class + payload: + annotation: + - NotNull + type: Object +net.corda.v5.application.persistence.CordaPersistenceException: + annotations: [] + type: public final class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: {} +net.corda.v5.application.persistence.PagedQuery: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + execute: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.PagedQuery$ResultSet + setLimit: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.PagedQuery + params: + limit: + annotation: [] + type: int + setOffset: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.PagedQuery + params: + offset: + annotation: [] + type: int +net.corda.v5.application.persistence.PagedQuery$ResultSet: + annotations: [] + type: public static interface + extends: [] + interface: true + methods: + getResults: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + hasNext: + annotations: [] + default: false + type: public abstract + returnType: boolean + next: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.List +net.corda.v5.application.persistence.ParameterizedQuery: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.persistence.PagedQuery + interface: true + methods: + execute: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.PagedQuery$ResultSet + setLimit: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.ParameterizedQuery + params: + limit: + annotation: [] + type: int + setOffset: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.ParameterizedQuery + params: + offset: + annotation: [] + type: int + setParameter: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.ParameterizedQuery + params: + name: + annotation: + - NotNull + type: String + value: + annotation: + - NotNull + type: Object + setParameters: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.ParameterizedQuery + params: + parameters: + annotation: + - NotNull + type: "java.util.Map" +net.corda.v5.application.persistence.PersistenceService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + find: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + entityClass: + annotation: + - NotNull + type: Class + primaryKeys: + annotation: + - NotNull + type: java.util.List + findAll: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.PagedQuery + params: + entityClass: + annotation: + - NotNull + type: Class + merge: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + entities: + annotation: + - NotNull + type: java.util.List + persist: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + entities: + annotation: + - NotNull + type: java.util.List + query: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.ParameterizedQuery + params: + queryName: + annotation: + - NotNull + type: String + entityClass: + annotation: + - NotNull + type: Class + remove: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + entities: + annotation: + - NotNull + type: java.util.List +net.corda.v5.application.serialization.SerializationService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + deserialize: + annotations: + - NotNull + default: false + type: public abstract + returnType: T + params: + bytes: + annotation: + - NotNull + type: "byte[]" + clazz: + annotation: + - NotNull + type: Class + serialize: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.serialization.SerializedBytes + params: + obj: + annotation: + - NotNull + type: T +net.corda.v5.application.uniqueness.model.UniquenessCheckError: + annotations: [] + type: public interface + extends: [] + interface: true + methods: {} +net.corda.v5.application.uniqueness.model.UniquenessCheckErrorInputStateConflict: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.uniqueness.model.UniquenessCheckError + interface: true + methods: + getConflictingStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List +net.corda.v5.application.uniqueness.model.UniquenessCheckErrorInputStateUnknown: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.uniqueness.model.UniquenessCheckError + interface: true + methods: + getUnknownStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List +net.corda.v5.application.uniqueness.model.UniquenessCheckErrorMalformedRequest: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.uniqueness.model.UniquenessCheckError + interface: true + methods: + getErrorText: + annotations: + - NotNull + default: false + type: public abstract + returnType: String +net.corda.v5.application.uniqueness.model.UniquenessCheckErrorReferenceStateConflict: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.uniqueness.model.UniquenessCheckError + interface: true + methods: + getConflictingStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List +net.corda.v5.application.uniqueness.model.UniquenessCheckErrorReferenceStateUnknown: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.uniqueness.model.UniquenessCheckError + interface: true + methods: + getUnknownStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List +net.corda.v5.application.uniqueness.model.UniquenessCheckErrorTimeWindowOutOfBounds: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.uniqueness.model.UniquenessCheckError + interface: true + methods: + getEvaluationTimestamp: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.time.Instant + getTimeWindowLowerBound: + annotations: + - Nullable + default: false + type: public abstract + returnType: java.time.Instant + getTimeWindowUpperBound: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.time.Instant +net.corda.v5.application.uniqueness.model.UniquenessCheckErrorUnhandledException: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.uniqueness.model.UniquenessCheckError + interface: true + methods: + getUnhandledExceptionMessage: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getUnhandledExceptionType: + annotations: + - NotNull + default: false + type: public abstract + returnType: String +net.corda.v5.application.uniqueness.model.UniquenessCheckResult: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + getResultTimestamp: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.time.Instant +net.corda.v5.application.uniqueness.model.UniquenessCheckResultFailure: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.uniqueness.model.UniquenessCheckResult + interface: true + methods: + getError: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.uniqueness.model.UniquenessCheckError + getResultTimestamp: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.time.Instant +net.corda.v5.application.uniqueness.model.UniquenessCheckResultSuccess: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.uniqueness.model.UniquenessCheckResult + interface: true + methods: + getResultTimestamp: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.time.Instant +net.corda.v5.application.uniqueness.model.UniquenessCheckStateDetails: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: + getConsumingTxId: + annotations: + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + getStateRef: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.uniqueness.model.UniquenessCheckStateRef +net.corda.v5.application.uniqueness.model.UniquenessCheckStateRef: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: + getStateIndex: + annotations: [] + default: false + type: public abstract + returnType: int + getTxHash: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash \ No newline at end of file diff --git a/base/build.gradle b/base/build.gradle index 247376625d..69b7096ac2 100644 --- a/base/build.gradle +++ b/base/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda Base' diff --git a/base/scans/corda-base-5.1.0.yaml b/base/scans/corda-base-5.1.0.yaml new file mode 100644 index 0000000000..970e4011ca --- /dev/null +++ b/base/scans/corda-base-5.1.0.yaml @@ -0,0 +1,773 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.base.annotations.ConstructorForDeserialization: + annotations: [] + type: public @interface + interface: false + methods: {} +net.corda.v5.base.annotations.CordaSerializable: + annotations: [] + type: public @interface + interface: false + methods: {} +net.corda.v5.base.annotations.DeprecatedConstructorForDeserialization: + annotations: [] + type: public @interface + interface: false + methods: + version: + annotations: [] + default: false + type: public abstract + returnType: int +net.corda.v5.base.annotations.DoNotImplement: + annotations: [] + type: public @interface + interface: false + methods: {} +net.corda.v5.base.annotations.Suspendable: + annotations: [] + type: public @interface + interface: false + methods: {} +net.corda.v5.base.annotations.VisibleForTesting: + annotations: [] + type: public @interface + interface: false + methods: {} +net.corda.v5.base.exceptions.CordaRuntimeException: + annotations: + - CordaSerializable + type: public class + extends: java.lang.RuntimeException + implements: + - net.corda.v5.base.exceptions.CordaThrowable + interface: false + methods: + addSuppressed: + annotations: [] + default: false + type: public + returnType: void + params: + suppressed: + annotation: + - NotNull + type: "Throwable[]" + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + obj: + annotation: + - Nullable + type: Object + getCause: + annotations: + - Nullable + default: false + type: public + returnType: Throwable + getMessage: + annotations: + - Nullable + default: false + type: public + returnType: String + getOriginalExceptionClassName: + annotations: + - Nullable + default: false + type: public + returnType: String + getOriginalMessage: + annotations: + - Nullable + default: false + type: public + returnType: String + hashCode: + annotations: [] + default: false + type: public + returnType: int + setCause: + annotations: [] + default: false + type: public + returnType: void + params: + cause: + annotation: + - Nullable + type: Throwable + setMessage: + annotations: [] + default: false + type: public + returnType: void + params: + message: + annotation: + - Nullable + type: String + setOriginalExceptionClassName: + annotations: [] + default: false + type: public + returnType: void + params: + originalExceptionClassName: + annotation: + - Nullable + type: String +net.corda.v5.base.exceptions.CordaThrowable: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: + addSuppressed: + annotations: [] + default: false + type: public abstract + returnType: void + params: + suppressed: + annotation: + - NotNull + type: "Throwable[]" + getOriginalExceptionClassName: + annotations: + - Nullable + default: false + type: public abstract + returnType: String + getOriginalMessage: + annotations: + - Nullable + default: false + type: public abstract + returnType: String + setCause: + annotations: [] + default: false + type: public abstract + returnType: void + params: + cause: + annotation: + - Nullable + type: Throwable + setMessage: + annotations: [] + default: false + type: public abstract + returnType: void + params: + message: + annotation: + - Nullable + type: String + setOriginalExceptionClassName: + annotations: [] + default: false + type: public abstract + returnType: void + params: + originalExceptionClassName: + annotation: + - Nullable + type: String +net.corda.v5.base.exceptions.ValueNotFoundException: + annotations: + - CordaSerializable + type: public final class + extends: net.corda.v5.base.exceptions.CordaThrowable + implements: [] + interface: false + methods: + addSuppressed: + annotations: [] + default: false + type: public + returnType: void + params: + suppressed: + annotation: + - NotNull + type: "Throwable[]" + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + obj: + annotation: + - Nullable + type: Object + getCause: + annotations: + - Nullable + default: false + type: public + returnType: Throwable + getMessage: + annotations: + - Nullable + default: false + type: public + returnType: String + getOriginalExceptionClassName: + annotations: + - Nullable + default: false + type: public + returnType: String + getOriginalMessage: + annotations: + - Nullable + default: false + type: public + returnType: String + hashCode: + annotations: [] + default: false + type: public + returnType: int + setCause: + annotations: [] + default: false + type: public + returnType: void + params: + cause: + annotation: + - Nullable + type: Throwable + setMessage: + annotations: [] + default: false + type: public + returnType: void + params: + message: + annotation: + - Nullable + type: String + setOriginalExceptionClassName: + annotations: [] + default: false + type: public + returnType: void + params: + originalExceptionClassName: + annotation: + - Nullable + type: String +net.corda.v5.base.types.LayeredPropertyMap: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + get: + annotations: + - Nullable + default: false + type: public abstract + returnType: String + params: + key: + annotation: + - NotNull + type: String + getEntries: + annotations: + - NotNull + default: false + type: public abstract + returnType: "java.util.Set>" + parse: + annotations: + - NotNull + default: false + type: public abstract + returnType: T + params: + key: + annotation: + - NotNull + type: String + clazz: + annotation: + - NotNull + type: Class + parseList: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + itemKeyPrefix: + annotation: + - NotNull + type: String + clazz: + annotation: + - NotNull + type: Class + parseOrNull: + annotations: + - Nullable + default: false + type: public abstract + returnType: T + params: + key: + annotation: + - NotNull + type: String + clazz: + annotation: + - NotNull + type: Class + parseSet: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.Set + params: + itemKeyPrefix: + annotation: + - NotNull + type: String + clazz: + annotation: + - NotNull + type: Class +net.corda.v5.base.types.MemberX500Name: + annotations: + - CordaSerializable + type: public final class + extends: null + implements: + - java.lang.Comparable + interface: false + methods: + build: + annotations: + - NotNull + default: false + type: public static + returnType: net.corda.v5.base.types.MemberX500Name + params: + principal: + annotation: + - NotNull + type: javax.security.auth.x500.X500Principal + compareTo: + annotations: [] + default: false + type: public + returnType: int + params: + other: + annotation: + - NotNull + type: net.corda.v5.base.types.MemberX500Name + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + obj: + annotation: + - Nullable + type: Object + getCommonName: + annotations: + - Nullable + default: false + type: public + returnType: String + getCountry: + annotations: + - NotNull + default: false + type: public + returnType: String + getLocality: + annotations: + - NotNull + default: false + type: public + returnType: String + getOrganization: + annotations: + - NotNull + default: false + type: public + returnType: String + getOrganizationUnit: + annotations: + - Nullable + default: false + type: public + returnType: String + getState: + annotations: + - Nullable + default: false + type: public + returnType: String + getX500Principal: + annotations: + - NotNull + default: false + type: public synchronized + returnType: javax.security.auth.x500.X500Principal + hashCode: + annotations: [] + default: false + type: public + returnType: int + parse: + annotations: + - NotNull + default: false + type: public static + returnType: net.corda.v5.base.types.MemberX500Name + params: + name: + annotation: + - NotNull + type: String + toAttributesMap: + annotations: + - NotNull + default: false + type: public static + returnType: "java.util.Map" + params: + name: + annotation: + - NotNull + type: String + toString: + annotations: + - NotNull + default: false + type: public + returnType: String + fields: + MAX_LENGTH_ORGANIZATION: + annotation: [] + type: public static final int + initialised value: 128 + MAX_LENGTH_LOCALITY: + annotation: [] + type: public static final int + initialised value: 64 + MAX_LENGTH_STATE: + annotation: [] + type: public static final int + initialised value: 64 + MAX_LENGTH_ORGANIZATION_UNIT: + annotation: [] + type: public static final int + initialised value: 64 + MAX_LENGTH_COMMON_NAME: + annotation: [] + type: public static final int + initialised value: 64 +net.corda.v5.base.util.Base58: + annotations: [] + type: public class + extends: null + implements: [] + interface: false + methods: + decode: + annotations: [] + default: false + type: public static + returnType: "byte[]" + params: + input: + annotation: [] + type: String + decodeToBigInteger: + annotations: [] + default: false + type: public static + returnType: java.math.BigInteger + params: + input: + annotation: [] + type: String + encode: + annotations: [] + default: false + type: public static + returnType: String + params: + input: + annotation: [] + type: "byte[]" +net.corda.v5.base.util.ByteArrays: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + parseAsHex: + annotations: + - NotNull + default: false + type: public static + returnType: "byte[]" + params: + str: + annotation: + - NotNull + type: String + toHexString: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + bytes: + annotation: + - NotNull + type: "byte[]" +net.corda.v5.base.util.EncodingUtils: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + base58ToByteArray: + annotations: + - NotNull + default: false + type: public static + returnType: "byte[]" + params: + encoded: + annotation: + - NotNull + type: String + base58ToRealString: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + encoded: + annotation: + - NotNull + type: String + base58toBase64: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + input: + annotation: + - NotNull + type: String + base58toHex: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + input: + annotation: + - NotNull + type: String + base64ToByteArray: + annotations: + - NotNull + default: false + type: public static + returnType: "byte[]" + params: + encoded: + annotation: + - NotNull + type: String + base64ToRealString: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + encoded: + annotation: + - NotNull + type: String + base64toBase58: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + input: + annotation: + - NotNull + type: String + base64toHex: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + input: + annotation: + - NotNull + type: String + hexToBase58: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + input: + annotation: + - NotNull + type: String + hexToBase64: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + input: + annotation: + - NotNull + type: String + hexToByteArray: + annotations: + - NotNull + default: false + type: public static + returnType: "byte[]" + params: + encoded: + annotation: + - NotNull + type: String + hexToRealString: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + encoded: + annotation: + - NotNull + type: String + toBase58: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + bytes: + annotation: + - NotNull + type: "byte[]" + toBase64: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + bytes: + annotation: + - NotNull + type: "byte[]" + toHex: + annotations: + - NotNull + default: false + type: public static + returnType: String + params: + bytes: + annotation: + - NotNull + type: "byte[]" +net.corda.v5.base.versioning.Version: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + obj: + annotation: + - Nullable + type: Object + fromString: + annotations: [] + default: false + type: public static + returnType: net.corda.v5.base.versioning.Version + params: + versionString: + annotation: + - NotNull + type: String + getMajor: + annotations: [] + default: false + type: public + returnType: int + getMinor: + annotations: [] + default: false + type: public + returnType: int + hashCode: + annotations: [] + default: false + type: public + returnType: int + toString: + annotations: + - NotNull + default: false + type: public + returnType: String \ No newline at end of file diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index f02fe0bed3..422eda9adf 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -12,7 +12,7 @@ def constants = new Properties() file("$rootDir/../gradle.properties").withInputStream { InputStream input -> constants.load(input) } def bndVersion = constants.getProperty('bndVersion') def bndlibVersion = constants.getProperty('bndlibVersion') -def internalPublishVersion = constants.getProperty('internalPublishVersion') +def internalPluginVersion = constants.getProperty('internalPluginVersion') def artifactoryContextUrl = constants.getProperty('artifactoryContextUrl') repositories { @@ -70,7 +70,8 @@ dependencies { implementation "biz.aQute.bnd:biz.aQute.bnd.gradle:$bndVersion" if (System.getenv('CORDA_ARTIFACTORY_USERNAME') != null || project.hasProperty('cordaArtifactoryUsername')) { - implementation "com.r3.internal.gradle.plugins:publish:$internalPublishVersion" + implementation "com.r3.internal.gradle.plugins:publish:$internalPluginVersion" + implementation "com.r3.internal.gradle.plugins:api-scanner:$internalPluginVersion" } } diff --git a/buildSrc/src/main/groovy/corda.api-scanner.gradle b/buildSrc/src/main/groovy/corda.api-scanner.gradle new file mode 100644 index 0000000000..e2966efd4f --- /dev/null +++ b/buildSrc/src/main/groovy/corda.api-scanner.gradle @@ -0,0 +1,4 @@ +// Apply api-scanner +if (System.getenv('CORDA_ARTIFACTORY_USERNAME') != null || project.hasProperty('cordaArtifactoryUsername')) { + project.pluginManager.apply('net.corda.internal.gradle.plugins.api-scanner') +} \ No newline at end of file diff --git a/crypto-extensions/build.gradle b/crypto-extensions/build.gradle index c967245895..41587cd7e6 100644 --- a/crypto-extensions/build.gradle +++ b/crypto-extensions/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda Crypto Extensions API' diff --git a/crypto-extensions/scans/corda-crypto-extensions-5.1.0.yaml b/crypto-extensions/scans/corda-crypto-extensions-5.1.0.yaml new file mode 100644 index 0000000000..ed08a13329 --- /dev/null +++ b/crypto-extensions/scans/corda-crypto-extensions-5.1.0.yaml @@ -0,0 +1,165 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.crypto.extensions.DigestAlgorithm: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + digest: + annotations: + - NotNull + default: false + type: public abstract + returnType: "byte[]" + params: + inputStream: + annotation: + - NotNull + type: java.io.InputStream + getAlgorithm: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getDigestLength: + annotations: [] + default: false + type: public abstract + returnType: int +net.corda.v5.crypto.extensions.DigestAlgorithmFactory: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + getAlgorithm: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getInstance: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.extensions.DigestAlgorithm +net.corda.v5.crypto.extensions.merkle.MerkleTreeHashDigestProvider: + annotations: [] + type: public interface + extends: + - net.corda.v5.crypto.merkle.MerkleTreeHashDigest + interface: true + methods: + leafHash: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + params: + index: + annotation: [] + type: int + nonce: + annotation: + - Nullable + type: "byte[]" + bytes: + annotation: + - NotNull + type: "byte[]" + leafNonce: + annotations: + - Nullable + default: false + type: public abstract + returnType: "byte[]" + params: + index: + annotation: [] + type: int + nodeHash: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + params: + depth: + annotation: [] + type: int + left: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash + right: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash +net.corda.v5.crypto.extensions.merkle.MerkleTreeHashDigestProviderWithSizeProofSupport: + annotations: [] + type: public interface + extends: + - net.corda.v5.crypto.extensions.merkle.MerkleTreeHashDigestProvider + interface: true + methods: + getSizeProof: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.merkle.MerkleProof + params: + leaves: + annotation: + - NotNull + type: "java.util.List" + leafHash: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + params: + index: + annotation: [] + type: int + nonce: + annotation: + - Nullable + type: "byte[]" + bytes: + annotation: + - NotNull + type: "byte[]" + leafNonce: + annotations: + - Nullable + default: false + type: public abstract + returnType: "byte[]" + params: + index: + annotation: [] + type: int + nodeHash: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + params: + depth: + annotation: [] + type: int + left: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash + right: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash \ No newline at end of file diff --git a/crypto/build.gradle b/crypto/build.gradle index 7063d8c3d8..ec911decc4 100644 --- a/crypto/build.gradle +++ b/crypto/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda Crypto' diff --git a/crypto/scans/corda-crypto-5.1.0.yaml b/crypto/scans/corda-crypto-5.1.0.yaml new file mode 100644 index 0000000000..f92999023d --- /dev/null +++ b/crypto/scans/corda-crypto-5.1.0.yaml @@ -0,0 +1,565 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.crypto.CompositeKey: + annotations: [] + type: public interface + extends: + - java.security.PublicKey + interface: true + methods: + checkValidity: + annotations: [] + default: false + type: public abstract + returnType: void + getLeafKeys: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.Set + isFulfilledBy: + annotations: [] + default: false + type: public abstract + returnType: boolean + params: + keysToCheck: + annotation: + - NotNull + type: java.util.Set +net.corda.v5.crypto.CompositeKeyNodeAndWeight: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + other: + annotation: [] + type: Object + getNode: + annotations: + - NotNull + default: false + type: public + returnType: java.security.PublicKey + getWeight: + annotations: [] + default: false + type: public + returnType: int + hashCode: + annotations: [] + default: false + type: public + returnType: int + toString: + annotations: + - NotNull + default: false + type: public + returnType: String +net.corda.v5.crypto.CordaOID: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: {} + fields: + OID_R3_ROOT: + annotation: + - NotNull + type: public static final String + initialised value: 1.3.6.1.4.1.50530 + OID_CORDA_PLATFORM: + annotation: + - NotNull + type: public static final String + initialised value: 1.3.6.1.4.1.50530.1 + OID_X509_EXTENSION_CORDA_ROLE: + annotation: + - NotNull + type: public static final String + initialised value: 1.3.6.1.4.1.50530.1.1 + OID_ALIAS_PRIVATE_KEY: + annotation: + - NotNull + type: public static final String + initialised value: 1.3.6.1.4.1.50530.1.2 + OID_COMPOSITE_KEY: + annotation: + - NotNull + type: public static final String + initialised value: 1.3.6.1.4.1.50530.1.3 + OID_COMPOSITE_SIGNATURE: + annotation: + - NotNull + type: public static final String + initialised value: 1.3.6.1.4.1.50530.1.4 +net.corda.v5.crypto.DigestAlgorithmName: + annotations: + - CordaSerializable + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + other: + annotation: + - Nullable + type: Object + getName: + annotations: + - NotNull + default: false + type: public + returnType: String + hashCode: + annotations: [] + default: false + type: public + returnType: int + toString: + annotations: + - NotNull + default: false + type: public + returnType: String + fields: + SHA2_256: + annotation: + - NotNull + type: public static final net.corda.v5.crypto.DigestAlgorithmName + SHA2_256D: + annotation: + - NotNull + type: public static final net.corda.v5.crypto.DigestAlgorithmName + SHA2_384: + annotation: + - NotNull + type: public static final net.corda.v5.crypto.DigestAlgorithmName + SHA2_512: + annotation: + - NotNull + type: public static final net.corda.v5.crypto.DigestAlgorithmName +net.corda.v5.crypto.DigitalSignature: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getBytes: + annotations: + - NotNull + default: false + type: public abstract + returnType: "byte[]" +net.corda.v5.crypto.DigitalSignature$WithKeyId: + annotations: + - CordaSerializable + - DoNotImplement + type: public static interface + extends: + - net.corda.v5.crypto.DigitalSignature + interface: true + methods: + getBy: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + getBytes: + annotations: + - NotNull + default: false + type: public abstract + returnType: "byte[]" +net.corda.v5.crypto.KeySchemeCodes: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: {} + fields: + RSA_CODE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: CORDA.RSA + ECDSA_SECP256K1_CODE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: CORDA.ECDSA.SECP256K1 + ECDSA_SECP256R1_CODE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: CORDA.ECDSA.SECP256R1 + EDDSA_ED25519_CODE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: CORDA.EDDSA.ED25519 + X25519_CODE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: CORDA.X25519 + SM2_CODE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: CORDA.SM2 + GOST3410_GOST3411_CODE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: CORDA.GOST3410.GOST3411 + SPHINCS256_CODE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: CORDA.SPHINCS-256 + COMPOSITE_KEY_CODE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: COMPOSITE +net.corda.v5.crypto.KeyUtils: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + isKeyFulfilledBy: + annotations: [] + default: false + type: public static + returnType: boolean + params: + key: + annotation: + - NotNull + type: java.security.PublicKey + otherKey: + annotation: + - NotNull + type: java.security.PublicKey + isKeyInSet: + annotations: [] + default: false + type: public static + returnType: boolean + params: + key: + annotation: + - NotNull + type: java.security.PublicKey + otherKeys: + annotation: + - NotNull + type: java.util.Set +net.corda.v5.crypto.MessageAuthenticationCode: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: {} + fields: + HMAC_SHA256_ALGORITHM: + annotation: + - NotNull + type: public static final String + initialised value: HmacSHA256 + HMAC_SHA512_ALGORITHM: + annotation: + - NotNull + type: public static final String + initialised value: HmacSHA512 +net.corda.v5.crypto.SecureHash: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getAlgorithm: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + toHexString: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + toString: + annotations: + - NotNull + default: false + type: public abstract + returnType: String +net.corda.v5.crypto.SignatureSpec: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getSignatureName: + annotations: + - NotNull + default: false + type: public abstract + returnType: String +net.corda.v5.crypto.exceptions.CryptoException: + annotations: + - CordaSerializable + type: public class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: + isRecoverable: + annotations: [] + default: false + type: public final + returnType: boolean +net.corda.v5.crypto.exceptions.CryptoSignatureException: + annotations: + - CordaSerializable + type: public final class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: + isRecoverable: + annotations: [] + default: false + type: public final + returnType: boolean +net.corda.v5.crypto.merkle.HashDigestConstants: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: {} + fields: + HASH_DIGEST_PROVIDER_DEFAULT_NAME: + annotation: + - NotNull + type: public static final String + initialised value: DefaultHashDigestProvider + HASH_DIGEST_PROVIDER_NONCE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: NonceHashDigestProvider + HASH_DIGEST_PROVIDER_NONCE_VERIFY_NAME: + annotation: + - NotNull + type: public static final String + initialised value: NonceHashDigestProviderVerify + HASH_DIGEST_PROVIDER_NONCE_SIZE_ONLY_VERIFY_NAME: + annotation: + - NotNull + type: public static final String + initialised value: NonceHashDigestProviderSizeOnlyVerify + HASH_DIGEST_PROVIDER_TWEAKABLE_NAME: + annotation: + - NotNull + type: public static final String + initialised value: TweakableHashDigestProvider + HASH_DIGEST_PROVIDER_LEAF_PREFIX_OPTION: + annotation: + - NotNull + type: public static final String + initialised value: leafPrefix + HASH_DIGEST_PROVIDER_NODE_PREFIX_OPTION: + annotation: + - NotNull + type: public static final String + initialised value: nodePrefix + HASH_DIGEST_PROVIDER_ENTROPY_OPTION: + annotation: + - NotNull + type: public static final String + initialised value: entropy +net.corda.v5.crypto.merkle.IndexedMerkleLeaf: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getIndex: + annotations: [] + default: false + type: public abstract + returnType: int + getLeafData: + annotations: + - NotNull + default: false + type: public abstract + returnType: "byte[]" + getNonce: + annotations: + - Nullable + default: false + type: public abstract + returnType: "byte[]" +net.corda.v5.crypto.merkle.MerkleProof: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + calculateRoot: + annotations: [] + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + params: + digest: + annotation: + - NotNull + type: net.corda.v5.crypto.merkle.MerkleTreeHashDigest + getHashes: + annotations: [] + default: false + type: public abstract + returnType: java.util.List + getLeaves: + annotations: [] + default: false + type: public abstract + returnType: java.util.List + getProofType: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.merkle.MerkleProofType + getTreeSize: + annotations: [] + default: false + type: public abstract + returnType: int + verify: + annotations: [] + default: false + type: public abstract + returnType: boolean + params: + root: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash + digest: + annotation: + - NotNull + type: net.corda.v5.crypto.merkle.MerkleTreeHashDigest +net.corda.v5.crypto.merkle.MerkleProofRebuildFailureException: + annotations: [] + type: public final class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: {} +net.corda.v5.crypto.merkle.MerkleProofType: + annotations: + - CordaSerializable + type: public final class + extends: java.lang.Enum + implements: [] + interface: false + methods: + valueOf: + annotations: [] + default: false + type: public static + returnType: net.corda.v5.crypto.merkle.MerkleProofType + params: {} + values: + annotations: [] + default: false + type: public static + returnType: "net.corda.v5.crypto.merkle.MerkleProofType[]" +net.corda.v5.crypto.merkle.MerkleTree: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + createAuditProof: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.merkle.MerkleProof + params: + leafIndices: + annotation: + - NotNull + type: java.util.List + getDigest: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.merkle.MerkleTreeHashDigest + getLeaves: + annotations: + - NotNull + default: false + type: public abstract + returnType: "java.util.List" + getRoot: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash +net.corda.v5.crypto.merkle.MerkleTreeHashDigest: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + getDigestAlgorithmName: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.DigestAlgorithmName \ No newline at end of file diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/interop/InteropProcessorEvent.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/interop/InteropProcessorEvent.avsc new file mode 100644 index 0000000000..6021916fde --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/interop/InteropProcessorEvent.avsc @@ -0,0 +1,13 @@ +{ + "type": "record", + "name": "InteropProcessorEvent", + "namespace": "net.corda.data.interop", + "fields": [ + { + "name": "payload", + "type": [ + "net.corda.data.flow.event.SessionEvent" + ] + } + ] +} diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/FindUnconsumedVisibleExactStates.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/FindUnconsumedVisibleExactStates.avsc deleted file mode 100644 index 1f192264c0..0000000000 --- a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/FindUnconsumedVisibleExactStates.avsc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "type": "record", - "name": "FindUnconsumedStatesByExactType", - "doc": "Retrieve the unconsumed visible states of specific type. This only retrieves exact type excluding its states of subclass unlike {@link FindUnconsumedStatesByType}. One of several types of ledger persistence request {@link LedgerPersistenceRequest}", - "namespace": "net.corda.data.ledger.persistence", - "fields": [ - { - "name": "stateClassName", - "type": "string", - "doc": "The fully qualified state class name" - } - ] -} diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/LedgerPersistenceRequest.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/LedgerPersistenceRequest.avsc index cddfd596f0..d2a1676686 100644 --- a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/LedgerPersistenceRequest.avsc +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/LedgerPersistenceRequest.avsc @@ -34,7 +34,6 @@ "net.corda.data.ledger.persistence.PersistTransactionIfDoesNotExist", "net.corda.data.ledger.persistence.FindTransaction", "net.corda.data.ledger.persistence.FindUnconsumedStatesByType", - "net.corda.data.ledger.persistence.FindUnconsumedStatesByExactType", "net.corda.data.ledger.persistence.ResolveStateRefs", "net.corda.data.ledger.persistence.UpdateTransactionStatus", "net.corda.data.persistence.FindWithNamedQuery", diff --git a/data/config-schema/src/main/java/net/corda/schema/configuration/BootConfig.java b/data/config-schema/src/main/java/net/corda/schema/configuration/BootConfig.java index de0f1452b0..219239b23d 100644 --- a/data/config-schema/src/main/java/net/corda/schema/configuration/BootConfig.java +++ b/data/config-schema/src/main/java/net/corda/schema/configuration/BootConfig.java @@ -47,4 +47,5 @@ private BootConfig() { public static final String VERIFICATION_WORKER_REST_ENDPOINT = BOOT_WORKER_SERVICE + ".endpoints.verification"; public static final String UNIQUENESS_WORKER_REST_ENDPOINT = BOOT_WORKER_SERVICE + ".endpoints.uniqueness"; public static final String PERSISTENCE_WORKER_REST_ENDPOINT = BOOT_WORKER_SERVICE + ".endpoints.persistence"; + public static final String TOKEN_SELECTION_WORKER_REST_ENDPOINT = BOOT_WORKER_SERVICE + ".endpoints.tokenSelection"; } diff --git a/data/config-schema/src/main/java/net/corda/schema/configuration/FlowConfig.java b/data/config-schema/src/main/java/net/corda/schema/configuration/FlowConfig.java index 67e75825d6..8a68a0fc4a 100644 --- a/data/config-schema/src/main/java/net/corda/schema/configuration/FlowConfig.java +++ b/data/config-schema/src/main/java/net/corda/schema/configuration/FlowConfig.java @@ -14,4 +14,5 @@ private FlowConfig() { public static final String PROCESSING_MAX_RETRY_DELAY = "processing.maxRetryDelay"; public static final String PROCESSING_MAX_FLOW_SLEEP_DURATION = "processing.maxFlowSleepDuration"; public static final String PROCESSING_FLOW_CLEANUP_TIME = "processing.cleanupTime"; + public static final String PROCESSING_THREAD_POOL_SIZE = "processing.poolSize"; } diff --git a/data/config-schema/src/main/resources/net/corda/schema/configuration/flow/1.0/corda.flow.json b/data/config-schema/src/main/resources/net/corda/schema/configuration/flow/1.0/corda.flow.json index 3e5331403d..baa488793f 100644 --- a/data/config-schema/src/main/resources/net/corda/schema/configuration/flow/1.0/corda.flow.json +++ b/data/config-schema/src/main/resources/net/corda/schema/configuration/flow/1.0/corda.flow.json @@ -45,6 +45,13 @@ "minimum": 1000, "maximum": 2147483647, "default": 600000 + }, + "poolSize": { + "description": "The size of the flow event processing pool size.", + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "default": 8 } }, "additionalProperties": false @@ -82,7 +89,7 @@ "maximum": 2147483647, "default": 1800000 }, - "p2pTTL": { + "p2pTTL": { "description": "The TTL set in milliseconds. This is added to the current time and set on messages passed to the P2P layer to send to a counterparty. Messages received with a TTL timestamp set in the past will be discarded.", "type": "integer", "minimum": 10000, diff --git a/data/db-schema/src/main/resources/net/corda/db/schema/statemanager/migration/state-manager-migration-v5.1.xml b/data/db-schema/src/main/resources/net/corda/db/schema/statemanager/migration/state-manager-migration-v5.1.xml index 77380c0cff..20084adc1c 100644 --- a/data/db-schema/src/main/resources/net/corda/db/schema/statemanager/migration/state-manager-migration-v5.1.xml +++ b/data/db-schema/src/main/resources/net/corda/db/schema/statemanager/migration/state-manager-migration-v5.1.xml @@ -30,6 +30,10 @@ + + + + diff --git a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml index b958807b00..912a6c9e79 100644 --- a/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml +++ b/data/db-schema/src/main/resources/net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v5.1.xml @@ -113,14 +113,80 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO utxo_transaction_metadata + SELECT DISTINCT + hash, + data as canonical_data, + convert_from(data, 'UTF-8')::jsonb->'membershipGroupParametersHash' AS group_parameters_hash, + convert_from(data, 'UTF-8')::jsonb->'cpiMetadata'->'fileChecksum' AS cpi_file_checksum + FROM + utxo_transaction_component + WHERE + group_idx=0 AND + leaf_idx=0; + + + + + + + + + + + + + group_idx=0 AND leaf_idx=0 + + \ No newline at end of file diff --git a/data/topic-schema/src/main/resources/net/corda/schema/AvroSchema.yaml b/data/topic-schema/src/main/resources/net/corda/schema/AvroSchema.yaml index 94a2cba559..f0be2203ef 100644 --- a/data/topic-schema/src/main/resources/net/corda/schema/AvroSchema.yaml +++ b/data/topic-schema/src/main/resources/net/corda/schema/AvroSchema.yaml @@ -13,6 +13,7 @@ topics: - persistence - rest - uniqueness + - tokenSelection producers: - crypto - db @@ -25,6 +26,7 @@ topics: - persistence - rest - uniqueness + - tokenSelection config: cleanup.policy: compact segment.ms: 600000 diff --git a/data/topic-schema/src/main/resources/net/corda/schema/Config.yaml b/data/topic-schema/src/main/resources/net/corda/schema/Config.yaml index 8be7ce7891..7913ccbc5b 100644 --- a/data/topic-schema/src/main/resources/net/corda/schema/Config.yaml +++ b/data/topic-schema/src/main/resources/net/corda/schema/Config.yaml @@ -27,6 +27,7 @@ topics: - rest - persistence - uniqueness + - tokenSelection producers: - db config: diff --git a/data/topic-schema/src/main/resources/net/corda/schema/Flow.yaml b/data/topic-schema/src/main/resources/net/corda/schema/Flow.yaml index 345074d8da..a4e2a248d0 100644 --- a/data/topic-schema/src/main/resources/net/corda/schema/Flow.yaml +++ b/data/topic-schema/src/main/resources/net/corda/schema/Flow.yaml @@ -11,6 +11,7 @@ topics: - verification - persistence - uniqueness + - tokenSelection config: FlowEventStateTopic: name: flow.event.state @@ -169,6 +170,7 @@ topics: consumers: - flowMapper producers: + - flowMapper - link-manager config: FlowStart: @@ -184,5 +186,6 @@ topics: - flow producers: - flowMapper + - tokenSelection config: diff --git a/data/topic-schema/src/main/resources/net/corda/schema/Services.yaml b/data/topic-schema/src/main/resources/net/corda/schema/Services.yaml index 268165d626..22d543762c 100644 --- a/data/topic-schema/src/main/resources/net/corda/schema/Services.yaml +++ b/data/topic-schema/src/main/resources/net/corda/schema/Services.yaml @@ -1,19 +1,24 @@ +# TODO: remove db access once the tokenSelection worker has been integrated. topics: ServicesTokenEventTopic: name: services.token.event consumers: - db + - tokenSelection producers: - flow - db - persistence + - tokenSelection config: ServicesTokenEventStateTopic: name: services.token.event.state consumers: - db + - tokenSelection producers: - db + - tokenSelection config: cleanup.policy: compact segment.ms: 600000 @@ -25,22 +30,28 @@ topics: name: services.token.event.dlq consumers: - db + - tokenSelection producers: - db + - tokenSelection config: ServicesTokenSyncEventTopic: name: services.token.sync.event consumers: - db + - tokenSelection producers: - db + - tokenSelection config: ServicesTokenSyncEventStateTopic: name: services.token.sync.event.state consumers: - db + - tokenSelection producers: - db + - tokenSelection config: cleanup.policy: compact segment.ms: 600000 @@ -52,6 +63,8 @@ topics: name: services.token.sync.event.dlq consumers: - db + - tokenSelection producers: - db + - tokenSelection config: diff --git a/data/topic-schema/src/main/resources/net/corda/schema/VirtualNode.yaml b/data/topic-schema/src/main/resources/net/corda/schema/VirtualNode.yaml index 17a067b3e5..b9474d0579 100644 --- a/data/topic-schema/src/main/resources/net/corda/schema/VirtualNode.yaml +++ b/data/topic-schema/src/main/resources/net/corda/schema/VirtualNode.yaml @@ -74,6 +74,7 @@ topics: - link-manager - persistence - rest + - tokenSelection producers: - db config: diff --git a/gradle.properties b/gradle.properties index b9a08da1fd..c8b89c9d91 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,8 +11,8 @@ cordaProductVersion = 5.1.0-INTEROP ## a per module property in which case module versions can change independently. ## IMPORTANT: ## The interop feature branches track api revisions separately to the mainline branch. -## API version of last merge from corda mainline: 32 -cordaApiRevision = 24 +## API version of last merge from corda mainline: 37 +cordaApiRevision = 25 # Main kotlinVersion = 1.8.21 @@ -32,7 +32,7 @@ publicArtifactURL = https://download.corda.net/maven # Gradle # dokka need more metaspace - https://github.com/Kotlin/dokka/issues/1405 org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=2g -internalPublishVersion = 1.+ +internalPluginVersion = 1.+ dokkaVersion = 1.8.+ detektPluginVersion = 1.22.+ dependencyCheckVersion=0.46.+ diff --git a/ledger/ledger-common/build.gradle b/ledger/ledger-common/build.gradle index e662bf6101..96e26c32e0 100644 --- a/ledger/ledger-common/build.gradle +++ b/ledger/ledger-common/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda Ledger Common' diff --git a/ledger/ledger-common/scans/corda-ledger-common-5.1.0.yaml b/ledger/ledger-common/scans/corda-ledger-common-5.1.0.yaml new file mode 100644 index 0000000000..a6ab68fb42 --- /dev/null +++ b/ledger/ledger-common/scans/corda-ledger-common-5.1.0.yaml @@ -0,0 +1,240 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.ledger.common.NotaryLookup: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getNotaryServices: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.Collection + isNotaryVirtualNode: + annotations: + - Suspendable + default: false + type: public abstract + returnType: boolean + params: + virtualNodeName: + annotation: + - NotNull + type: net.corda.v5.base.types.MemberX500Name + lookup: + annotations: + - Suspendable + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.membership.NotaryInfo + params: + notaryServiceName: + annotation: + - NotNull + type: net.corda.v5.base.types.MemberX500Name +net.corda.v5.ledger.common.transaction.CordaPackageSummary: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getFileChecksum: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getName: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getSignerSummaryHash: + annotations: + - Nullable + default: false + type: public abstract + returnType: String + getVersion: + annotations: + - NotNull + default: false + type: public abstract + returnType: String +net.corda.v5.ledger.common.transaction.TransactionMetadata: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getDigestSettings: + annotations: + - NotNull + default: false + type: public abstract + returnType: "java.util.Map" + getLedgerModel: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getLedgerVersion: + annotations: [] + default: false + type: public abstract + returnType: int + getPlatformVersion: + annotations: [] + default: false + type: public abstract + returnType: int + getTransactionSubtype: + annotations: + - Nullable + default: false + type: public abstract + returnType: String +net.corda.v5.ledger.common.transaction.TransactionNoAvailableKeysException: + annotations: [] + type: public final class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: {} +net.corda.v5.ledger.common.transaction.TransactionSignatureException: + annotations: [] + type: public class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: + getTransactionId: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash +net.corda.v5.ledger.common.transaction.TransactionSignatureService: + annotations: + - DoNotImplement + type: public interface + extends: + - net.corda.v5.ledger.common.transaction.TransactionSignatureVerificationService + interface: true + methods: + sign: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + transaction: + annotation: + - NotNull + type: net.corda.v5.ledger.common.transaction.TransactionWithMetadata + publicKeys: + annotation: + - NotNull + type: Iterable + signBatch: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.List> + params: + transactions: + annotation: + - NotNull + type: java.util.List + publicKeys: + annotation: + - NotNull + type: Iterable + verifySignature: + annotations: [] + default: false + type: public abstract + returnType: void + params: + secureHash: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash + signatureWithMetadata: + annotation: + - NotNull + type: net.corda.v5.application.crypto.DigitalSignatureAndMetadata + publicKey: + annotation: + - NotNull + type: java.security.PublicKey +net.corda.v5.ledger.common.transaction.TransactionSignatureVerificationService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + verifySignature: + annotations: [] + default: false + type: public abstract + returnType: void + params: + secureHash: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash + signatureWithMetadata: + annotation: + - NotNull + type: net.corda.v5.application.crypto.DigitalSignatureAndMetadata + publicKey: + annotation: + - NotNull + type: java.security.PublicKey +net.corda.v5.ledger.common.transaction.TransactionVerificationException: + annotations: [] + type: public final class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: + getTransactionId: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash +net.corda.v5.ledger.common.transaction.TransactionWithMetadata: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getId: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + getMetadata: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.common.transaction.TransactionMetadata \ No newline at end of file diff --git a/ledger/ledger-consensual/build.gradle b/ledger/ledger-consensual/build.gradle index f7ce41033b..0517c33436 100644 --- a/ledger/ledger-consensual/build.gradle +++ b/ledger/ledger-consensual/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda Consensual Ledger' diff --git a/ledger/ledger-consensual/scans/corda-ledger-consensual-5.1.0.yaml b/ledger/ledger-consensual/scans/corda-ledger-consensual-5.1.0.yaml new file mode 100644 index 0000000000..014e7e6051 --- /dev/null +++ b/ledger/ledger-consensual/scans/corda-ledger-consensual-5.1.0.yaml @@ -0,0 +1,195 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.ledger.consensual.ConsensualLedgerService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + createTransactionBuilder: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.consensual.transaction.ConsensualTransactionBuilder + finalize: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.consensual.transaction.ConsensualSignedTransaction + params: + transaction: + annotation: + - NotNull + type: net.corda.v5.ledger.consensual.transaction.ConsensualSignedTransaction + sessions: + annotation: + - NotNull + type: java.util.List + findLedgerTransaction: + annotations: + - Suspendable + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.ledger.consensual.transaction.ConsensualLedgerTransaction + params: + id: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash + findSignedTransaction: + annotations: + - Suspendable + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.ledger.consensual.transaction.ConsensualSignedTransaction + params: + id: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash + receiveFinality: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.consensual.transaction.ConsensualSignedTransaction + params: + session: + annotation: + - NotNull + type: net.corda.v5.application.messaging.FlowSession + validator: + annotation: + - NotNull + type: net.corda.v5.ledger.consensual.transaction.ConsensualTransactionValidator +net.corda.v5.ledger.consensual.ConsensualState: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: + getParticipants: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + verify: + annotations: [] + default: false + type: public abstract + returnType: void + params: + transaction: + annotation: + - NotNull + type: net.corda.v5.ledger.consensual.transaction.ConsensualLedgerTransaction +net.corda.v5.ledger.consensual.transaction.ConsensualLedgerTransaction: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getId: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + getRequiredSignatories: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.Set + getStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getTimestamp: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.time.Instant +net.corda.v5.ledger.consensual.transaction.ConsensualSignedTransaction: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: + - net.corda.v5.ledger.common.transaction.TransactionWithMetadata + interface: true + methods: + getSignatures: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + toLedgerTransaction: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.consensual.transaction.ConsensualLedgerTransaction +net.corda.v5.ledger.consensual.transaction.ConsensualTransactionBuilder: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + toSignedTransaction: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.consensual.transaction.ConsensualSignedTransaction + withStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.consensual.transaction.ConsensualTransactionBuilder + params: + states: + annotation: [] + type: "net.corda.v5.ledger.consensual.ConsensualState[]" +net.corda.v5.ledger.consensual.transaction.ConsensualTransactionValidator: + annotations: [] + type: public interface + extends: + - java.io.Serializable + interface: true + methods: + checkTransaction: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + transaction: + annotation: + - NotNull + type: net.corda.v5.ledger.consensual.transaction.ConsensualLedgerTransaction \ No newline at end of file diff --git a/ledger/ledger-utxo/build.gradle b/ledger/ledger-utxo/build.gradle index 0b383a664c..1bb4115d44 100644 --- a/ledger/ledger-utxo/build.gradle +++ b/ledger/ledger-utxo/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda UTXO Ledger' diff --git a/ledger/ledger-utxo/scans/corda-ledger-utxo-5.1.0.yaml b/ledger/ledger-utxo/scans/corda-ledger-utxo-5.1.0.yaml new file mode 100644 index 0000000000..16cdc694aa --- /dev/null +++ b/ledger/ledger-utxo/scans/corda-ledger-utxo-5.1.0.yaml @@ -0,0 +1,2066 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.ledger.utxo.BelongsToContract: + annotations: [] + type: public @interface + interface: false + methods: + value: + annotations: + - NotNull + default: false + type: public abstract + returnType: Class +net.corda.v5.ledger.utxo.Command: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: {} +net.corda.v5.ledger.utxo.Contract: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + isVisible: + annotations: + - Suspendable + default: true + type: public + returnType: boolean + params: + state: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.ContractState + checker: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.VisibilityChecker + verify: + annotations: [] + default: false + type: public abstract + returnType: void + params: + transaction: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.transaction.UtxoLedgerTransaction +net.corda.v5.ledger.utxo.ContractState: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: + getParticipants: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List +net.corda.v5.ledger.utxo.ContractVerificationException: + annotations: [] + type: public final class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: + getFailureReasons: + annotations: + - NotNull + default: false + type: public + returnType: java.util.List + getTransactionId: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash +net.corda.v5.ledger.utxo.ContractVerificationFailure: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getContractClassName: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getContractStateClassNames: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getExceptionClassName: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getExceptionMessage: + annotations: + - NotNull + default: false + type: public abstract + returnType: String +net.corda.v5.ledger.utxo.EncumbranceGroup: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getSize: + annotations: [] + default: false + type: public abstract + returnType: int + getTag: + annotations: + - NotNull + default: false + type: public abstract + returnType: String +net.corda.v5.ledger.utxo.FinalizationResult: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getTransaction: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoSignedTransaction +net.corda.v5.ledger.utxo.StateAndRef: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getRef: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.StateRef + getState: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.TransactionState +net.corda.v5.ledger.utxo.StateRef: + annotations: + - CordaSerializable + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + o: + annotation: + - Nullable + type: Object + getIndex: + annotations: [] + default: false + type: public + returnType: int + getTransactionId: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash + hashCode: + annotations: [] + default: false + type: public + returnType: int + parse: + annotations: [] + default: false + type: public static + returnType: net.corda.v5.ledger.utxo.StateRef + params: + value: + annotation: + - NotNull + type: String + digestService: + annotation: [] + type: net.corda.v5.application.crypto.DigestService + toString: + annotations: [] + default: false + type: public + returnType: String +net.corda.v5.ledger.utxo.TimeWindow: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + contains: + annotations: [] + default: false + type: public abstract + returnType: boolean + params: + instant: + annotation: + - NotNull + type: java.time.Instant + getFrom: + annotations: + - Nullable + default: false + type: public abstract + returnType: java.time.Instant + getUntil: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.time.Instant +net.corda.v5.ledger.utxo.TransactionState: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getContractState: + annotations: + - NotNull + default: false + type: public abstract + returnType: T + getContractStateType: + annotations: + - NotNull + default: false + type: public abstract + returnType: Class + getContractType: + annotations: + - NotNull + default: false + type: public abstract + returnType: Class + getEncumbranceGroup: + annotations: + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.EncumbranceGroup + getNotaryKey: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.security.PublicKey + getNotaryName: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name +net.corda.v5.ledger.utxo.UtxoLedgerService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + createTransactionBuilder: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + filterSignedTransaction: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + params: + transaction: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.transaction.UtxoSignedTransaction + finalize: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.FinalizationResult + params: + transaction: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.transaction.UtxoSignedTransaction + sessions: + annotation: + - NotNull + type: java.util.List + findLedgerTransaction: + annotations: + - Suspendable + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoLedgerTransaction + params: + id: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash + findSignedTransaction: + annotations: + - Suspendable + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoSignedTransaction + params: + id: + annotation: + - NotNull + type: net.corda.v5.crypto.SecureHash + findUnconsumedStatesByExactType: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.PagedQuery$ResultSet> + params: + type: + annotation: + - NotNull + type: Class + limit: + annotation: + - NotNull + type: Integer + createdTimestampLimit: + annotation: + - NotNull + type: java.time.Instant + findUnconsumedStatesByType: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: java.util.List> + params: + type: + annotation: + - NotNull + type: Class + query: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.VaultNamedParameterizedQuery + params: + queryName: + annotation: + - NotNull + type: String + resultClass: + annotation: + - NotNull + type: Class + receiveFinality: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.FinalizationResult + params: + session: + annotation: + - NotNull + type: net.corda.v5.application.messaging.FlowSession + validator: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.transaction.UtxoTransactionValidator + receiveTransactionBuilder: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + session: + annotation: + - NotNull + type: net.corda.v5.application.messaging.FlowSession + resolve: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.StateAndRef + params: + stateRef: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.StateRef + sendAndReceiveTransactionBuilder: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + transactionBuilder: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + session: + annotation: + - NotNull + type: net.corda.v5.application.messaging.FlowSession + sendUpdatedTransactionBuilder: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + transactionBuilder: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + session: + annotation: + - NotNull + type: net.corda.v5.application.messaging.FlowSession +net.corda.v5.ledger.utxo.VisibilityChecker: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + containsMySigningKeys: + annotations: + - Suspendable + default: false + type: public abstract + returnType: boolean + params: + keys: + annotation: + - NotNull + type: Iterable +net.corda.v5.ledger.utxo.observer.TokenStateObserverContext: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + getDigestService: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.crypto.DigestService + getStateAndRef: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.StateAndRef +net.corda.v5.ledger.utxo.observer.UtxoLedgerTokenStateObserver: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + getStateType: + annotations: + - NotNull + default: false + type: public abstract + returnType: Class + onCommit: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.observer.UtxoToken + params: + state: + annotation: + - NotNull + type: T + digestService: + annotation: + - NotNull + type: net.corda.v5.application.crypto.DigestService +net.corda.v5.ledger.utxo.observer.UtxoToken: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + other: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.observer.UtxoToken + getAmount: + annotations: + - NotNull + default: false + type: public + returnType: java.math.BigDecimal + getFilterFields: + annotations: + - Nullable + default: false + type: public + returnType: net.corda.v5.ledger.utxo.observer.UtxoTokenFilterFields + getPoolKey: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.ledger.utxo.observer.UtxoTokenPoolKey + hashCode: + annotations: [] + default: false + type: public + returnType: int + toString: + annotations: [] + default: false + type: public + returnType: String +net.corda.v5.ledger.utxo.observer.UtxoTokenFilterFields: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + other: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.observer.UtxoTokenFilterFields + getOwnerHash: + annotations: + - Nullable + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash + getTag: + annotations: + - Nullable + default: false + type: public + returnType: String + hashCode: + annotations: [] + default: false + type: public + returnType: int + toString: + annotations: [] + default: false + type: public + returnType: String +net.corda.v5.ledger.utxo.observer.UtxoTokenPoolKey: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + other: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.observer.UtxoTokenPoolKey + getIssuerHash: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash + getSymbol: + annotations: + - NotNull + default: false + type: public + returnType: String + getTokenType: + annotations: + - Nullable + default: false + type: public + returnType: String + hashCode: + annotations: [] + default: false + type: public + returnType: int + toString: + annotations: [] + default: false + type: public + returnType: String +net.corda.v5.ledger.utxo.observer.UtxoTokenTransactionStateObserver: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + getStateType: + annotations: + - NotNull + default: false + type: public abstract + returnType: Class + onCommit: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.observer.UtxoToken + params: + context: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.observer.TokenStateObserverContext +net.corda.v5.ledger.utxo.query.VaultNamedParameterizedQuery: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.persistence.ParameterizedQuery + interface: true + methods: + execute: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.application.persistence.PagedQuery$ResultSet + setCreatedTimestampLimit: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.VaultNamedParameterizedQuery + params: + timestampLimit: + annotation: + - NotNull + type: java.time.Instant + setLimit: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.VaultNamedParameterizedQuery + params: + limit: + annotation: [] + type: int + setOffset: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.VaultNamedParameterizedQuery + params: + offset: + annotation: [] + type: int + setParameter: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.VaultNamedParameterizedQuery + params: + name: + annotation: + - NotNull + type: String + value: + annotation: + - NotNull + type: Object + setParameters: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.VaultNamedParameterizedQuery + params: + parameters: + annotation: + - NotNull + type: "java.util.Map" +net.corda.v5.ledger.utxo.query.VaultNamedQueryCollector: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + collect: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.VaultNamedQueryCollector$Result + params: + resultSet: + annotation: + - NotNull + type: java.util.List + parameters: + annotation: + - NotNull + type: "java.util.Map" +net.corda.v5.ledger.utxo.query.VaultNamedQueryCollector$Result: + annotations: [] + type: public static class + extends: null + implements: [] + interface: false + methods: + getDone: + annotations: + - NotNull + default: false + type: public + returnType: Boolean + getResults: + annotations: + - NotNull + default: false + type: public + returnType: java.util.List +net.corda.v5.ledger.utxo.query.VaultNamedQueryFactory: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + create: + annotations: [] + default: false + type: public abstract + returnType: void + params: + vaultNamedQueryBuilderFactory: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilderFactory +net.corda.v5.ledger.utxo.query.VaultNamedQueryFilter: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + filter: + annotations: + - NotNull + default: false + type: public abstract + returnType: Boolean + params: + data: + annotation: + - NotNull + type: T + parameters: + annotation: + - NotNull + type: "java.util.Map" +net.corda.v5.ledger.utxo.query.VaultNamedQueryStateAndRefFilter: + annotations: [] + type: public interface + extends: + - net.corda.v5.ledger.utxo.query.VaultNamedQueryFilter + interface: true + methods: + filter: + annotations: + - NotNull + default: false + type: public abstract + returnType: Boolean + params: + data: + annotation: + - NotNull + type: T + parameters: + annotation: + - NotNull + type: "java.util.Map" +net.corda.v5.ledger.utxo.query.VaultNamedQueryStateAndRefTransformer: + annotations: [] + type: public interface + extends: + - net.corda.v5.ledger.utxo.query.VaultNamedQueryTransformer + interface: true + methods: + transform: + annotations: + - NotNull + default: false + type: public abstract + returnType: R + params: + data: + annotation: + - NotNull + type: T + parameters: + annotation: + - NotNull + type: "java.util.Map" +net.corda.v5.ledger.utxo.query.VaultNamedQueryTransformer: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + transform: + annotations: + - NotNull + default: false + type: public abstract + returnType: R + params: + data: + annotation: + - NotNull + type: T + parameters: + annotation: + - NotNull + type: "java.util.Map" +net.corda.v5.ledger.utxo.query.json.ContractStateVaultJsonFactory: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + create: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + params: + state: + annotation: + - NotNull + type: T + jsonMarshallingService: + annotation: + - NotNull + type: net.corda.v5.application.marshalling.JsonMarshallingService + getStateType: + annotations: + - NotNull + default: false + type: public abstract + returnType: Class +net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilder: + annotations: [] + type: public interface + extends: + - net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilderBase + interface: true + methods: + collect: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilderCollected + params: + collector: + annotation: + - NotNull + type: "net.corda.v5.ledger.utxo.query.VaultNamedQueryCollector" + filter: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilder + params: + filter: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.query.VaultNamedQueryFilter + map: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilder + params: + transformer: + annotation: + - NotNull + type: "net.corda.v5.ledger.utxo.query.VaultNamedQueryTransformer" + register: + annotations: [] + default: false + type: public abstract + returnType: void + whereJson: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilder + params: + query: + annotation: + - NotNull + type: String +net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilderBase: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + register: + annotations: [] + default: false + type: public abstract + returnType: void +net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilderCollected: + annotations: [] + type: public interface + extends: + - net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilderBase + interface: true + methods: + register: + annotations: [] + default: false + type: public abstract + returnType: void +net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilderFactory: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + create: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.query.registration.VaultNamedQueryBuilder + params: + queryName: + annotation: + - NotNull + type: String +net.corda.v5.ledger.utxo.token.selection.ClaimedToken: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getAmount: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.math.BigDecimal + getIssuerHash: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + getNotaryX500Name: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name + getOwnerHash: + annotations: + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + getStateRef: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.StateRef + getSymbol: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getTag: + annotations: + - Nullable + default: false + type: public abstract + returnType: String + getTokenType: + annotations: + - NotNull + default: false + type: public abstract + returnType: String +net.corda.v5.ledger.utxo.token.selection.TokenBalance: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getAvailableBalance: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.math.BigDecimal + getTotalBalance: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.math.BigDecimal +net.corda.v5.ledger.utxo.token.selection.TokenBalanceCriteria: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + other: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.token.selection.TokenBalanceCriteria + getIssuerHash: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash + getNotaryX500Name: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.base.types.MemberX500Name + getOwnerHash: + annotations: + - Nullable + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash + getSymbol: + annotations: + - NotNull + default: false + type: public + returnType: String + getTagRegex: + annotations: + - Nullable + default: false + type: public + returnType: String + getTokenType: + annotations: + - NotNull + default: false + type: public + returnType: String + hashCode: + annotations: [] + default: false + type: public + returnType: int + setOwnerHash: + annotations: [] + default: false + type: public + returnType: void + params: + ownerHash: + annotation: + - Nullable + type: net.corda.v5.crypto.SecureHash + setTagRegex: + annotations: [] + default: false + type: public + returnType: void + params: + tagRegex: + annotation: + - Nullable + type: String + toString: + annotations: [] + default: false + type: public + returnType: String +net.corda.v5.ledger.utxo.token.selection.TokenClaim: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getClaimedTokens: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + useAndRelease: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + usedTokensRefs: + annotation: + - NotNull + type: java.util.List +net.corda.v5.ledger.utxo.token.selection.TokenClaimCriteria: + annotations: [] + type: public final class + extends: null + implements: [] + interface: false + methods: + equals: + annotations: [] + default: false + type: public + returnType: boolean + params: + other: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.token.selection.TokenClaimCriteria + getIssuerHash: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash + getNotaryX500Name: + annotations: + - NotNull + default: false + type: public + returnType: net.corda.v5.base.types.MemberX500Name + getOwnerHash: + annotations: + - Nullable + default: false + type: public + returnType: net.corda.v5.crypto.SecureHash + getSymbol: + annotations: + - NotNull + default: false + type: public + returnType: String + getTagRegex: + annotations: + - Nullable + default: false + type: public + returnType: String + getTargetAmount: + annotations: + - NotNull + default: false + type: public + returnType: java.math.BigDecimal + getTokenType: + annotations: + - NotNull + default: false + type: public + returnType: String + hashCode: + annotations: [] + default: false + type: public + returnType: int + setOwnerHash: + annotations: [] + default: false + type: public + returnType: void + params: + ownerHash: + annotation: + - Nullable + type: net.corda.v5.crypto.SecureHash + setTagRegex: + annotations: [] + default: false + type: public + returnType: void + params: + tagRegex: + annotation: + - Nullable + type: String + toString: + annotations: [] + default: false + type: public + returnType: String +net.corda.v5.ledger.utxo.token.selection.TokenSelection: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + queryBalance: + annotations: + - Suspendable + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.token.selection.TokenBalance + params: + criteria: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.token.selection.TokenBalanceCriteria + tryClaim: + annotations: + - Suspendable + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.token.selection.TokenClaim + params: + criteria: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.token.selection.TokenClaimCriteria +net.corda.v5.ledger.utxo.transaction.UtxoLedgerTransaction: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getCommands: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + type: + annotation: + - NotNull + type: Class + getGroupParameters: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.membership.GroupParameters + getId: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + getInputContractStates: + annotations: + - NotNull + default: true + type: public + returnType: java.util.List + getInputStateAndRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List> + params: + type: + annotation: + - NotNull + type: Class + getInputStateRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getInputStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + type: + annotation: + - NotNull + type: Class + getInputTransactionStates: + annotations: + - NotNull + default: true + type: public + returnType: java.util.List> + getMetadata: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.common.transaction.TransactionMetadata + getNotaryKey: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.security.PublicKey + getNotaryName: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name + getOutputContractStates: + annotations: + - NotNull + default: true + type: public + returnType: java.util.List + getOutputStateAndRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List> + params: + type: + annotation: + - NotNull + type: Class + getOutputStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + type: + annotation: + - NotNull + type: Class + getOutputTransactionStates: + annotations: + - NotNull + default: true + type: public + returnType: java.util.List> + getReferenceContractStates: + annotations: + - NotNull + default: true + type: public + returnType: java.util.List + getReferenceStateAndRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List> + params: + type: + annotation: + - NotNull + type: Class + getReferenceStateRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getReferenceStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + type: + annotation: + - NotNull + type: Class + getReferenceTransactionStates: + annotations: + - NotNull + default: true + type: public + returnType: java.util.List> + getSignatories: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getTimeWindow: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.TimeWindow +net.corda.v5.ledger.utxo.transaction.UtxoSignedTransaction: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: + - net.corda.v5.ledger.common.transaction.TransactionWithMetadata + interface: true + methods: + getCommands: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getInputStateRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getNotaryKey: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.security.PublicKey + getNotaryName: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name + getOutputStateAndRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List> + getReferenceStateRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getSignatories: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getSignatures: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getTimeWindow: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.TimeWindow + toLedgerTransaction: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoLedgerTransaction +net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + addCommand: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + command: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.Command + addEncumberedOutputStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + tag: + annotation: + - NotNull + type: String + contractStates: + annotation: + - NotNull + type: "net.corda.v5.ledger.utxo.ContractState[]" + addInputState: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + stateRef: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.StateRef + addInputStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + stateRefs: + annotation: + - NotNull + type: "net.corda.v5.ledger.utxo.StateRef[]" + addOutputState: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + contractState: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.ContractState + addOutputStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + contractStates: + annotation: + - NotNull + type: "net.corda.v5.ledger.utxo.ContractState[]" + addReferenceState: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + stateRef: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.StateRef + addReferenceStates: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + stateRefs: + annotation: + - NotNull + type: "net.corda.v5.ledger.utxo.StateRef[]" + addSignatories: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + signatories: + annotation: + - NotNull + type: "java.security.PublicKey[]" + getEncumbranceGroup: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + params: + tag: + annotation: + - NotNull + type: String + getEncumbranceGroups: + annotations: + - NotNull + default: false + type: public abstract + returnType: "java.util.Map>" + getNotaryKey: + annotations: + - Nullable + default: false + type: public abstract + returnType: java.security.PublicKey + getNotaryName: + annotations: + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name + setNotary: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + notary: + annotation: + - NotNull + type: net.corda.v5.base.types.MemberX500Name + setTimeWindowBetween: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + from: + annotation: + - NotNull + type: java.time.Instant + until: + annotation: + - NotNull + type: java.time.Instant + setTimeWindowUntil: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoTransactionBuilder + params: + until: + annotation: + - NotNull + type: java.time.Instant + toSignedTransaction: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.UtxoSignedTransaction +net.corda.v5.ledger.utxo.transaction.UtxoTransactionValidator: + annotations: [] + type: public interface + extends: + - java.io.Serializable + interface: true + methods: + checkTransaction: + annotations: + - Suspendable + default: false + type: public abstract + returnType: void + params: + transaction: + annotation: + - NotNull + type: net.corda.v5.ledger.utxo.transaction.UtxoLedgerTransaction +net.corda.v5.ledger.utxo.transaction.filtered.FilteredDataInconsistencyException: + annotations: [] + type: public final class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: {} +net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: {} +net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData$Audit: + annotations: + - DoNotImplement + type: public static interface + extends: + - net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData + interface: true + methods: + getSize: + annotations: [] + default: false + type: public abstract + returnType: int + getValues: + annotations: + - NotNull + default: false + type: public abstract + returnType: "java.util.Map" +net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData$Removed: + annotations: + - DoNotImplement + type: public static interface + extends: + - net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData + interface: true + methods: {} +net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData$SizeOnly: + annotations: + - DoNotImplement + type: public static interface + extends: + - net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData + interface: true + methods: + getSize: + annotations: [] + default: false + type: public abstract + returnType: int +net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransaction: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getCommands: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData + getId: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.crypto.SecureHash + getInputStateRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData + getMetadata: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.common.transaction.TransactionMetadata + getNotaryKey: + annotations: [] + default: false + type: public abstract + returnType: java.security.PublicKey + getNotaryName: + annotations: + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name + getOutputStateAndRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData> + getReferenceStateRefs: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData + getSignatories: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredData + getTimeWindow: + annotations: + - Nullable + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.TimeWindow + verify: + annotations: [] + default: false + type: public abstract + returnType: void +net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + build: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransaction + withCommands: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + params: + predicate: + annotation: + - NotNull + type: java.util.function.Predicate + withCommandsSize: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + withInputStates: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + params: + predicate: + annotation: + - NotNull + type: java.util.function.Predicate + withInputStatesSize: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + withNotary: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + withOutputStates: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + params: + predicate: + annotation: + - NotNull + type: java.util.function.Predicate + withOutputStatesSize: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + withReferenceStates: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + params: + predicate: + annotation: + - NotNull + type: java.util.function.Predicate + withReferenceStatesSize: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + withSignatories: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + params: + predicate: + annotation: + - NotNull + type: java.util.function.Predicate + withSignatoriesSize: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder + withTimeWindow: + annotations: + - Suspendable + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.ledger.utxo.transaction.filtered.UtxoFilteredTransactionBuilder +net.corda.v5.ledger.utxo.uniqueness.client.LedgerUniquenessCheckerClientService: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + requestUniquenessCheck: + annotations: + - Suspendable + default: false + type: public abstract + returnType: net.corda.v5.application.uniqueness.model.UniquenessCheckResult + params: + transactionId: + annotation: + - NotNull + type: String + originatorX500Name: + annotation: + - NotNull + type: String + inputStates: + annotation: + - NotNull + type: java.util.List + referenceStates: + annotation: + - NotNull + type: java.util.List + numOutputStates: + annotation: [] + type: int + timeWindowLowerBound: + annotation: + - Nullable + type: java.time.Instant + timeWindowUpperBound: + annotation: + - NotNull + type: java.time.Instant \ No newline at end of file diff --git a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/Attachment.java b/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/Attachment.java deleted file mode 100644 index 3784b1ec6b..0000000000 --- a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/Attachment.java +++ /dev/null @@ -1,79 +0,0 @@ -package net.corda.v5.ledger.utxo; - -import net.corda.v5.base.annotations.CordaSerializable; -import net.corda.v5.base.annotations.DoNotImplement; -import net.corda.v5.crypto.SecureHash; -import org.jetbrains.annotations.NotNull; - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.security.PublicKey; -import java.util.List; -import java.util.zip.ZipInputStream; - -/** - * Defines a data attachment that can be referenced within a transaction. - *

- * Attachments are ZIP, or optionally a signed JAR file that contains one or more files of public, static data that - * can be referenced from a transaction, and utilised within a contract. Examples of attachments include: - *

- * - Calendar data - * - Fixes (for example, LIBOR) - * - Smart contract code - * - Legal documents - * - Facts generated by oracles. - */ -@DoNotImplement -@CordaSerializable -public interface Attachment { - - /** - * Gets the ID of the unique hash of the attachment. - * - * @return Returns the ID of the unique hash of the attachment. - */ - @NotNull - SecureHash getId(); - - /** - * Gets the size of the attachment in bytes. - * - * @return Returns the size of the attachment in bytes. - */ - int getSize(); - - /** - * Gets the keys that have been used to sign the attachment, or empty if the attachment does not require signing. - * - * @return Returns the keys that have been used to sign the attachment, or empty if the attachment does not require signing. - */ - @NotNull - List getSignatories(); - - /** - * Finds the specified file (case insensitively) within the attachment and copies it to the specified output stream. - * - * @param path The path of the file to find within the attachment. - * @param output The output stream where the file should be copied to. - */ - void extractFile(@NotNull String path, @NotNull OutputStream output); - - /** - * Opens the current {@link Attachment}. - * - * @return Returns the {@link InputStream} for the current {@link Attachment}. - */ - @NotNull - InputStream open(); - - /** - * Opens the current {@link Attachment} as a ZIP. - * - * @return Returns the {@link ZipInputStream} for the current {@link Attachment}. - */ - @NotNull - default ZipInputStream openAsZip() { - return new ZipInputStream(open()); - } -} diff --git a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/UtxoLedgerService.java b/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/UtxoLedgerService.java index aa844829df..af18dff0f9 100644 --- a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/UtxoLedgerService.java +++ b/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/UtxoLedgerService.java @@ -2,6 +2,7 @@ import net.corda.v5.application.messaging.FlowSession; import net.corda.v5.application.persistence.PagedQuery; +import net.corda.v5.application.persistence.PagedQuery.ResultSet; import net.corda.v5.base.annotations.DoNotImplement; import net.corda.v5.base.annotations.Suspendable; import net.corda.v5.crypto.SecureHash; @@ -16,6 +17,7 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.time.Instant; import java.util.List; /** @@ -36,7 +38,7 @@ public interface UtxoLedgerService { /** * Resolves the specified {@link StateRef} instances into {@link StateAndRef} instances of the specified {@link ContractState} type. * - * @param The underlying {@link ContractState} type. + * @param The underlying {@link ContractState} type. * @param stateRefs The {@link StateRef} instances to resolve. * @return Returns a {@link List} of {@link StateAndRef} of the specified {@link ContractState} type. */ @@ -47,7 +49,7 @@ public interface UtxoLedgerService { /** * Resolves the specified {@link StateRef} instance into a {@link StateAndRef} instance of the specified {@link ContractState} type. * - * @param The underlying {@link ContractState} type. + * @param The underlying {@link ContractState} type. * @param stateRef The {@link StateRef} instances to resolve. * @return Returns a {@link StateAndRef} of the specified {@link ContractState} type. */ @@ -88,32 +90,65 @@ public interface UtxoLedgerService { /** * Finds unconsumed states that are concrete implementations or subclasses of {@code type}. - *

- * Only use this method if subclasses of {@code type} must be returned. - *

- * Use {@link #findUnconsumedStatesByExactType(Class)} to return exact instances of the input {@code type}. - * This method is more performant than {@link #findUnconsumedStatesByType(Class)}. - *

- * Use {@link #query(String, Class)} for a more performant method of retrieving subclasses of a specified type. + * + * @deprecated This method should no longer be used due to its lack of paging support, which can result in + * serious performance issues and / or out of memory errors if the query returns many states. + * {@link #findUnconsumedStatesByExactType(Class, Integer, Instant)} should be used instead. Note + * that this will not return subclasses of the specified class. If this functionality is required, + * it is recommended to write a custom query and invoke this via the {@link #query(String, Class)} + * API instead. * * @param The underlying {@link ContractState} type. * @param type The {@link ContractState} type to find in the vault. * @return Returns a {@link List} of {@link StateAndRef} of unconsumed states of the specified type, or an empty list if no states could be found. */ + @Deprecated(since = "5.1", forRemoval = true) @NotNull @Suspendable List> findUnconsumedStatesByType(@NotNull Class type); /** * Finds unconsumed states of the specified {@link ContractState} type in the vault. + *

+ * This version supports paging, limiting the number of results returned in a single query call by setting the + * `limit` argument. + *

+ * Example usage: + *

    + *
  • Kotlin:
    {@code
    +     * val resultSet = utxoLedgerService.findUnconsumedStatesByExactType(MyState::class.java, 10, Instant.now())
          *
    -     * @param   The underlying {@link ContractState} type.
    -     * @param type The {@link ContractState} type to find in the vault.
    -     * @return Returns a {@link List} of {@link StateAndRef} of unconsumed states of the specified type, or an empty list if no states could be found.
    +     * processResultsWithApplicationLogic(resultSet.results)
    +     *
    +     * while (resultSet.hasNext()) {
    +     *     val results = resultSet.next()
    +     *     processResultsWithApplicationLogic(results)
    +     * }
    +     * }
  • + *
  • Java:
    {@code
    +     * PagedQuery.ResultSet> resultSet = utxoLedgerService.query(MyState.class, 10, Instant.now())
    +     *
    +     * processResultsWithApplicationLogic(resultSet.getResults());
    +     *
    +     * while (resultSet.hasNext()) {
    +     *     List results = resultSet.next();
    +     *     processResultsWithApplicationLogic(results);
    +     * }
    +     * }
  • + * + * @param The underlying {@link ContractState} type. + * @param type The {@link ContractState} type to find in the vault. + * @param limit The size of each page. + * @param createdTimestampLimit The timestamp limit the underlying query enforces. + * @return Returns a {@link ResultSet} of {@link StateAndRef} of unconsumed states of the specified type. */ @NotNull @Suspendable - List> findUnconsumedStatesByExactType(@NotNull Class type); + ResultSet> findUnconsumedStatesByExactType( + @NotNull Class type, + @NotNull Integer limit, + @NotNull Instant createdTimestampLimit + ); /** * Verifies, signs, collects signatures, records and broadcasts a {@link UtxoSignedTransaction} to participants and observers. @@ -162,7 +197,7 @@ FinalizationResult receiveFinality( *

    * The notary and time window from the proposal will get discarded and the original will be kept if both the original and * the proposal have these components set. - * Duplications of input staterefs, reference staterefs, attachments and signatories will be discarded. + * Duplications of input staterefs, reference staterefs, and signatories will be discarded. *

    * Receiver: *

    {@code
    @@ -174,8 +209,7 @@ FinalizationResult receiveFinality(
          * }
    * * @param transactionBuilder The {@link UtxoTransactionBuilder} to send. - * @param session The receiver {@link FlowSession}. - * + * @param session The receiver {@link FlowSession}. * @return A new merged builder of the original and proposed components. */ @NotNull @@ -203,8 +237,9 @@ UtxoTransactionBuilder receiveTransactionBuilder( * which tracks the differences internally. * If it is called with anything else, it throws InvalidParameterException. *

    + * * @param transactionBuilder The {@link UtxoTransactionBuilder} to send. - * @param session The receiver {@link FlowSession}. + * @param session The receiver {@link FlowSession}. */ @Suspendable void sendUpdatedTransactionBuilder( @@ -260,15 +295,14 @@ void sendUpdatedTransactionBuilder( * } * } * - * @param queryName The name of the named ledger query to use. + * @param queryName The name of the named ledger query to use. * @param resultClass Type that the query should return when executed. - * * @return A {@link VaultNamedParameterizedQuery} query object that can be executed or modified further on. - * * @see VaultNamedParameterizedQuery - * @see PagedQuery.ResultSet + * @see ResultSet * @see VaultNamedQueryFactory */ @Suspendable - @NotNull VaultNamedParameterizedQuery query(@NotNull String queryName, @NotNull Class resultClass); + @NotNull + VaultNamedParameterizedQuery query(@NotNull String queryName, @NotNull Class resultClass); } diff --git a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoLedgerTransaction.java b/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoLedgerTransaction.java index 7a57f92a6b..1eec2bb9de 100644 --- a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoLedgerTransaction.java +++ b/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoLedgerTransaction.java @@ -4,7 +4,6 @@ import net.corda.v5.base.types.MemberX500Name; import net.corda.v5.crypto.SecureHash; import net.corda.v5.ledger.common.transaction.TransactionMetadata; -import net.corda.v5.ledger.utxo.Attachment; import net.corda.v5.ledger.utxo.Command; import net.corda.v5.ledger.utxo.ContractState; import net.corda.v5.ledger.utxo.StateAndRef; @@ -74,24 +73,6 @@ public interface UtxoLedgerTransaction { @NotNull List getSignatories(); - /** - * Gets the attachments associated with the current {@link UtxoLedgerTransaction}. - * - * @return Returns the attachments associated with the current {@link UtxoLedgerTransaction}. - */ - @NotNull - List getAttachments(); - - /** - * Obtains an attachment associated with the current {@link UtxoLedgerTransaction}. - * - * @param id The ID of the attachment to obtain. - * @return Returns the attachment with the specified ID. - * @throws IllegalArgumentException if the attachment with the specified ID cannot be found. - */ - @NotNull - Attachment getAttachment(@NotNull SecureHash id); - /** * Gets the commands associated with the current {@link UtxoLedgerTransaction}. * diff --git a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoTransactionBuilder.java b/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoTransactionBuilder.java index d23ce1a1fb..e4f28da014 100644 --- a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoTransactionBuilder.java +++ b/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/transaction/UtxoTransactionBuilder.java @@ -3,9 +3,7 @@ import net.corda.v5.base.annotations.DoNotImplement; import net.corda.v5.base.annotations.Suspendable; import net.corda.v5.base.types.MemberX500Name; -import net.corda.v5.crypto.SecureHash; import net.corda.v5.ledger.common.transaction.TransactionNoAvailableKeysException; -import net.corda.v5.ledger.utxo.Attachment; import net.corda.v5.ledger.utxo.Command; import net.corda.v5.ledger.utxo.ContractState; import net.corda.v5.ledger.utxo.StateRef; @@ -24,15 +22,6 @@ @SuppressWarnings("TooManyFunctions") public interface UtxoTransactionBuilder { - /** - * Adds the specified {@link Attachment} to the current {@link UtxoTransactionBuilder}. - * - * @param attachmentId The ID of the {@link Attachment} to add to the current {@link UtxoTransactionBuilder}. - * @return Returns the current {@link UtxoTransactionBuilder} with the specified {@link Attachment}. - */ - @NotNull - UtxoTransactionBuilder addAttachment(@NotNull SecureHash attachmentId); - /** * Adds the specified command to the current {@link UtxoTransactionBuilder}. * diff --git a/ledger/notary-plugin/build.gradle b/ledger/notary-plugin/build.gradle index 3b7acbc572..1a038abb00 100644 --- a/ledger/notary-plugin/build.gradle +++ b/ledger/notary-plugin/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda Notary Plugin API and Core' diff --git a/ledger/notary-plugin/scans/corda-notary-plugin-5.1.0.yaml b/ledger/notary-plugin/scans/corda-notary-plugin-5.1.0.yaml new file mode 100644 index 0000000000..1c4a53c651 --- /dev/null +++ b/ledger/notary-plugin/scans/corda-notary-plugin-5.1.0.yaml @@ -0,0 +1,69 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.ledger.notary.plugin.api.PluggableNotaryClientFlow: + annotations: [] + type: public interface + extends: + - net.corda.v5.application.flows.SubFlow + interface: true + methods: {} +net.corda.v5.ledger.notary.plugin.core.NotaryException: + annotations: + - CordaSerializable + type: public abstract class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: + getNotaryErrorMessage: + annotations: + - NotNull + default: false + type: public final + returnType: String + getTxId: + annotations: + - Nullable + default: false + type: public final + returnType: net.corda.v5.crypto.SecureHash +net.corda.v5.ledger.notary.plugin.core.NotaryExceptionFatal: + annotations: + - CordaSerializable + type: public abstract class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: + getNotaryErrorMessage: + annotations: + - NotNull + default: false + type: public final + returnType: String + getTxId: + annotations: + - Nullable + default: false + type: public final + returnType: net.corda.v5.crypto.SecureHash +net.corda.v5.ledger.notary.plugin.core.NotaryExceptionUnknown: + annotations: + - CordaSerializable + type: public abstract class + extends: net.corda.v5.base.exceptions.CordaRuntimeException + implements: [] + interface: false + methods: + getNotaryErrorMessage: + annotations: + - NotNull + default: false + type: public final + returnType: String + getTxId: + annotations: + - Nullable + default: false + type: public final + returnType: net.corda.v5.crypto.SecureHash \ No newline at end of file diff --git a/membership/build.gradle b/membership/build.gradle index 8bc9f3b250..efb96604dd 100644 --- a/membership/build.gradle +++ b/membership/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda Membership' diff --git a/membership/scans/corda-membership-5.1.0.yaml b/membership/scans/corda-membership-5.1.0.yaml new file mode 100644 index 0000000000..2700313fa3 --- /dev/null +++ b/membership/scans/corda-membership-5.1.0.yaml @@ -0,0 +1,149 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.membership.EndpointInfo: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: + getProtocolVersion: + annotations: [] + default: false + type: public abstract + returnType: int + getUrl: + annotations: + - NotNull + default: false + type: public abstract + returnType: String +net.corda.v5.membership.GroupParameters: + annotations: + - CordaSerializable + type: public interface + extends: + - net.corda.v5.base.types.LayeredPropertyMap + interface: true + methods: + getEpoch: + annotations: [] + default: false + type: public abstract + returnType: int + getModifiedTime: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.time.Instant + getNotaries: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.Collection +net.corda.v5.membership.GroupParametersLookup: + annotations: + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getCurrentGroupParameters: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.membership.GroupParameters +net.corda.v5.membership.MGMContext: + annotations: [] + type: public interface + extends: + - net.corda.v5.base.types.LayeredPropertyMap + interface: true + methods: {} +net.corda.v5.membership.MemberContext: + annotations: [] + type: public interface + extends: + - net.corda.v5.base.types.LayeredPropertyMap + interface: true + methods: {} +net.corda.v5.membership.MemberInfo: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: + getLedgerKeys: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.List + getMemberProvidedContext: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.membership.MemberContext + getMgmProvidedContext: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.membership.MGMContext + getName: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name + getPlatformVersion: + annotations: [] + default: false + type: public abstract + returnType: int + getSerial: + annotations: [] + default: false + type: public abstract + returnType: long + isActive: + annotations: [] + default: false + type: public abstract + returnType: boolean +net.corda.v5.membership.NotaryInfo: + annotations: + - CordaSerializable + type: public interface + extends: [] + interface: true + methods: + getName: + annotations: + - NotNull + default: false + type: public abstract + returnType: net.corda.v5.base.types.MemberX500Name + getProtocol: + annotations: + - NotNull + default: false + type: public abstract + returnType: String + getProtocolVersions: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.util.Collection + getPublicKey: + annotations: + - NotNull + default: false + type: public abstract + returnType: java.security.PublicKey \ No newline at end of file diff --git a/serialization/build.gradle b/serialization/build.gradle index c84ba6014d..dce0054134 100644 --- a/serialization/build.gradle +++ b/serialization/build.gradle @@ -2,6 +2,7 @@ plugins { id 'corda-api.common-library' id 'corda.common-publishing' id 'corda.java-only' + id 'corda.api-scanner' } description 'Corda Serialization' diff --git a/serialization/scans/corda-serialization-5.1.0.yaml b/serialization/scans/corda-serialization-5.1.0.yaml new file mode 100644 index 0000000000..5bbd1e4a64 --- /dev/null +++ b/serialization/scans/corda-serialization-5.1.0.yaml @@ -0,0 +1,125 @@ +# Auto-generated by Gradle cementApi task +# DO NOT EDIT THIS FILE MANUALLY +net.corda.v5.serialization.MissingSerializerException: + annotations: [] + type: public class + extends: java.io.NotSerializableException + implements: [] + interface: false + methods: + getTypeDescriptor: + annotations: + - Nullable + default: false + type: public + returnType: String + getTypeNames: + annotations: + - NotNull + default: false + type: public + returnType: java.util.List +net.corda.v5.serialization.SerializationCustomSerializer: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + fromProxy: + annotations: + - NotNull + default: false + type: public abstract + returnType: OBJ + params: + proxy: + annotation: + - NotNull + type: PROXY + toProxy: + annotations: + - NotNull + default: false + type: public abstract + returnType: PROXY + params: + obj: + annotation: + - NotNull + type: OBJ +net.corda.v5.serialization.SerializedBytes: + annotations: + - CordaSerializable + - DoNotImplement + type: public interface + extends: [] + interface: true + methods: + getBytes: + annotations: + - NotNull + default: false + type: public abstract + returnType: "byte[]" +net.corda.v5.serialization.SingletonSerializeAsToken: + annotations: [] + type: public interface + extends: [] + interface: true + methods: + getTokenName: + annotations: + - NotNull + default: true + type: public + returnType: String +net.corda.v5.serialization.annotations.CordaSerializationTransformEnumDefault: + annotations: [] + type: public @interface + interface: false + methods: + newName: + annotations: [] + default: false + type: public abstract + returnType: String + oldName: + annotations: [] + default: false + type: public abstract + returnType: String +net.corda.v5.serialization.annotations.CordaSerializationTransformEnumDefaults: + annotations: [] + type: public @interface + interface: false + methods: + value: + annotations: [] + default: false + type: public abstract + returnType: "net.corda.v5.serialization.annotations.CordaSerializationTransformEnumDefault[]" +net.corda.v5.serialization.annotations.CordaSerializationTransformRename: + annotations: [] + type: public @interface + interface: false + methods: + from: + annotations: [] + default: false + type: public abstract + returnType: String + to: + annotations: [] + default: false + type: public abstract + returnType: String +net.corda.v5.serialization.annotations.CordaSerializationTransformRenames: + annotations: [] + type: public @interface + interface: false + methods: + value: + annotations: [] + default: false + type: public abstract + returnType: "net.corda.v5.serialization.annotations.CordaSerializationTransformRename[]" \ No newline at end of file