Skip to content
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
20 changes: 20 additions & 0 deletions packages/hyperwebjs/scripts/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,26 @@ export const options: TelescopeInput = {
useProtoOptionality: true,
customTypes: {
useCosmosSDKDec: true
},
exceptions: {
'/hyperweb.hvm.MsgEval': {
aminoType: 'hvm/x/hvm/MsgEval'
},
'/hyperweb.hvm.MsgEvalResponse': {
aminoType: 'hvm/x/hvm/MsgEvalResponse'
},
'/hyperweb.hvm.MsgInstantiate': {
aminoType: 'hvm/x/hvm/MsgInstantiate'
},
'/hyperweb.hvm.MsgInstantiateResponse': {
aminoType: 'hvm/x/hvm/MsgInstantiateResponse'
},
'/hyperweb.hvm.MsgUpdateParams': {
aminoType: 'hvm/x/hvm/MsgUpdateParams'
},
'/hyperweb.hvm.MsgUpdateParamsResponse': {
aminoType: 'hvm/x/hvm/MsgUpdateParamsResponse'
},
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/hyperwebjs/src/hyperweb/hvm/tx.amino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export const AminoConverter = {
fromAmino: MsgUpdateParams.fromAmino
},
"/hyperweb.hvm.MsgInstantiate": {
aminoType: "/hyperweb.hvm.MsgInstantiate",
aminoType: "hvm/x/hvm/MsgInstantiate",
toAmino: MsgInstantiate.toAmino,
fromAmino: MsgInstantiate.fromAmino
},
"/hyperweb.hvm.MsgEval": {
aminoType: "/hyperweb.hvm.MsgEval",
aminoType: "hvm/x/hvm/MsgEval",
toAmino: MsgEval.toAmino,
fromAmino: MsgEval.fromAmino
}
Expand Down
45 changes: 40 additions & 5 deletions packages/hyperwebjs/src/hyperweb/hvm/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface MsgUpdateParamsResponseProtoMsg {
*/
export interface MsgUpdateParamsResponseAmino {}
export interface MsgUpdateParamsResponseAminoMsg {
type: "/hyperweb.hvm.MsgUpdateParamsResponse";
type: "hvm/x/hvm/MsgUpdateParamsResponse";
value: MsgUpdateParamsResponseAmino;
}
/**
Expand All @@ -79,7 +79,7 @@ export interface MsgInstantiateAmino {
source: string;
}
export interface MsgInstantiateAminoMsg {
type: "/hyperweb.hvm.MsgInstantiate";
type: "hvm/x/hvm/MsgInstantiate";
value: MsgInstantiateAmino;
}
/** msg instantiate */
Expand All @@ -103,7 +103,7 @@ export interface MsgInstantiateResponseAmino {
address: string;
}
export interface MsgInstantiateResponseAminoMsg {
type: "/hyperweb.hvm.MsgInstantiateResponse";
type: "hvm/x/hvm/MsgInstantiateResponse";
value: MsgInstantiateResponseAmino;
}
/** msg instantiate response */
Expand Down Expand Up @@ -142,7 +142,7 @@ export interface MsgEvalAmino {
args: string[];
}
export interface MsgEvalAminoMsg {
type: "/hyperweb.hvm.MsgEval";
type: "hvm/x/hvm/MsgEval";
value: MsgEvalAmino;
}
/** msg eval response */
Expand All @@ -165,7 +165,7 @@ export interface MsgEvalResponseAmino {
result: string;
}
export interface MsgEvalResponseAminoMsg {
type: "/hyperweb.hvm.MsgEvalResponse";
type: "hvm/x/hvm/MsgEvalResponse";
value: MsgEvalResponseAmino;
}
/** msg eval response */
Expand Down Expand Up @@ -297,6 +297,7 @@ function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
}
export const MsgUpdateParamsResponse = {
typeUrl: "/hyperweb.hvm.MsgUpdateParamsResponse",
aminoType: "hvm/x/hvm/MsgUpdateParamsResponse",
is(o: any): o is MsgUpdateParamsResponse {
return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
},
Expand Down Expand Up @@ -353,6 +354,12 @@ export const MsgUpdateParamsResponse = {
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
return MsgUpdateParamsResponse.fromAmino(object.value);
},
toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
return {
type: "hvm/x/hvm/MsgUpdateParamsResponse",
value: MsgUpdateParamsResponse.toAmino(message)
};
},
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
return MsgUpdateParamsResponse.decode(message.value);
},
Expand All @@ -376,6 +383,7 @@ function createBaseMsgInstantiate(): MsgInstantiate {
}
export const MsgInstantiate = {
typeUrl: "/hyperweb.hvm.MsgInstantiate",
aminoType: "hvm/x/hvm/MsgInstantiate",
is(o: any): o is MsgInstantiate {
return o && (o.$typeUrl === MsgInstantiate.typeUrl || typeof o.creator === "string" && typeof o.code === "string" && typeof o.source === "string");
},
Expand Down Expand Up @@ -478,6 +486,12 @@ export const MsgInstantiate = {
fromAminoMsg(object: MsgInstantiateAminoMsg): MsgInstantiate {
return MsgInstantiate.fromAmino(object.value);
},
toAminoMsg(message: MsgInstantiate): MsgInstantiateAminoMsg {
return {
type: "hvm/x/hvm/MsgInstantiate",
value: MsgInstantiate.toAmino(message)
};
},
fromProtoMsg(message: MsgInstantiateProtoMsg): MsgInstantiate {
return MsgInstantiate.decode(message.value);
},
Expand All @@ -500,6 +514,7 @@ function createBaseMsgInstantiateResponse(): MsgInstantiateResponse {
}
export const MsgInstantiateResponse = {
typeUrl: "/hyperweb.hvm.MsgInstantiateResponse",
aminoType: "hvm/x/hvm/MsgInstantiateResponse",
is(o: any): o is MsgInstantiateResponse {
return o && (o.$typeUrl === MsgInstantiateResponse.typeUrl || typeof o.index === "bigint" && typeof o.address === "string");
},
Expand Down Expand Up @@ -589,6 +604,12 @@ export const MsgInstantiateResponse = {
fromAminoMsg(object: MsgInstantiateResponseAminoMsg): MsgInstantiateResponse {
return MsgInstantiateResponse.fromAmino(object.value);
},
toAminoMsg(message: MsgInstantiateResponse): MsgInstantiateResponseAminoMsg {
return {
type: "hvm/x/hvm/MsgInstantiateResponse",
value: MsgInstantiateResponse.toAmino(message)
};
},
fromProtoMsg(message: MsgInstantiateResponseProtoMsg): MsgInstantiateResponse {
return MsgInstantiateResponse.decode(message.value);
},
Expand All @@ -613,6 +634,7 @@ function createBaseMsgEval(): MsgEval {
}
export const MsgEval = {
typeUrl: "/hyperweb.hvm.MsgEval",
aminoType: "hvm/x/hvm/MsgEval",
is(o: any): o is MsgEval {
return o && (o.$typeUrl === MsgEval.typeUrl || typeof o.creator === "string" && typeof o.address === "string" && typeof o.callee === "string" && Array.isArray(o.args) && (!o.args.length || typeof o.args[0] === "string"));
},
Expand Down Expand Up @@ -740,6 +762,12 @@ export const MsgEval = {
fromAminoMsg(object: MsgEvalAminoMsg): MsgEval {
return MsgEval.fromAmino(object.value);
},
toAminoMsg(message: MsgEval): MsgEvalAminoMsg {
return {
type: "hvm/x/hvm/MsgEval",
value: MsgEval.toAmino(message)
};
},
fromProtoMsg(message: MsgEvalProtoMsg): MsgEval {
return MsgEval.decode(message.value);
},
Expand All @@ -761,6 +789,7 @@ function createBaseMsgEvalResponse(): MsgEvalResponse {
}
export const MsgEvalResponse = {
typeUrl: "/hyperweb.hvm.MsgEvalResponse",
aminoType: "hvm/x/hvm/MsgEvalResponse",
is(o: any): o is MsgEvalResponse {
return o && (o.$typeUrl === MsgEvalResponse.typeUrl || typeof o.result === "string");
},
Expand Down Expand Up @@ -833,6 +862,12 @@ export const MsgEvalResponse = {
fromAminoMsg(object: MsgEvalResponseAminoMsg): MsgEvalResponse {
return MsgEvalResponse.fromAmino(object.value);
},
toAminoMsg(message: MsgEvalResponse): MsgEvalResponseAminoMsg {
return {
type: "hvm/x/hvm/MsgEvalResponse",
value: MsgEvalResponse.toAmino(message)
};
},
fromProtoMsg(message: MsgEvalResponseProtoMsg): MsgEvalResponse {
return MsgEvalResponse.decode(message.value);
},
Expand Down