Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update CallRequest with a list of MsgCall #114

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
481 changes: 333 additions & 148 deletions api/gen/csharp/Gnonativetypes.cs

Large diffs are not rendered by default.

45 changes: 36 additions & 9 deletions api/gen/es/gnonativetypes_pb.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.7.0
// @generated by protoc-gen-es v1.7.2
// @generated from file gnonativetypes.proto (package land.gno.gnonative.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down Expand Up @@ -1169,9 +1169,9 @@ export declare class QEvalResponse extends Message<QEvalResponse> {
}

/**
* @generated from message land.gno.gnonative.v1.CallRequest
* @generated from message land.gno.gnonative.v1.MsgCall
*/
export declare class CallRequest extends Message<CallRequest> {
export declare class MsgCall extends Message<MsgCall> {
/**
* Example: "gno.land/r/demo/boards"
*
Expand All @@ -1188,30 +1188,57 @@ export declare class CallRequest extends Message<CallRequest> {

/**
* list of arguments specific to the function
* Example: ["1", "1", "2", "my reply"]
*
* @generated from field: repeated string args = 3;
*/
args: string[];

/**
* @generated from field: string gas_fee = 4;
* @generated from field: string send = 4;
*/
send: string;

constructor(data?: PartialMessage<MsgCall>);

static readonly runtime: typeof proto3;
static readonly typeName = "land.gno.gnonative.v1.MsgCall";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgCall;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgCall;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgCall;

static equals(a: MsgCall | PlainMessage<MsgCall> | undefined, b: MsgCall | PlainMessage<MsgCall> | undefined): boolean;
}

/**
* @generated from message land.gno.gnonative.v1.CallRequest
*/
export declare class CallRequest extends Message<CallRequest> {
/**
* @generated from field: string gas_fee = 1;
*/
gasFee: string;

/**
* @generated from field: sint64 gas_wanted = 5;
* @generated from field: sint64 gas_wanted = 2;
*/
gasWanted: bigint;

/**
* @generated from field: string send = 6;
* @generated from field: string memo = 3;
*/
send: string;
memo: string;

/**
* @generated from field: string memo = 7;
* list of calls to make in one transaction
*
* @generated from field: repeated land.gno.gnonative.v1.MsgCall msgs = 4 [json_name = "Msgs"];
*/
memo: string;
msgs: MsgCall[];

constructor(data?: PartialMessage<CallRequest>);

Expand Down
26 changes: 18 additions & 8 deletions api/gen/es/gnonativetypes_pb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.7.0
// @generated by protoc-gen-es v1.7.2
// @generated from file gnonativetypes.proto (package land.gno.gnonative.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down Expand Up @@ -463,18 +463,28 @@ export const QEvalResponse = proto3.makeMessageType(
);

/**
* @generated from message land.gno.gnonative.v1.CallRequest
* @generated from message land.gno.gnonative.v1.MsgCall
*/
export const CallRequest = proto3.makeMessageType(
"land.gno.gnonative.v1.CallRequest",
export const MsgCall = proto3.makeMessageType(
"land.gno.gnonative.v1.MsgCall",
() => [
{ no: 1, name: "package_path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "fnc", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "args", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "gas_wanted", kind: "scalar", T: 18 /* ScalarType.SINT64 */ },
{ no: 6, name: "send", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "send", kind: "scalar", T: 9 /* ScalarType.STRING */ },
],
);

/**
* @generated from message land.gno.gnonative.v1.CallRequest
*/
export const CallRequest = proto3.makeMessageType(
"land.gno.gnonative.v1.CallRequest",
() => [
{ no: 1, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "gas_wanted", kind: "scalar", T: 18 /* ScalarType.SINT64 */ },
{ no: 3, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgCall, repeated: true },
],
);

Expand Down
Loading