Skip to content

Commit 7974d84

Browse files
committed
Bunch of improvements
1 parent f84c162 commit 7974d84

33 files changed

+2798
-1124
lines changed

Makefile

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ PROTOC := protoc
1212
PROTOC_PLUGIN_GO := --go-grpc_out=paths=source_relative:$(PROTO_GO_OUT) --go_out=paths=source_relative:$(PROTO_GO_OUT)
1313
PROTOC_PLUGIN_JS := --js_out=import_style=commonjs,binary:$(PROTO_JS_OUT) --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:$(PROTO_JS_OUT)
1414

15-
# Define color codes for output
15+
# Define the colors for the output messages
1616
GREEN := "\033[32m"
1717
RESET := "\033[0m"
1818

19-
# Define the input files for your protobuf definitions
2019
PROTO_FILES := $(wildcard $(PWD)/common/*.proto \
2120
$(PWD)/health/*.proto \
2221
$(PWD)/sources/*.proto \
@@ -29,6 +28,7 @@ PROTO_FILES := $(wildcard $(PWD)/common/*.proto \
2928
$(PWD)/opcode/*.proto \
3029
$(PWD)/audit/*.proto \
3130
$(PWD)/contracts/*.proto \
31+
$(PWD)/server/*.proto \
3232
)
3333

3434
# Define the commands to generate protobuf files for Golang and JavaScript
@@ -82,11 +82,11 @@ deps: submodule
8282

8383
help:
8484
@echo "Available targets:"
85-
@echo " build : Build Golang and JavaScript protobuf files"
86-
@echo " build-go : Build Golang protobuf files"
87-
@echo " build-js : Build JavaScript protobuf files"
88-
@echo " clean : Remove all generated protobuf files"
89-
@echo " deps : Install missing dependencies"
85+
@echo " build : Build Golang and JavaScript protobuf files"
86+
@echo " build-go : Build Golang protobuf files"
87+
@echo " build-js : Build JavaScript protobuf files"
88+
@echo " clean : Remove all generated protobuf files"
89+
@echo " deps : Install missing dependencies"
9090

9191
.DEFAULT_GOAL := help
9292

ast/import.proto

+2
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ message Import {
1515
int64 scope = 7;
1616
string unit_alias = 8;
1717
int64 source_unit = 9;
18+
string as = 10;
19+
repeated string unit_aliases = 11;
1820
}

ast/inline_array.proto

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
syntax = "proto3";
2+
option go_package = "github.com/unpackdev/protos/dist/go/ast;ast_pb";
3+
package unpack.v1.ast;
4+
5+
import "ast/types.proto";
6+
import "ast/src.proto";
7+
import "ast/type_name.proto";
8+
import "xds/type/v3/typed_struct.proto";
9+
10+
message InlineArray {
11+
int64 id = 1;
12+
unpack.v1.ast.NodeType node_type = 2;
13+
unpack.v1.ast.Src src = 3;
14+
bool is_empty = 4;
15+
repeated xds.type.v3.TypedStruct expressions = 5;
16+
repeated unpack.v1.ast.TypeDescription type_descriptions = 6;
17+
unpack.v1.ast.TypeDescription type_description = 7;
18+
}

ast/types.proto

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ enum NodeType {
109109
SHIFT_OPERATION = 103;
110110
KIND_UNARY_PREFIX = 104;
111111
KIND_UNARY_SUFFIX = 105;
112+
INLINE_ARRAY = 106;
112113
}
113114

114115
enum Mutability {

contracts/service.proto

-22
This file was deleted.

contracts/service_parameters.proto

-27
This file was deleted.

0 commit comments

Comments
 (0)