Skip to content

Commit 92956cc

Browse files
committed
WIP: generate protobufs and grpc services
Signed-off-by: Ricky Saechao <ricky@launchbadge.com>
1 parent c885c1c commit 92956cc

File tree

123 files changed

+24107
-11354
lines changed

Some content is hidden

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

123 files changed

+24107
-11354
lines changed

Package.swift

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.6
1+
// swift-tools-version:5.9
22

33
// SPDX-License-Identifier: Apache-2.0
44

@@ -66,7 +66,7 @@ let exampleTargets = [
6666
let package = Package(
6767
name: "Hiero",
6868
platforms: [
69-
.macOS(.v11),
69+
.macOS(.v14),
7070
.iOS(.v13),
7171
],
7272
products: [
@@ -85,7 +85,6 @@ let package = Package(
8585
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.18.0"),
8686
.package(url: "https://github.com/vapor/vapor.git", from: "4.112.0"),
8787
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.5.1"),
88-
// Currently, only used for keccak256
8988
.package(url: "https://github.com/krzyzanowskim/OpenSSL-Package.git", from: "3.3.2000"),
9089
],
9190
targets: [
@@ -98,9 +97,12 @@ let package = Package(
9897
exclude: [
9998
"Protos",
10099
"update_protos.py",
100+
],
101+
swiftSettings: [
102+
.define("OS_MACOS_11", .when(platforms: [.macOS], configuration: .release)),
103+
.define("OS_MACOS_15", .when(platforms: [.macOS], configuration: .release)),
101104
]
102105
),
103-
// weird name, but whatever, internal targets
104106
.target(
105107
name: "HieroExampleUtilities",
106108
dependencies: ["Hiero"],
@@ -119,11 +121,11 @@ let package = Package(
119121
.product(name: "secp256k1", package: "secp256k1.swift"),
120122
.product(name: "BigInt", package: "BigInt"),
121123
.product(name: "OpenSSL", package: "OpenSSL-Package"),
124+
],
125+
swiftSettings: [
126+
.define("OS_MACOS_11", .when(platforms: [.macOS], configuration: .release)),
127+
.define("OS_MACOS_15", .when(platforms: [.macOS], configuration: .release)),
122128
]
123-
// todo: find some way to enable these locally.
124-
// swiftSettings: [
125-
// .unsafeFlags(["-Xfrontend", "-warn-concurrency", "-Xfrontend", "-enable-actor-data-race-checks"])
126-
// ]
127129
),
128130
.executableTarget(
129131
name: "HieroTCK",

Sources/HieroProtobufs/Generated/mirror/mirror_network_service.grpc.swift

Lines changed: 347 additions & 300 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
///*
2+
/// # State Signature Transaction
3+
/// An signature of a state snapshot gossiped to other nodes.
4+
///
5+
/// ### Keywords
6+
/// The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
7+
/// "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
8+
/// document are to be interpreted as described in [RFC2119](https://www.ietf.org/rfc/rfc2119).
9+
10+
// DO NOT EDIT.
11+
// swift-format-ignore-file
12+
//
13+
// Generated by the gRPC Swift generator plugin for the protocol buffer compiler.
14+
// Source: platform/event/state_signature_transaction.proto
15+
//
16+
// For information on using the generated types, please see the documentation:
17+
// https://github.com/grpc/grpc-swift
18+
19+
// This file contained no services.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// DO NOT EDIT.
2+
// swift-format-ignore-file
3+
//
4+
// Generated by the gRPC Swift generator plugin for the protocol buffer compiler.
5+
// Source: sdk/transaction_list.proto
6+
//
7+
// For information on using the generated types, please see the documentation:
8+
// https://github.com/grpc/grpc-swift
9+
10+
// This file contained no services.

0 commit comments

Comments
 (0)