-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Code generated by protoc-gen-as. DO NOT EDIT. | ||
// Versions: | ||
// protoc-gen-as v1.3.0 | ||
// protoc v4.23.2 | ||
|
||
import { Writer, Reader, Protobuf } from "as-proto/assembly"; | ||
|
||
export class ChainIdRequest { | ||
static encode(message: ChainIdRequest, writer: Writer): void {} | ||
|
||
static decode(reader: Reader, length: i32): ChainIdRequest { | ||
const end: usize = length < 0 ? reader.end : reader.ptr + length; | ||
const message = new ChainIdRequest(); | ||
|
||
while (reader.ptr < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
|
||
return message; | ||
} | ||
|
||
constructor() {} | ||
} | ||
|
||
export function encodeChainIdRequest(message: ChainIdRequest): Uint8Array { | ||
return Protobuf.encode(message, ChainIdRequest.encode); | ||
} | ||
|
||
export function decodeChainIdRequest(buffer: Uint8Array): ChainIdRequest { | ||
return Protobuf.decode<ChainIdRequest>(buffer, ChainIdRequest.decode); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Code generated by protoc-gen-as. DO NOT EDIT. | ||
// Versions: | ||
// protoc-gen-as v1.3.0 | ||
// protoc v4.23.2 | ||
|
||
import { Writer, Reader, Protobuf } from "as-proto/assembly"; | ||
|
||
export class ChainIdResult { | ||
static encode(message: ChainIdResult, writer: Writer): void { | ||
writer.uint32(8); | ||
writer.uint64(message.id); | ||
} | ||
|
||
static decode(reader: Reader, length: i32): ChainIdResult { | ||
const end: usize = length < 0 ? reader.end : reader.ptr + length; | ||
const message = new ChainIdResult(); | ||
|
||
while (reader.ptr < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.id = reader.uint64(); | ||
break; | ||
|
||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
|
||
return message; | ||
} | ||
|
||
id: u64; | ||
|
||
constructor(id: u64 = 0) { | ||
this.id = id; | ||
} | ||
} | ||
|
||
export function encodeChainIdResult(message: ChainIdResult): Uint8Array { | ||
return Protobuf.encode(message, ChainIdResult.encode); | ||
} | ||
|
||
export function decodeChainIdResult(buffer: Uint8Array): ChainIdResult { | ||
return Protobuf.decode<ChainIdResult>(buffer, ChainIdResult.decode); | ||
} |
This file contains 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
Submodule massa-proto
updated
2 files
+9 −0 | proto/abis/massa/abi/v1/abi.proto | |
+4 −0 | proto/commons/massa/model/v1/node.proto |