Skip to content

Commit

Permalink
Bunch of improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
0x19 committed Oct 16, 2023
1 parent f84c162 commit 7974d84
Show file tree
Hide file tree
Showing 33 changed files with 2,798 additions and 1,124 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ PROTOC := protoc
PROTOC_PLUGIN_GO := --go-grpc_out=paths=source_relative:$(PROTO_GO_OUT) --go_out=paths=source_relative:$(PROTO_GO_OUT)
PROTOC_PLUGIN_JS := --js_out=import_style=commonjs,binary:$(PROTO_JS_OUT) --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:$(PROTO_JS_OUT)

# Define color codes for output
# Define the colors for the output messages
GREEN := "\033[32m"
RESET := "\033[0m"

# Define the input files for your protobuf definitions
PROTO_FILES := $(wildcard $(PWD)/common/*.proto \
$(PWD)/health/*.proto \
$(PWD)/sources/*.proto \
Expand All @@ -29,6 +28,7 @@ PROTO_FILES := $(wildcard $(PWD)/common/*.proto \
$(PWD)/opcode/*.proto \
$(PWD)/audit/*.proto \
$(PWD)/contracts/*.proto \
$(PWD)/server/*.proto \
)

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

help:
@echo "Available targets:"
@echo " build : Build Golang and JavaScript protobuf files"
@echo " build-go : Build Golang protobuf files"
@echo " build-js : Build JavaScript protobuf files"
@echo " clean : Remove all generated protobuf files"
@echo " deps : Install missing dependencies"
@echo " build : Build Golang and JavaScript protobuf files"
@echo " build-go : Build Golang protobuf files"
@echo " build-js : Build JavaScript protobuf files"
@echo " clean : Remove all generated protobuf files"
@echo " deps : Install missing dependencies"

.DEFAULT_GOAL := help

Expand Down
2 changes: 2 additions & 0 deletions ast/import.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ message Import {
int64 scope = 7;
string unit_alias = 8;
int64 source_unit = 9;
string as = 10;
repeated string unit_aliases = 11;
}
18 changes: 18 additions & 0 deletions ast/inline_array.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";
option go_package = "github.com/unpackdev/protos/dist/go/ast;ast_pb";
package unpack.v1.ast;

import "ast/types.proto";
import "ast/src.proto";
import "ast/type_name.proto";
import "xds/type/v3/typed_struct.proto";

message InlineArray {
int64 id = 1;
unpack.v1.ast.NodeType node_type = 2;
unpack.v1.ast.Src src = 3;
bool is_empty = 4;
repeated xds.type.v3.TypedStruct expressions = 5;
repeated unpack.v1.ast.TypeDescription type_descriptions = 6;
unpack.v1.ast.TypeDescription type_description = 7;
}
1 change: 1 addition & 0 deletions ast/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ enum NodeType {
SHIFT_OPERATION = 103;
KIND_UNARY_PREFIX = 104;
KIND_UNARY_SUFFIX = 105;
INLINE_ARRAY = 106;
}

enum Mutability {
Expand Down
22 changes: 0 additions & 22 deletions contracts/service.proto

This file was deleted.

27 changes: 0 additions & 27 deletions contracts/service_parameters.proto

This file was deleted.

Loading

0 comments on commit 7974d84

Please sign in to comment.