Created
August 21, 2025 16:08
-
-
Save jefft0/90ed1c02033f24a79a0649c26eeead26 to your computer and use it in GitHub Desktop.
Changes from misc/genproto make
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git diff | |
| diff --git a/gno.land/pkg/sdk/vm/vm.proto b/gno.land/pkg/sdk/vm/vm.proto | |
| index e02226e1a..e8a0e6bfd 100644 | |
| --- a/gno.land/pkg/sdk/vm/vm.proto | |
| +++ b/gno.land/pkg/sdk/vm/vm.proto | |
| @@ -10,26 +10,32 @@ import "github.com/gnolang/gno/tm2/pkg/std/std.proto"; | |
| message m_call { | |
| string caller = 1; | |
| string send = 2; | |
| - string pkg_path = 3; | |
| - string func = 4; | |
| - repeated string args = 5; | |
| + string max_deposit = 3; | |
| + string pkg_path = 4; | |
| + string func = 5; | |
| + repeated string args = 6; | |
| } | |
| message m_run { | |
| string caller = 1; | |
| string send = 2; | |
| - std.MemPackage package = 3; | |
| + string max_deposit = 3; | |
| + std.MemPackage package = 4; | |
| } | |
| message m_addpkg { | |
| string creator = 1; | |
| std.MemPackage package = 2; | |
| - string deposit = 3; | |
| + string send = 3; | |
| + string max_deposit = 4; | |
| } | |
| message InvalidPkgPathError { | |
| } | |
| +message NoRenderDeclError { | |
| +} | |
| + | |
| message PkgExistError { | |
| } | |
| @@ -40,5 +46,11 @@ message InvalidExprError { | |
| } | |
| message TypeCheckError { | |
| - repeated string errors = 1 [json_name = "Errors"]; | |
| + repeated string errors = 1; | |
| +} | |
| + | |
| +message UnauthorizedUserError { | |
| +} | |
| + | |
| +message InvalidPackageError { | |
| } | |
| \ No newline at end of file | |
| diff --git a/gnovm/pkg/gnolang/gnolang.proto b/gnovm/pkg/gnolang/gnolang.proto | |
| index f824c8716..c7c20afa7 100644 | |
| --- a/gnovm/pkg/gnolang/gnolang.proto | |
| +++ b/gnovm/pkg/gnolang/gnolang.proto | |
| @@ -29,7 +29,6 @@ message PointerValue { | |
| TypedValue tv = 1 [json_name = "TV"]; | |
| google.protobuf.Any base = 2 [json_name = "Base"]; | |
| sint64 index = 3 [json_name = "Index"]; | |
| - TypedValue key = 4 [json_name = "Key"]; | |
| } | |
| message ArrayValue { | |
| @@ -51,15 +50,19 @@ message StructValue { | |
| } | |
| message FuncValue { | |
| - google.protobuf.Any type = 1 [json_name = "Type"]; | |
| - bool is_method = 2 [json_name = "IsMethod"]; | |
| - google.protobuf.Any source = 3 [json_name = "Source"]; | |
| - string name = 4 [json_name = "Name"]; | |
| - google.protobuf.Any closure = 5 [json_name = "Closure"]; | |
| - string file_name = 6 [json_name = "FileName"]; | |
| - string pkg_path = 7 [json_name = "PkgPath"]; | |
| - string native_pkg = 8 [json_name = "NativePkg"]; | |
| - string native_name = 9 [json_name = "NativeName"]; | |
| + ObjectInfo object_info = 1 [json_name = "ObjectInfo"]; | |
| + google.protobuf.Any type = 2 [json_name = "Type"]; | |
| + bool is_method = 3 [json_name = "IsMethod"]; | |
| + bool is_closure = 4 [json_name = "IsClosure"]; | |
| + google.protobuf.Any source = 5 [json_name = "Source"]; | |
| + string name = 6 [json_name = "Name"]; | |
| + google.protobuf.Any parent = 7 [json_name = "Parent"]; | |
| + repeated TypedValue captures = 8 [json_name = "Captures"]; | |
| + string file_name = 9 [json_name = "FileName"]; | |
| + string pkg_path = 10 [json_name = "PkgPath"]; | |
| + string native_pkg = 11 [json_name = "NativePkg"]; | |
| + string native_name = 12 [json_name = "NativeName"]; | |
| + bool crossing = 13 [json_name = "Crossing"]; | |
| } | |
| message MapValue { | |
| @@ -110,6 +113,11 @@ message RefValue { | |
| string hash = 4 [json_name = "Hash"]; | |
| } | |
| +message HeapItemValue { | |
| + ObjectInfo object_info = 1 [json_name = "ObjectInfo"]; | |
| + TypedValue value = 2 [json_name = "Value"]; | |
| +} | |
| + | |
| message ObjectID { | |
| string value = 1; | |
| } | |
| @@ -121,6 +129,7 @@ message ObjectInfo { | |
| uint64 mod_time = 4 [json_name = "ModTime"]; | |
| sint64 ref_count = 5 [json_name = "RefCount"]; | |
| bool is_escaped = 6 [json_name = "IsEscaped"]; | |
| + sint64 last_object_size = 7 [json_name = "LastObjectSize"]; | |
| } | |
| message ValueHash { | |
| @@ -141,12 +150,11 @@ message ValuePath { | |
| message Location { | |
| string pkg_path = 1 [json_name = "PkgPath"]; | |
| string file = 2 [json_name = "File"]; | |
| - sint64 line = 3 [json_name = "Line"]; | |
| - sint64 column = 4 [json_name = "Column"]; | |
| + Span span = 3 [json_name = "Span"]; | |
| } | |
| message Attributes { | |
| - sint64 line = 1 [json_name = "Line"]; | |
| + Span span = 1 [json_name = "Span"]; | |
| string label = 2 [json_name = "Label"]; | |
| } | |
| @@ -154,6 +162,7 @@ message NameExpr { | |
| Attributes attributes = 1 [json_name = "Attributes"]; | |
| ValuePath path = 2 [json_name = "Path"]; | |
| string name = 3 [json_name = "Name"]; | |
| + sint64 type = 4 [json_name = "Type"]; | |
| } | |
| message BasicLitExpr { | |
| @@ -175,6 +184,7 @@ message CallExpr { | |
| repeated google.protobuf.Any args = 3 [json_name = "Args"]; | |
| bool varg = 4 [json_name = "Varg"]; | |
| sint64 num_args = 5 [json_name = "NumArgs"]; | |
| + bool with_cross = 6 [json_name = "WithCross"]; | |
| } | |
| message IndexExpr { | |
| @@ -239,6 +249,7 @@ message FuncLitExpr { | |
| StaticBlock static_block = 2 [json_name = "StaticBlock"]; | |
| FuncTypeExpr type = 3 [json_name = "Type"]; | |
| repeated google.protobuf.Any body = 4 [json_name = "Body"]; | |
| + repeated NameExpr heap_captures = 5 [json_name = "HeapCaptures"]; | |
| } | |
| message ConstExpr { | |
| @@ -249,7 +260,7 @@ message ConstExpr { | |
| message FieldTypeExpr { | |
| Attributes attributes = 1 [json_name = "Attributes"]; | |
| - string name = 2 [json_name = "Name"]; | |
| + NameExpr name_expr = 2 [json_name = "NameExpr"]; | |
| google.protobuf.Any type = 3 [json_name = "Type"]; | |
| google.protobuf.Any tag = 4 [json_name = "Tag"]; | |
| } | |
| @@ -297,13 +308,9 @@ message StructTypeExpr { | |
| message constTypeExpr { | |
| Attributes attributes = 1 [json_name = "Attributes"]; | |
| - google.protobuf.Any source = 2 [json_name = "Source"]; | |
| - google.protobuf.Any type = 3 [json_name = "Type"]; | |
| -} | |
| - | |
| -message MaybeNativeTypeExpr { | |
| - Attributes attributes = 1 [json_name = "Attributes"]; | |
| - google.protobuf.Any type = 2 [json_name = "Type"]; | |
| + google.protobuf.Any last = 2 [json_name = "Last"]; | |
| + google.protobuf.Any source = 3 [json_name = "Source"]; | |
| + google.protobuf.Any type = 4 [json_name = "Type"]; | |
| } | |
| message AssignStmt { | |
| @@ -323,8 +330,9 @@ message BranchStmt { | |
| Attributes attributes = 1 [json_name = "Attributes"]; | |
| sint64 op = 2 [json_name = "Op"]; | |
| string label = 3 [json_name = "Label"]; | |
| - uint32 depth = 4 [json_name = "Depth"]; | |
| - sint64 body_index = 5 [json_name = "BodyIndex"]; | |
| + uint32 block_depth = 4 [json_name = "BlockDepth"]; | |
| + uint32 frame_depth = 5 [json_name = "FrameDepth"]; | |
| + sint64 body_index = 6 [json_name = "BodyIndex"]; | |
| } | |
| message DeclStmt { | |
| @@ -393,6 +401,7 @@ message RangeStmt { | |
| message ReturnStmt { | |
| Attributes attributes = 1 [json_name = "Attributes"]; | |
| repeated google.protobuf.Any results = 2 [json_name = "Results"]; | |
| + bool copy_results = 3 [json_name = "CopyResults"]; | |
| } | |
| message SelectStmt { | |
| @@ -490,12 +499,16 @@ message TypeDecl { | |
| message StaticBlock { | |
| Block block = 1 [json_name = "Block"]; | |
| - repeated google.protobuf.Any types = 2 [json_name = "Types"]; | |
| - uint32 num_names = 3 [json_name = "NumNames"]; | |
| - repeated string names = 4 [json_name = "Names"]; | |
| - repeated string consts = 5 [json_name = "Consts"]; | |
| - repeated string externs = 6 [json_name = "Externs"]; | |
| - Location loc = 7 [json_name = "Loc"]; | |
| + Location location = 2 [json_name = "Location"]; | |
| + repeated google.protobuf.Any types = 3 [json_name = "Types"]; | |
| + uint32 num_names = 4 [json_name = "NumNames"]; | |
| + repeated string names = 5 [json_name = "Names"]; | |
| + repeated NameSource name_sources = 6 [json_name = "NameSources"]; | |
| + repeated bool heap_items = 7 [json_name = "HeapItems"]; | |
| + repeated string unassignable_names = 8 [json_name = "UnassignableNames"]; | |
| + repeated string consts = 9 [json_name = "Consts"]; | |
| + repeated string externs = 10 [json_name = "Externs"]; | |
| + google.protobuf.Any parent = 11 [json_name = "Parent"]; | |
| } | |
| message FileSet { | |
| @@ -505,7 +518,7 @@ message FileSet { | |
| message FileNode { | |
| Attributes attributes = 1 [json_name = "Attributes"]; | |
| StaticBlock static_block = 2 [json_name = "StaticBlock"]; | |
| - string name = 3 [json_name = "Name"]; | |
| + string file_name = 3 [json_name = "FileName"]; | |
| string pkg_name = 4 [json_name = "PkgName"]; | |
| repeated google.protobuf.Any decls = 5 [json_name = "Decls"]; | |
| } | |
| @@ -523,6 +536,24 @@ message RefNode { | |
| google.protobuf.Any block_node = 2 [json_name = "BlockNode"]; | |
| } | |
| +message NameSource { | |
| + NameExpr name_expr = 1 [json_name = "NameExpr"]; | |
| + google.protobuf.Any origin = 2 [json_name = "Origin"]; | |
| + sint64 type = 3 [json_name = "Type"]; | |
| + sint64 index = 4 [json_name = "Index"]; | |
| +} | |
| + | |
| +message Pos { | |
| + sint64 line = 1 [json_name = "Line"]; | |
| + sint64 column = 2 [json_name = "Column"]; | |
| +} | |
| + | |
| +message Span { | |
| + Pos pos = 1 [json_name = "Pos"]; | |
| + Pos end = 2 [json_name = "End"]; | |
| + sint64 num = 3 [json_name = "Num"]; | |
| +} | |
| + | |
| message PrimitiveType { | |
| sint64 value = 1; | |
| } | |
| @@ -576,8 +607,9 @@ message TypeType { | |
| message DeclaredType { | |
| string pkg_path = 1 [json_name = "PkgPath"]; | |
| string name = 2 [json_name = "Name"]; | |
| - google.protobuf.Any base = 3 [json_name = "Base"]; | |
| - repeated TypedValue methods = 4 [json_name = "Methods"]; | |
| + Location parent_loc = 3 [json_name = "ParentLoc"]; | |
| + google.protobuf.Any base = 4 [json_name = "Base"]; | |
| + repeated TypedValue methods = 5 [json_name = "Methods"]; | |
| } | |
| message PackageType { | |
| @@ -598,3 +630,14 @@ message tupleType { | |
| message RefType { | |
| string id = 1 [json_name = "ID"]; | |
| } | |
| + | |
| +message heapItemType { | |
| +} | |
| + | |
| +message MemPackageType { | |
| + string value = 1; | |
| +} | |
| + | |
| +message MemPackageFilter { | |
| + string value = 1; | |
| +} | |
| \ No newline at end of file | |
| diff --git a/tm2/pkg/std/std.proto b/tm2/pkg/std/std.proto | |
| index 2fad1eeff..0a8327075 100644 | |
| --- a/tm2/pkg/std/std.proto | |
| +++ b/tm2/pkg/std/std.proto | |
| @@ -15,15 +15,26 @@ message BaseAccount { | |
| uint64 sequence = 5; | |
| } | |
| +message Coin { | |
| + string value = 1; | |
| +} | |
| + | |
| +message GasPrice { | |
| + sint64 gas = 1; | |
| + string price = 2; | |
| +} | |
| + | |
| message MemFile { | |
| - string name = 1 [json_name = "Name"]; | |
| - string body = 2 [json_name = "Body"]; | |
| + string name = 1; | |
| + string body = 2; | |
| } | |
| message MemPackage { | |
| - string name = 1 [json_name = "Name"]; | |
| - string path = 2 [json_name = "Path"]; | |
| - repeated MemFile files = 3 [json_name = "Files"]; | |
| + string name = 1; | |
| + string path = 2; | |
| + repeated MemFile files = 3; | |
| + google.protobuf.Any type = 4; | |
| + google.protobuf.Any info = 5; | |
| } | |
| message InternalError { | |
| @@ -78,4 +89,7 @@ message NoSignaturesError { | |
| } | |
| message GasOverflowError { | |
| +} | |
| + | |
| +message RestrictedTransferError { | |
| } | |
| \ No newline at end of file | |
| (END) | |
| index 6776f5ecb..8fd157e17 100644 | |
| diff --git a/tm2/pkg/std/std.proto b/tm2/pkg/std/std.proto | |
| index 2fad1eeff..0a8327075 100644 | |
| --- a/tm2/pkg/std/std.proto | |
| +++ b/tm2/pkg/std/std.proto | |
| @@ -15,15 +15,26 @@ message BaseAccount { | |
| uint64 sequence = 5; | |
| } | |
| +message Coin { | |
| + string value = 1; | |
| +} | |
| + | |
| +message GasPrice { | |
| + sint64 gas = 1; | |
| + string price = 2; | |
| +} | |
| + | |
| message MemFile { | |
| - string name = 1 [json_name = "Name"]; | |
| - string body = 2 [json_name = "Body"]; | |
| + string name = 1; | |
| + string body = 2; | |
| } | |
| message MemPackage { | |
| - string name = 1 [json_name = "Name"]; | |
| - string path = 2 [json_name = "Path"]; | |
| - repeated MemFile files = 3 [json_name = "Files"]; | |
| + string name = 1; | |
| + string path = 2; | |
| + repeated MemFile files = 3; | |
| + google.protobuf.Any type = 4; | |
| + google.protobuf.Any info = 5; | |
| } | |
| message InternalError { | |
| @@ -78,4 +89,7 @@ message NoSignaturesError { | |
| } | |
| message GasOverflowError { | |
| +} | |
| + | |
| +message RestrictedTransferError { | |
| } | |
| \ No newline at end of file | |
| (END) | |
| index 6776f5ecb..8fd157e17 100644 | |
| diff --git a/tm2/pkg/std/std.proto b/tm2/pkg/std/std.proto | |
| index 2fad1eeff..0a8327075 100644 | |
| --- a/tm2/pkg/std/std.proto | |
| +++ b/tm2/pkg/std/std.proto | |
| @@ -15,15 +15,26 @@ message BaseAccount { | |
| uint64 sequence = 5; | |
| } | |
| +message Coin { | |
| + string value = 1; | |
| +} | |
| + | |
| +message GasPrice { | |
| + sint64 gas = 1; | |
| + string price = 2; | |
| +} | |
| + | |
| message MemFile { | |
| - string name = 1 [json_name = "Name"]; | |
| - string body = 2 [json_name = "Body"]; | |
| + string name = 1; | |
| + string body = 2; | |
| } | |
| message MemPackage { | |
| - string name = 1 [json_name = "Name"]; | |
| - string path = 2 [json_name = "Path"]; | |
| - repeated MemFile files = 3 [json_name = "Files"]; | |
| + string name = 1; | |
| + string path = 2; | |
| + repeated MemFile files = 3; | |
| + google.protobuf.Any type = 4; | |
| + google.protobuf.Any info = 5; | |
| } | |
| message InternalError { | |
| @@ -78,4 +89,7 @@ message NoSignaturesError { | |
| } | |
| message GasOverflowError { | |
| +} | |
| + | |
| +message RestrictedTransferError { | |
| } | |
| \ No newline at end of file | |
| (END) | |
| index 6776f5ecb..8fd157e17 100644 | |
| diff --git a/tm2/pkg/std/std.proto b/tm2/pkg/std/std.proto | |
| index 2fad1eeff..0a8327075 100644 | |
| --- a/tm2/pkg/std/std.proto | |
| +++ b/tm2/pkg/std/std.proto | |
| @@ -15,15 +15,26 @@ message BaseAccount { | |
| uint64 sequence = 5; | |
| } | |
| +message Coin { | |
| + string value = 1; | |
| +} | |
| + | |
| +message GasPrice { | |
| + sint64 gas = 1; | |
| + string price = 2; | |
| +} | |
| + | |
| message MemFile { | |
| - string name = 1 [json_name = "Name"]; | |
| - string body = 2 [json_name = "Body"]; | |
| + string name = 1; | |
| + string body = 2; | |
| } | |
| message MemPackage { | |
| - string name = 1 [json_name = "Name"]; | |
| - string path = 2 [json_name = "Path"]; | |
| - repeated MemFile files = 3 [json_name = "Files"]; | |
| + string name = 1; | |
| + string path = 2; | |
| + repeated MemFile files = 3; | |
| + google.protobuf.Any type = 4; | |
| + google.protobuf.Any info = 5; | |
| } | |
| message InternalError { | |
| @@ -78,4 +89,7 @@ message NoSignaturesError { | |
| } | |
| message GasOverflowError { | |
| +} | |
| + | |
| +message RestrictedTransferError { | |
| } | |
| \ No newline at end of file | |
| (END) | |
| index 6776f5ecb..8fd157e17 100644 | |
| diff --git a/tm2/pkg/std/std.proto b/tm2/pkg/std/std.proto | |
| index 2fad1eeff..0a8327075 100644 | |
| --- a/tm2/pkg/std/std.proto | |
| +++ b/tm2/pkg/std/std.proto | |
| @@ -15,15 +15,26 @@ message BaseAccount { | |
| uint64 sequence = 5; | |
| } | |
| +message Coin { | |
| + string value = 1; | |
| +} | |
| + | |
| +message GasPrice { | |
| + sint64 gas = 1; | |
| + string price = 2; | |
| +} | |
| + | |
| message MemFile { | |
| - string name = 1 [json_name = "Name"]; | |
| - string body = 2 [json_name = "Body"]; | |
| + string name = 1; | |
| + string body = 2; | |
| } | |
| message MemPackage { | |
| - string name = 1 [json_name = "Name"]; | |
| - string path = 2 [json_name = "Path"]; | |
| - repeated MemFile files = 3 [json_name = "Files"]; | |
| + string name = 1; | |
| + string path = 2; | |
| + repeated MemFile files = 3; | |
| + google.protobuf.Any type = 4; | |
| + google.protobuf.Any info = 5; | |
| } | |
| message InternalError { | |
| @@ -78,4 +89,7 @@ message NoSignaturesError { | |
| } | |
| message GasOverflowError { | |
| +} | |
| + | |
| +message RestrictedTransferError { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment